Created
May 8, 2019 09:36
-
-
Save kilfu0701/428bd57be0a2bca3e8e2db344358c9a9 to your computer and use it in GitHub Desktop.
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 characters
from struct import * | |
import os | |
for subdir, dirs, files in os.walk('./'): | |
for file in files: | |
filepath = subdir + os.sep + file | |
if file == '_1.py': | |
continue | |
with open(filepath, 'rb') as f: | |
chunk = f.read(2) | |
#print('magic =', chunk) | |
chunk = f.read(2) | |
#print(unpack('>H', chunk)) | |
chunk = f.read(2) | |
#print(unpack('>H', chunk)) | |
chunk = f.read(4) | |
i = unpack('>I', chunk)[0] | |
chunk = f.read(i) | |
#print(chunk) | |
chunk = f.read(4) | |
i = unpack('>I', chunk)[0] | |
if i >= 13783584: | |
print(i, filepath) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment