Created
September 30, 2013 21:46
-
-
Save crashish/6770773 to your computer and use it in GitHub Desktop.
Revisions
-
crashish created this gist
Sep 30, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ 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 ''