MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / cmdline_check

Method cmdline_check

pythonmemorymodule/__init__.py:489–499  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

load_moduleMethod · 0.95

Calls 2

dbgMethod · 0.95
exitMethod · 0.45

Tested by

no test coverage detected