[ale] Binary Matching
Michael Hirsch
mdhirsch at gmail.com
Mon Jun 6 23:57:12 EDT 2005
dd if=filename bs=1 count=200 skip=25
will output the 200 bytes starting at byte 26, I believe. Capture
that output and feed it to grep.
Michael
On 6/6/05, Mister Anonymous <atlantalinuxenthusiast at gmail.com> wrote:
> How can I feed grep the 200-300 byte long string that I need to extra
> from the base binary file?
>
> On 6/6/05, Geoffrey <esoteric at 3times25.net> wrote:
> > Mister Anonymous wrote:
> > > The problem about cmp is that it just does a strait compare. I need
> > > to find out whether a particular binary section has been embedded
> > > anywhere in another particular binary. I will have the offset from
> > > the first binary to get the (binary) string that I am going to be
> > > searching for, but I will not know where in the second binary that
> > > (binary) string will be.
> >
> > Disregard my previous brainless post.
> >
> > man grep
> >
> > If the first few bytes of a file indicate that the file contains
> > binary data, assume that the file is of type TYPE. By default, TYPE
> > is binary, and grep normally outputs either a one-line message
> > saying that a binary file matches, or no message if there is no match.
> >
> > --
> > Until later, Geoffrey
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> >
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
More information about the Ale
mailing list