Skip to content

Commit a5212c7

Browse files
authored
Create Product Key File Finder v2
1.look for only 'ff' keyword as the file name. current code support only singles format file search. Current set: txt 2.print the local path of the result file as well under '_result_path_'
1 parent fd94ccb commit a5212c7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Product Key File Finder v2

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import glob, os, shutil, string
2+
rs = ['%s://' % d for d in string.ascii_uppercase if os.path.exists('%s://' % d)]
3+
print(rs);
4+
print(len(rs));
5+
print('10%')
6+
i = 0
7+
ff = 'Product Key'
8+
print('20%')
9+
directory = "rss"
10+
file_name = "test.txt"
11+
print('30%')
12+
while i != len(rs):
13+
os.chdir(rs[i])
14+
for file in glob.glob("**/*.txt", recursive = True):
15+
if ff in file:
16+
print(file)
17+
_result_path_ = os.path.join(rs[i], file)
18+
print(_result_path_)
19+
print('scan done')
20+
i += 1
21+
print('stop execute')

0 commit comments

Comments
 (0)