Skip to content

Commit

Permalink
issue with atexec.py Pennyw0rth#2
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaaz-fr committed Dec 10, 2024
1 parent 728f653 commit 8063c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nxc/protocols/smb/atexec.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def gen_xml(self, command, fileless=False):
<Command>cmd.exe, </Command>
"""
if self.__retOutput:
self.__output_filename = "\\WINDOWS\\" + gen_random_string(8)
self.__output_filename = "\\WINDOWS\\Temp\\" + gen_random_string(8)
if fileless:
local_ip = self.__rpctransport.get_socket().getsockname()[0]
argument_xml = f" <Arguments>/C, {command} &gt; \\\\{local_ip}\\{self.__share_name}\\{self.__output_filename} 2&gt;&amp;1</Arguments>"
Expand Down

0 comments on commit 8063c54

Please sign in to comment.