This topic created in 4683 days ago, the information mentioned may be changed or developed.
再看《Python灰帽子》,其中有一个例子是在已有的进程上挂接调试器,具体的代码如下:
def attach(self, pid):
self.h_process = self.open_process(pid)
if kernel32.DebugActiveProcess(pid):
self.debugger_active = True
self.pid = int(pid)
self.run()
else:
print "[*] Unable to attach to the process"
但是在这里始终不成功,麻烦各位大哥给小弟指点指点
4 replies • 1970-01-01 08:00:00 +08:00
 |
|
1
timonwong Jul 14, 2013
先检查3个前提条件吧,你给的信息太少了: 1. Windows only 2. 安装(并注册)有Debugger(VS, Debugging Tools for Windows, etc) 3. 目标程序无反制措施
|