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








Flag: Tornado! Hurricane!

Blogs >> deft's Blog

Created: Tuesday, June 27 2006 11:38.28 CDT Modified: Wednesday, June 28 2006 12:57.39 CDT
Direct Link, View / Make / Edit Comments
messing around with file format structure
Author: deft # Views: 1277

Thought it might be useful to visualize what a file format would look like as an image to identify blocks of similar data.

Could be useful for more effective file format fuzzing and whatnot. Here's the output when run on putty.exe:


bash-2.03$ python.exe image_gen.py putty.exe
Aaron Portnoy - Binary2Image
-----------------------------
[*] Attempting to identify blocks...
[+] Block found from 2 to 53.
[+] Block found from 5 to 56.
[+] Block found from 6 to 57.
[+] Block found from 32 to 83.
[+] Block found from 47 to 98.
[+] Block found from 69 to 120.
[+] Block found from 71 to 122.
[+] Block found from 75 to 126.
[+] Block found from 77 to 128.
[+] Block found from 115 to 166.
[+] Block found from 117 to 168.
[+] Block found from 120 to 171.
[+] Block found from 123 to 174
...
[+] Block found from 8942 to 9008.
[+] Block found from 8944 to 9010.
[+] Block found from 8950 to 9015.
[+] Block found from 8971 to 9045.
[+] Block found from 8990 to 9089.
[+] Block found from 9069 to 9173.
[+] Block found from 9073 to 9175.
[*] Creating image...
[*] 25% complete...
[*] 50% complete...
[*] 75% complete...
[*] 100% complete...
[*] Resizing image...
[*] Saving image...
[*] Image saved successfully as output.png
bash-2.03$


Results in:



The yellow are 0x00, dark blue are within ASCII, light blue is 0x20, and gray are everything else.

The code is very basic at the moment, and I've done a lot of development since this, but here's the source used to create that image: http://deft.thunkers.net/code/image_gen.py_


Archived Entries for deft
Subject # Views Created On
No archived blog entries found.

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