(self)
| 487 | print('DEBUG: %s' % msg) |
| 488 | |
| 489 | def cmdline_check(self): |
| 490 | cp=windows.current_process |
| 491 | peb = windows.current_process.peb |
| 492 | |
| 493 | commandline = peb.commandline |
| 494 | self.dbg("Original PEB commamdline length: {}".format(commandline.Length)) |
| 495 | self.dbg("New command ommand length: {}".format(len(self.new_command))) |
| 496 | |
| 497 | if len(self.new_command) > commandline.Length: |
| 498 | print("[!] Error - Not enough space on PEB commandline for stomping. Try increasing the commandline (e.g. by placing python binary in a nested folder) - Exiting") |
| 499 | sys.exit() |
| 500 | |
| 501 | def stomp_PEB(self): |
| 502 | self.cp=windows.current_process |
no test coverage detected