diff options
| author | blotus | 2015-09-08 17:22:26 +0200 |
|---|---|---|
| committer | blotus | 2015-09-08 17:22:26 +0200 |
| commit | b7df1dfdc1ba9817ce4a4915263ca7fd2da18d8b (patch) | |
| tree | 23c1355cae0772e06cb121df129d3b79f1f5bd94 | |
| parent | 7070de185d4fc85238d49a43c7153e34ae2533f7 (diff) | |
| parent | 9c9daa6e9ad114f4e743e3ec0cea5d4d6f851ea7 (diff) | |
Merge pull request #8 from gdelpierre/master
Add shebang
| -rw-r--r-- | generate_whitelist.py | 2 | ||||
| -rw-r--r-- | poc.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/generate_whitelist.py b/generate_whitelist.py index 2671fc7..791bab9 100644 --- a/generate_whitelist.py +++ b/generate_whitelist.py | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #!/usr/bin/env python | ||
| 2 | |||
| 1 | import fnmatch | 3 | import fnmatch |
| 2 | import hashlib | 4 | import hashlib |
| 3 | import os | 5 | import os |
| @@ -1,5 +1,6 @@ | |||
| 1 | #1/usr/bin/env python | ||
| 2 | |||
| 1 | import fnmatch | 3 | import fnmatch |
| 2 | import glob | ||
| 3 | import os | 4 | import os |
| 4 | import sys | 5 | import sys |
| 5 | import time | 6 | import time |
| @@ -27,4 +28,3 @@ for cpt, (root, dirnames, filenames) in enumerate(os.walk(sys.argv[1])): | |||
| 27 | print str(matches) + fname | 28 | print str(matches) + fname |
| 28 | print '\n'.join(hex(m[0]) + ':' + m[1] + ': ' + m[2] for m in matches.strings) | 29 | print '\n'.join(hex(m[0]) + ':' + m[1] + ': ' + m[2] for m in matches.strings) |
| 29 | 30 | ||
| 30 | |||
