Searching binary files for patterns?

  • Thread starter Thread starter Joseph N. Stackhouse
  • Start date 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
 
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
 
Back
Top