diff --git a/nxc/protocols/smb/atexec.py b/nxc/protocols/smb/atexec.py index 8a6a44dc7..f9bda76c4 100755 --- a/nxc/protocols/smb/atexec.py +++ b/nxc/protocols/smb/atexec.py @@ -105,7 +105,7 @@ def gen_xml(self, command, fileless=False): cmd.exe, """ 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" /C, {command} > \\\\{local_ip}\\{self.__share_name}\\{self.__output_filename} 2>&1"