hyphen Advanced Cheater
Reputation: 0
Joined: 12 Sep 2008 Posts: 84 Location: Not Having Fun
|
Posted: Thu Aug 11, 2011 10:42 pm Post subject: Getting an SEH chain from a CONTEXT structure |
|
|
| Code: | struct CONTEXT
{
DWORD ContextFlags;
DWORD Dr0;
DWORD Dr1;
DWORD Dr2;
DWORD Dr3;
DWORD Dr6;
DWORD Dr7;
FLOATING_SAVE_AREA FloatSave;
DWORD SegGs;
DWORD SegFs;
DWORD SegEs;
DWORD SegDs;
DWORD Edi;
DWORD Esi;
DWORD Ebx;
DWORD Edx;
DWORD Ecx;
DWORD Eax;
DWORD Ebp;
DWORD Eip;
DWORD SegCs;
DWORD EFlags;
DWORD Esp;
DWORD SegSs;
BYTE ExtendedRegisters[MAXIMUM_SUPPORTED_EXTENSION];
}; |
Hiya I'm trying to get the pointer to the first SEH frame from a CONTEXT structure that is passed to a vectored exception handler. From what I've read online, the FS register points to the TIB which points to the first SEH frame. However, the SegFs value in context always holds small values like 0x53 for me, definitely not the address of anything. Anyone know how this works? >: |
|