File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 1
- # importing requests python module
2
1
import requests
3
-
4
- # enter your ip or domain which youre gonna search for
5
2
url = input ("Enter domain or IP with / at end:" )
6
-
7
- # path for the wordlists
8
3
path = input ("Enter Wordlist path :" )
9
-
10
- #opening the wordlists in read mode
11
4
file = open (path , "r" )
12
-
13
- #sending the requests and with url, wordlists
14
5
for i in range (len (file )):
15
6
wls = file .readline ()
16
7
r = requests .get (url + wls )
17
8
stats = r .status_code
18
-
19
- # if the status code is 200 then it is success and there is folder exists
20
9
if stats == 200 :
21
10
print ("_" * 50 )
22
11
print ("Path :" + url + wls , (stats ))
23
12
print ("_" * 50 )
24
-
25
- # if the status code is 404 then it is not found means there is no such folder exists
26
13
elif stats == 404 :
27
14
print ("_" * 50 )
28
15
print ("Path :" + url + wls , (stats ))
29
16
print ("_" * 50 )
30
-
31
- # else if none of the above things exists
32
17
else :
33
18
print ("_" * 50 )
34
19
print ("Path :" + url + wls , (stats ))
35
20
print ("_" * 50 )
36
-
37
- # closing the file
38
21
file .close ()
You can’t perform that action at this time.
0 commit comments