File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def execute_WithOutput(self, command):
8181 result_output = f"C:\\ windows\\ temp\\ { uuid .uuid4 ()!s} .txt"
8282 result_output_b64 = f"C:\\ windows\\ temp\\ { uuid .uuid4 ()!s} .txt"
8383 keyName = str (uuid .uuid4 ())
84- self .__registry_Path = f"Software\\ Classes\\ test_nxc_ { gen_random_string (6 )} "
84+ self .__registry_Path = f"Software\\ Classes\\ { gen_random_string (8 )} "
8585
8686 # 1. Run the command and write output to file
8787 self .execute_remote (f'{ self .__shell } { command } 1> "{ result_output } " 2>&1' )
@@ -122,7 +122,7 @@ def execute_WithOutput_psh(self, command):
122122 result_output = f"C:\\ windows\\ temp\\ { uuid .uuid4 ()!s} .txt"
123123 result_output_b64 = f"C:\\ windows\\ temp\\ { uuid .uuid4 ()!s} .txt"
124124 keyName = str (uuid .uuid4 ())
125- self .__registry_Path = f"Software\\ Classes\\ { gen_random_string (6 )} "
125+ self .__registry_Path = f"Software\\ Classes\\ { gen_random_string (8 )} "
126126
127127 # 1. Run the command and write output to file
128128 if not command .lower ().startswith ("powershell" ):
You can’t perform that action at this time.
0 commit comments