Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security FullDisclosure
[Top] [All Lists]

Re: [Full-disclosure] exploiting/debugging the UnhandledExceptionFilter

Subject: Re: [Full-disclosure] exploiting/debugging the UnhandledExceptionFilter
Date: Tue, 21 Jun 2005 14:34:17 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
You have to breakpoint right before an instance in ntdll.dll which
looks like this:

cmp dword [ebp-20],esi
jne adress
mov eax,[UEF]
cmp eax,esi
je address
call eax

if I remember dword [ebp-20] points to 0x00000000 and esi to
0xFFFFFFFF (it should be equal)
you just have then to null out esi (0x00000000)

hope that help :)

RaMatkal a écrit :

Hi,

I am working on a Win heap overflow that gives me control of eax
and ecx and hence allows me to write a double word of memory to an
arbitrary location...

I overwrite the SetUnhandledException filter with an address that
will bounce me back to my shellcode.

the only problem is, that the unhandledexception filter does not
get called while the vulnerable process is being debugged, say with
ollydbg.

I think i remember reading somewhere that it is possible to make
the UnhandledException filter get called from within a standard
debugger such as ollydbg and was wandering if anyone knows how to
do this...

(Kernel level debugger is not an option ie SoftIce)

Thanks very much

RaMatkal


----------------------------------------------------------------------



_______________________________________________ Full-Disclosure -
We believe in it. Charter:
http://lists.grok.org.uk/full-disclosure-charter.html Hosted and
sponsored by Secunia - http://secunia.com/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
 
iD8DBQFCuAlHLyZ8K9aT7rARAuM5AJ9HaxpZNko7txzgGO6zU3UCrtqMWQCff6c9
eq3EEG0y0TgCPwr9/k3R+68=
=Ha74
-----END PGP SIGNATURE-----


_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

<Prev in Thread] Current Thread [Next in Thread>