Skip to content

Commit 82f8967

Browse files
committed
[WMIExec] Bug fix
Signed-off-by: XiaoliChan <30458572+XiaoliChan@users.noreply.github.com>
1 parent 60b2bbc commit 82f8967

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

nxc/protocols/wmi/wmiexec.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ def execute(self, command, output=False, use_powershell=False):
5353
command = self.__shell + command
5454
self.execute_remote(command)
5555

56-
self.__dcom.disconnect()
57-
5856
return self.__outputBuffer
5957

6058
def execute_remote(self, command):

nxc/protocols/wmi/wmiexec_event.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ def execute(self, command, output=False, use_powershell=False):
5353
self.__retOutput = output
5454
self.execute_handler(command)
5555

56-
self.__dcom.disconnect()
57-
5856
return self.__outputBuffer
5957

6058
def execute_remote(self, command):

0 commit comments

Comments
 (0)