<?xml version="1.0"?>
<rss version="2.0">
    <channel>
        <title>OpenRCE: Blog</title>
        <link>http://www.openrce.org/rss/feeds/blog</link>
        <description>OpenRCE: The Open Reverse Code Engineering Community</description>
                <item>
            <title>messing around with file format structure</title>
                            <pubDate>Tue, 27 Jun 2006 11:38:28 -0500</pubDate>
                                        <link>https://www.openrce.org/blog/view/346/messing_around_with_file_format_structure</link>
                                        <author>deft &lt;email-suppressed@example.com&gt;</author>
                                                    <description>Thought it might be useful to visualize what a file format would look like as an image to identify blocks of similar data. &lt;br /&gt;
&lt;br /&gt;
Could be useful for more effective file format fuzzing and whatnot. Here's the output when run on putty.exe:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
bash-2.03$ python.exe image_gen.py putty.exe&lt;br /&gt;
Aaron Portnoy - Binary2Image&lt;br /&gt;
-----------------------------&lt;br /&gt;
[*] Attempting to identify blocks...&lt;br /&gt;
[+] Block found from 2 to 53.&lt;br /&gt;
[+] Block found from 5 to 56.&lt;br /&gt;
[+] Block found from 6 to 57.&lt;br /&gt;
[+] Block found from 32 to 83.&lt;br /&gt;
[+] Block found from 47 to 98.&lt;br /&gt;
[+] Block found from 69 to 120.&lt;br /&gt;
[+] Block found from 71 to 122.&lt;br /&gt;
[+] Block found from 75 to 126.&lt;br /&gt;
[+] Block found from 77 to 128.&lt;br /&gt;
[+] Block found from 115 to 166.&lt;br /&gt;
[+] Block found from 117 to 168.&lt;br /&gt;
[+] Block found from 120 to 171.&lt;br /&gt;
[+] Block found from 123 to 174&lt;br /&gt;
...&lt;br /&gt;
[+] Block found from 8942 to 9008.&lt;br /&gt;
[+] Block found from 8944 to 9010.&lt;br /&gt;
[+] Block found from 8950 to 9015.&lt;br /&gt;
[+] Block found from 8971 to 9045.&lt;br /&gt;
[+] Block found from 8990 to 9089.&lt;br /&gt;
[+] Block found from 9069 to 9173.&lt;br /&gt;
[+] Block found from 9073 to 9175.&lt;br /&gt;
[*] Creating image...&lt;br /&gt;
[*] 25% complete...&lt;br /&gt;
[*] 50% complete...&lt;br /&gt;
[*] 75% complete...&lt;br /&gt;
[*] 100% complete...&lt;br /&gt;
[*] Resizing image...&lt;br /&gt;
[*] Saving image...&lt;br /&gt;
[*] Image saved successfully as output.png&lt;br /&gt;
bash-2.03$ &lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Results in:&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;http://deft.thunkers.net/priv/putty.png&quot; border=0 align=&quot;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
The yellow are 0x00, dark blue are within ASCII, light blue is 0x20, and gray are everything else.&lt;br /&gt;
&lt;br /&gt;
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: &lt;a href=&quot;http://deft.thunkers.net/code/image_gen.py_&quot;&gt;http://deft.thunkers.net/code/image_gen.py_&lt;/a&gt;&lt;br /&gt;
</description>
                    </item>
            </channel>
</rss>
