Skip to content

Commit 0ecc968

Browse files
committed
update
1 parent 194c2ba commit 0ecc968

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

1.gif

70 Bytes
Loading

dict/default.txt

-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ administrator/
215215
houtai/
216216
backdoor/
217217
flag/
218-
upload/
219218
uploads/
220219
download/
221220
downloads/

dict/remove-duplicates.py

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# -*- coding: utf-8 -*-
2+
# @Author: kingkk
3+
# @Date: 2018-08-12 10:50:51
4+
# @Last Modified by: kingkk
5+
# @Last Modified time: 2018-08-12 11:14:39
6+
'''
7+
字典去重
8+
'''
9+
import os
10+
11+
for i in os.walk('./'):
12+
files = i[2]
13+
14+
files.remove(os.path.basename(__file__))
15+
16+
for file in files:
17+
os.rename(file, file+'.bak')
18+
19+
t = {}
20+
for file in files:
21+
f = open(file, 'w+')
22+
fbak = open(file+'.bak', 'r')
23+
t = {i for i in fbak.readlines()}
24+
for i in t:
25+
f.write(i)
26+
f.close()
27+
fbak.close()
28+
os.remove(file+'.bak')

output/ctf5.shiyanbar.com.web.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[TIME] => 2018-08-12 10:41:38.221767
1+
[TIME] => 2018-08-12 11:21:12.687960
22
[TARGET] => http://ctf5.shiyanbar.com/web/
33
[NUMBER_OF_THRED] => 10
44
[KEY_WORDS] => ['flag', 'ctf', 'kzhan.php']

0 commit comments

Comments
 (0)