📚 OpenRCE is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.








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 31,328 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit