-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
42 lines (34 loc) · 1.08 KB
/
Copy pathmain.py
File metadata and controls
42 lines (34 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import requests
import threading
def urlread(url, param_list):
message = ""
for param_item in param_list:
scan_url = url + "/"+ param_item
r = requests.get(scan_url)
if r.status_code == 200:
print(scan_url)
word_list = []
word_cell = []
counter = 0
word_counter = 0
threads = []
# base_url have to include 'http://' . Example: http://www.example.com , http://192.168.0.1
base_url = ""
with open('wordlist/Filenames_or_Directories_All.wordlist','r') as dirfile:
for lines in dirfile:
lines = lines.rstrip('\n')
word_counter += 1
if counter > 15000:
word_list.append(word_cell)
counter = 0
word_cell = []
else:
word_cell.append(lines)
counter += 1
if len(word_cell) > 0:
word_list.append(word_cell)
print(str(len(word_list)) + " threads are running against:" + str(word_counter) + " possible words.")
for i in range(len(word_list)):
t = threading.Thread(target=urlread,args=(base_url,word_list[i]))
threads.append(t)
t.start()