-
-
[旧帖] [求助]python灰帽子附加到进程失败 0.00雪花
-
发表于: 2015-8-18 14:20 1444
-
python灰帽子那本书跟着写代码:
def open_process(self,pid):
h_process = kernel32.OpenProcess(PROCESS_ALL_ACCESS,False,pid)
return h_process
def attach(self,pid):
self.h_process = self.open_process(pid)
if kernel32.DebugActiveProcess(int(pid)):
self.debugger_active = True
self.pid = int(pid)
self.run()
else:
print " Unable to attach to the process."
但是attach到进程提示:
print " Unable to attach to the process."
环境:win7,pythpn2.7.1
有知道原因的前辈么?请不吝赐教
def open_process(self,pid):
h_process = kernel32.OpenProcess(PROCESS_ALL_ACCESS,False,pid)
return h_process
def attach(self,pid):
self.h_process = self.open_process(pid)
if kernel32.DebugActiveProcess(int(pid)):
self.debugger_active = True
self.pid = int(pid)
self.run()
else:
print "
但是attach到进程提示:
print "
有知道原因的前辈么?请不吝赐教
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
赞赏
看原图
赞赏
雪币:
留言: