Skip to content

Commit 64aa7c0

Browse files
committed
Remove print statement
1 parent 917dcb5 commit 64aa7c0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

nxc/protocols/wmi/wmiexec.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ def queryRegistry(self, keyName):
125125
self.logger.debug(f"Retrieving chunk: {chunk_name}")
126126
outputBuffer_b64 += descriptor.GetStringValue(0x80000002, self.__registry_Path, chunk_name).sValue
127127
self.__outputBuffer = base64.b64decode(outputBuffer_b64).decode(self.__codec, errors="replace").rstrip("\r\n")
128-
except Exception as e:
129-
print(e)
128+
except Exception:
130129
self.logger.fail("WMIEXEC: Could not retrieve output file! Either command timed out or AV killed the process. Please try increasing the timeout: '--exec-timeout 10'")
131130

132131
def clean_up(self, result_output, result_output_b64):

0 commit comments

Comments
 (0)