Skip to content

Commit 65d3723

Browse files
committed
Remove string from testing, also increase characters for registry path
1 parent b717f30 commit 65d3723

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/protocols/wmi/wmiexec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"):

0 commit comments

Comments
 (0)