Created
September 30, 2013 21:46
-
-
Save crashish/6770773 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import textwrap, re, urllib | |
parse_sig = re.compile( | |
'\[(.*?)\]\s+?signature\s*=\s*(.*?)(\s+\?\?)*\s*ep_only\s*=\s*(\w+)(?:\s*section_start_only\s*=\s*(\w+)|)', re.S) | |
sig_f = urllib.urlopen('userdb.txt') | |
sig_data = sig_f.read() | |
sig_f.close() | |
sigs = parse_sig.findall(sig_data) | |
for packer_name, signature, superfluous_wildcards, ep_only, section_start_only in sigs: | |
print packer_name | |
print len(signature.replace(' ',''))/2 | |
print textwrap.fill(signature,48) | |
print '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment