Hi
I get above error in my little script which you can see below:
#Load all necessary modules
def create_process_a_entry(dbg,args):
print args[1]
return pydbg.defines.DBG_CONTINUE
if __name__=="__main__":
dbg = pydbg.pydbg()
dbg.get_debug_privileges()
dbg.load(sys.argv[1]) #for test C:\WINDOWS\system32\calc.exe
hooks = utils.hook_container()
create_process_a = dbg.func_resolve("kernel32","CreateProcessA")
print "Createprocess address %x" % (create_process_a)
hooks.add(dbg,create_process_a,10,create_process_a_entry,None)
dbg.run()
Errors after script run:
Createprocess address 7c802367
File "C:\Python24\Lib\site-packages\utils\hooking.py", line 183, in hook
pydbg.bp_set(self.address, restore=True, handler=self.__proxy_on_entry)
File "C:\Python24\Lib\site-packages\pydbg\pydbg.py", line 444, in bp_set
raise pdx("Failed setting breakpoint at %08x" % address)
pydbg.pdx.pdx: Failed setting breakpoint at 7c802367
Any ideas?