Searching binary files for patterns?

  • Thread starter Joseph N. Stackhouse
  • Start date
J

Joseph N. Stackhouse

So I have created my own application to search for Spyware/Viruses and so
far all of my search functions are done except one, searching a binary file
for a certain pattern or a pattern with a wildcard. I really need to
figure out the best way to do this.

I'm sure there are examples out there I'm just not wording my Google
searches correctly or something. Basically I just want to search a file for
a <binary pattern> or possibly <pattern1>*<pattern2>*<pattern3> where * is a
wildcard.

P.S. If you reply also reply via e-mail as I'm not always able to check the
groups. Thanks!

-Joe
 
F

Family Tree Mike

Joseph N. Stackhouse said:
So I have created my own application to search for Spyware/Viruses and so
far all of my search functions are done except one, searching a binary file
for a certain pattern or a pattern with a wildcard. I really need to
figure out the best way to do this.

I'm sure there are examples out there I'm just not wording my Google
searches correctly or something. Basically I just want to search a file for
a <binary pattern> or possibly <pattern1>*<pattern2>*<pattern3> where * is a
wildcard.

P.S. If you reply also reply via e-mail as I'm not always able to check the
groups. Thanks!

-Joe

I believe that the Regex class can be coerced to search using binary data,
though I have never had a need to try it.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top