reScan - quick pattern matching in files for malware analysis

reScan is a very simple Python script to look for specific patterns (regular expressions) in binary or text files. It has been primarily developed to analyze malicious files, to quickly extract interesting patterns (shellcodes, embedded executables in malformed documents, etc). Update in 2014: it has now evolved into Balbuzard, which provides many more features.


Follow all updates and news on Twitter:

  • 2014-02-26 v0.18: Initial release of the Balbuzard tools, replacing reScan
  • 2013-03-15: added harvest mode (bbharvest)
  • 2011-05-06: added bruteforce functions (bbcrack)
  • 2008-06-06: first public release as reScan for SSTIC08
  • 2007-07-11: first versions of reScan
  • see changelog in source code for more info.

Usage: <file>


To add your own patterns to the default list, create a script named and add the patterns to a dictionary named FIND_REGEX, with the same structure as in Of course if you find useful patterns to add to this tool, please send me an e-mail at decalage[à] so that I can improve the main version.


CeCILL v2, open-source, GPL-compatible.

AttachmentSize KB