728x90
๋ฐ์ํ
# -*- coding: utf-8 -*-
import hashlib
import os
f = open('/Users/z3alous/Desktop/flag.txt', 'w')
def md5(fname):
hash_md5 = hashlib.md5()
with open(fname, "rb") as f:
for chunk in iter(lambda: f.read(4096), b""):
hash_md5.update(chunk)
return hash_md5.hexdigest()
for root, dirs, files in os.walk('ํด๋ ๊ฒฝ๋ก'):
for fname in files:
full_fname = os.path.join(root, fname)
f.write(md5(full_fname) + '\n')
f.close()
728x90
๋ฐ์ํ
'Language' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
base image.py (0) | 2016.12.21 |
---|---|
python ๊ฐ์ ํ์ผ ๋ฝ์๋ด๊ธฐ :) (0) | 2016.12.18 |
rsa.py_ctf (0) | 2016.12.12 |
toolhelp (0) | 2015.09.24 |
C์ธ์ด ์ ๋ฆฌ (0) | 2015.09.22 |
๋๊ธ