Flag: Tornado! Hurricane!

 Forums >>  Brainstorms - General  >>  Searching freelist[00] problem :( :(

Topic created on: September 5, 2010 07:54 CDT by 0xvoila .

hii guys ..

i m new to heap debugging with windbg ... so during this i using book "advance debugging technique ..."  . So i work out like this ..

step 1 -> get the handler of default heap .. say it is 0x00040000

step 2 -> dt _heap 00040000

then at offset 0x0c4 .. i found offset of freelist .. bt in book they said freelist offset is always at "0x178"

step 3 -> dt _LIST_ENTRY 00040000+0x0c4

then i found
+0x000 Flink            : 0x00424268 _LIST_ENTRY
+0x004 Blink            : 0x004252a8 _LIST_ENTRY

step 4-> dt _heap_entry 0x00424268-0x8 ... then dump struc is this ..
0:000> dt _heap_entry 0x0042460
ntdll!_HEAP_ENTRY
   +0x000 Size             : 0xfeee
   +0x002 Flags            : 0xee ''
   +0x003 SmallTagIndex    : 0xfe ''
   +0x000 SubSegmentCode   : 0xfeeefeee

  THIS STRUCTURE ITSELF IS WEIRD , SIZE IS 0xfeee.. i m really tired of trying myself .. I dun know where i m doing wrong ...

can anybody help me out .. thanks ...

  waleedassar     September 13, 2010 11:27.34 CDT
00142B48  EE FE EE FE EE FE EE FE
00142B50  EE FE EE FE EE FE EE FE
00142B58  EE FE EE FE EE FE EE FE


this is a random dump from a random process(being debugged under olly).
you should first know that the process heap under the debugger acts in a different way than under normal execution.

for example:_
Debugged Heap is stuffed with junk like feeefeee or baadf00d
but normal heap isn't.

another example is lookaside list which doesn't exist for debugged heap unless some environment variable is set.

  0xvoila     September 13, 2010 13:02.04 CDT
hii .. thanks for your reply ..
ok i understand about random stuffing of data in heap under debugging , So point is .. i want to analysis  heap data structures using debugger .. how can i do it .. any hint ??

thanks .. :)

  waleedassar     September 13, 2010 22:47.28 CDT
My advice is to try to reverse function RtlAllocateHeap and function RtlFreeHeap.
I did some and i found it so interesting.
(lots of secrets and internals inside).

Note: Registration is required to post to the forums.

There are 28,224 total registered users.


Recently Created Topics
Reverse Engineering ...
Jan/23
Career: DoD Agency I...
Jan/22
"Disappearing&q...
Jan/17
Career: Software Sec...
Jan/11
Where is the call st...
Jan/07
IDA Pro 6.1 Breakpoi...
Jan/01
How to create data s...
Dec/30
can i search all mod...
Dec/23
IDA symbol table exp...
Dec/20
An anti-attach trick
Dec/17


Recent Forum Posts
Reverse Engineering ...
NirIzr
"Disappearing&q...
NirIzr
Reverse Engineering ...
charlie
"Disappearing&q...
charlie
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
Looking for value in...
NirIzr


Recent Blog Entries
cmathieu
Feb/07
Hacker Carnival

waleedassar
Feb/06
OllyDbg v1.10 And Hardware ...

waleedassar
Jan/31
Yet Another Anti-Debug Trick

RolfRolles
Jan/22
Finding Bugs in VMs with a ...

waleedassar
Jan/13
An OllyDbg Bug Disables Sof...

More ...


Recent Blog Comments
waleedassar on:
Feb/07
OllyDbg v1.10 And Hardware ...

NirIzr on:
Feb/07
OllyDbg v1.10 And Hardware ...

NirIzr on:
Feb/05
Yet Another Anti-Debug Trick

trolotou on:
Feb/05
Doudoune Moncler -Pennies F...

waleedassar on:
Feb/01
Yet Another Anti-Debug Trick

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit