bugmeout / pyemu

Automatically exported from code.google.com/p/pyemu
0 stars 0 forks source link

Problem of PyDbgPyEmu #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I got an error when running pydbgpyemu.py in the examples.
The error output is as below:

E:\pydbgpyemu.py calc.exe 0x001001AF3
[*] Trying to attach to existing calc.exe
[*] Attaching to calc.exe (1352)
[*] First bp hit setting emu address @ 001001af3
Traceback (most recent call last):
  File "E:\pydbgpyemu.py", line 129, in <module>
    dbg.debug_event_loop()
  File "C:\Python25\Lib\site-packages\pydbg\pydbg_core.py", line 335, in
debug_event_loop
    self.debug_event_iteration()
  File "C:\Python25\Lib\site-packages\pydbg\pydbg_core.py", line 283, in
debug_event_iteration
    continue_status = self.exception_handler_breakpoint()
  File "C:\Python25\Lib\site-packages\pydbg\pydbg.py", line 1074, in
exception_handler_breakpoint
    continue_status = self.breakpoints[self.exception_address].handler(self)
  File "E:\pydbgpyemu.py", line 54, in handler_emu_breakpoint
    print "%x %x" % (dbg.context.SegFs, dbg.tebs[dbg.dbg.dwThreadId])
AttributeError: 'pydbg' object has no attribute 'tebs'

Original issue reported on code.google.com by yhuan...@gmail.com on 31 Jan 2010 at 3:18

GoogleCodeExporter commented 9 years ago
Thanks for the report, it seems you may have an out of date version of pydbg. 
In my
copy the tebs dictionary is there. Try and update your paimei repo to the 
latest SVN
version

pydbg.py:113: 
        self.tebs                     = {}        # dictionary of thread IDs to
thread environment block addresses

Original comment by codyrpie...@gmail.com on 1 Feb 2010 at 5:52

GoogleCodeExporter commented 9 years ago
Works fine after updating paimei. Thanks. 

Original comment by yhuan...@gmail.com on 4 Feb 2010 at 2:45