728x90
๋ฐ์ํ
์ฌ์ ํ์ผ์ ํ์ผ์ด๋ฆ๊ณผ ํด๋๋ฅผ ์ง์ ํด์ฃผ๋ฉด ์ค๋ณตํ์ผ์ ๋ฝ์์ค๋๋ค :)
# -*- coding: utf-8 -*-
import os
f = open('/Users/z3alous/Desktop/flag1.txt', 'w') <- ์ ์ฅ๊ฒฝ๋ก
re = open('/Users/z3alous/Desktop/flag.txt') # MD5๊ฐ ๋ค์ด์๋ TXT
ree = re.readlines()
for root, dirs, files in os.walk('/Users/z3alous/Downloads/'): <-ํด๋๊ฒฝ๋ก
for fname in files:
full_fname = os.path.join(fname)
ffname = full_fname
ffname = ffname.strip()
for x in ree:
x = x.strip()
if ffname == x:
f.write(ffname + "\n")
f.close()
re.close()
728x90
๋ฐ์ํ
'Language' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
image GPS.py (0) | 2016.12.21 |
---|---|
base image.py (0) | 2016.12.21 |
md5 ํ๋ฒ์ ์ธ์ฝ๋ฉํ๊ธฐ :) ex)ํด๋์ง์ (0) | 2016.12.18 |
rsa.py_ctf (0) | 2016.12.12 |
toolhelp (0) | 2015.09.24 |
๋๊ธ