diff options
| author | jvoisin | 2015-06-30 17:41:18 +0200 |
|---|---|---|
| committer | jvoisin | 2015-06-30 17:41:18 +0200 |
| commit | 6e6a8279c90cdd0e1728835bba712dbeba015dbe (patch) | |
| tree | 1c591473805e4db00f4541f091772aeaed902c9a /poc.py | |
| parent | d37e79625075b65449d79d546df3afcbe7698c16 (diff) | |
Add a comment
Diffstat (limited to 'poc.py')
| -rw-r--r-- | poc.py | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | ||
