Please see the command line example in the source code for details on usage. I have confirmed it works well on obfuscated ActionScript. The code blindly replaces matches. It does not check for the reuse of variable names within the scope of different functions. I plan on adding this at a later date. Please leave a VT hash in the comments if you have an example.
ObfStrReplacer Source Code
ExtractSubfile is a simple modification to hachoir subfile's search.py. It is used to extract embedded files. The carving functionality was already included in hachoir-subfile but not exposed.
__@___:~/hachoir-subfile crsenvironscan.xls [+] Start search on 126444 bytes (123.5 KB) [+] File at 0 size=80384 (78.5 KB): Microsoft Office document [+] File at 2584 size=52039 (50.8 KB): Macromedia Flash data: version 9 [+] End of search -- offset=126444 (123.5 KB) Total time: 1 sec 478 ms -- global rate: 83.5 KB/sec __@___:~/$ python ExtractSubFile.py crsenvironscan.xls [+] Start search on 126444 bytes (123.5 KB) [+] File at 0 size=80384 (78.5 KB): Microsoft Office document => /home/file-0001.doc [+] File at 2584 size=52039 (50.8 KB): Macromedia Flash data: version 9 => /home/file-0002.swf [+] End of search -- offset=126444 (123.5 KB)
In the second and third lines at the end of the output we can see a document and SWF were carved.
ExtractSubFile Source Code
No comments:
Post a Comment