Skip to content

Commit

Permalink
display ProcessId to user
Browse files Browse the repository at this point in the history
  • Loading branch information
NtAlexio2 committed Sep 13, 2024
1 parent 82b1a77 commit 6167512
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/wmiexec.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,11 @@ def execute_remote(self, data, shell_type='cmd'):

if self.__noOutput is False:
command += ' 1> ' + '\\\\127.0.0.1\\%s' % self.__share + self.__output + ' 2>&1'
self.__win32Process.Create(command, self.__pwd, None)
self.get_output()
response = self.__win32Process.Create(command, self.__pwd, None)
if self.__noOutput is False:
self.get_output()
else:
response.printInformation() # print ProcessId and ReturnValue

def send_data(self, data):
self.execute_remote(data, self.__shell_type)
Expand Down

0 comments on commit 6167512

Please sign in to comment.