hi. i'm a beginner for pydbg.
i was trying to make a program that is monitoring
exception.
first, i made simple C program,
--exp.c code--
char buf[12];
strcpy(buf, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
--exp.c code--
and i made simple python program using pydbg.
--test.py--
from pydbg import *
from pydbg.defines import *
import sys
import os
def handler_breakpoint (pydbg):
if pydbg.first_breakpoint:
print "this is first"
return DBG_CONTINUE
print "called from thread %d @%08x" % (pydbg.dbg.dwThreadId, pydbg.exception_address)
return DBG_CONTINUE
dbg = pydbg()
dbg.set_callback(EXCEPTION_BREAKPOINT, handler_breakpoint)
dbg.load("C:\exp.exe")
dbg.debug_event_loop()
--test.py--
i just saw "this is first" when i ran the test.py script.
i wanna see exception that is related 0x61616161
i dont know why i can't see the exception.
how can i monitor child process's exception?
thank you guys..
sorry my english.







