summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poc.py b/poc.py
index 1ddbefd..9d66e30 100644
--- a/poc.py
+++ b/poc.py
@@ -20,7 +20,7 @@ for root, dirnames, filenames in os.walk(sys.argv[1]):
20 if os.stat(fname).st_size: 20 if os.stat(fname).st_size:
21 matches = rules.match(os.path.join(root, filename), fast=True) 21 matches = rules.match(os.path.join(root, filename), fast=True)
22 if matches: 22 if matches:
23 matches=matches.pop() 23 matches = matches.pop() # only one match, since we're scaning files
24 print str(matches) + fname 24 print str(matches) + fname
25 print '\n'.join(hex(m[0]) + ':' + m[1] + ': ' + m[2] for m in matches.strings) 25 print '\n'.join(hex(m[0]) + ':' + m[1] + ': ' + m[2] for m in matches.strings)
26 26