[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Tue Nov 16 19:31:55 2004 -->
- <!--x-from-r13: oleba ng pp.tngrpu.rqh (Pleba O Xrss) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Binary Grep -->
- <li><em>date</em>: Tue Nov 16 19:31:55 2004</li>
- <li><em>from</em>: byron at cc.gatech.edu (Byron A Jeff)</li>
- <li><em>in-reply-to</em>: <<a href="msg00735.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00735.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Binary Grep</li>
Well the offset is the problem.
What I would do first is convert the file into ASCII by using 'od -x' on it.
What would be even better is if each of the values had to occur within some
boundary like a 32 or 64 byte block.
You have ASCII now. Use orinary grep or editor to search it.
The reason that the offsets are the problem is that the offsets break up
the actual binary values in the file. So they will kill your search.
I just tried something interesting in this command:
od -x binaryfile | cut -d' ' -f2- | tr -d '\n ' > hugefile
You get a file filled with hex digits like this:
d8ffe0ff1000464a464901000001010001000000dbff43000800060606070805070
It's all in a single line, so you could bring it into vim, search for the
target and use the offset from the beginning of the file to indicate the
offset in the original.
Just some quick thoughts.
BAJ
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00751" href="msg00751.html">[ale] Binary Grep</a></strong>
<ul><li><em>From:</em> greg.freemyer at gmail.com (Greg Freemyer)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00735" href="msg00735.html">[ale] Binary Grep</a></strong>
<ul><li><em>From:</em> greg.freemyer at gmail.com (Greg Freemyer)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00742.html">[ale] Common open source Java desktop apps</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00744.html">[ale] Linux for "normal" people?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00747.html">[ale] Binary Grep</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00751.html">[ale] Binary Grep</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00743"><strong>Date</strong></a></li>
<li><a href="threads.html#00743"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>