summaryrefslogtreecommitdiff
path: root/poc.py
diff options
context:
space:
mode:
authorjvoisin2015-06-30 17:41:18 +0200
committerjvoisin2015-06-30 17:41:18 +0200
commit6e6a8279c90cdd0e1728835bba712dbeba015dbe (patch)
tree1c591473805e4db00f4541f091772aeaed902c9a /poc.py
parentd37e79625075b65449d79d546df3afcbe7698c16 (diff)
Add a comment
Diffstat (limited to 'poc.py')
-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