Python3でリバースエンジニアリング その3

今回は3.1章の後半。raw_input()をinput()へ変更する必要があります。print文の変更は省略します。

 

my_debugger.py

  1. ...
  2.     def get_debug_event(self):
  3.         ...
  4.         if kernel32.WaitForDebugEvent(byref(debug_event), INFINITE):
  5.             input("Press a key to continue...")

 

my_test.py

  1. pid = input("Enter the PID of the process to attach to: ")