Python3でリバースエンジニアリング その2
前回リバースエンジニアリング ―Pythonによるバイナリ解析技法の続きで、今回は3.1章の前半。
my_debugger.py
-
...
-
def load(self, path_to_exe):
-
...
-
None,
-
None,
-
None,
-
None,
-
creation_flags,
-
None,
-
None,
-
byref(startupinfo),
-
byref(process_information)):
-
...
-
print("[*] PID: {0}".format(process_information.dwProcessId))
-
else:
-
print("[*] Error: 0x{0:08x}".format(kernel32.GetLastError()))