Skip to content

Commit 1d81172

Browse files
authored
Update dirbrute.py
1 parent 2a9d724 commit 1d81172

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

directory_bruteforcing/dirbrute.py

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
import requests
2+
23
url = input("Enter domain or IP with / at end:")
34
path = input("Enter Wordlist path :")
45
file = open(path, "r")
6+
57
for i in range(len(file)):
6-
wls = file.readline()
7-
r = requests.get(url+wls)
8-
stats = r.status_code
8+
wls = file.readline()
9+
r = requests.get(url+wls)
10+
stats = r.status_code
11+
912
if stats == 200:
10-
print("_"*50)
11-
print("Path :"+url+wls, (stats))
12-
print("_"*50)
13+
print("_"*50)
14+
print("Path :"+url+wls, (stats))
15+
print("_"*50)
1316
elif stats == 404:
14-
print("_"*50)
15-
print("Path :"+url+wls, (stats))
16-
print("_"*50)
17+
print("_"*50)
18+
print("Path :"+url+wls, (stats))
19+
print("_"*50)
1720
else:
18-
print("_"*50)
19-
print("Path :"+url+wls, (stats))
20-
print("_"*50)
21+
print("_"*50)
22+
print("Path :"+url+wls, (stats))
23+
print("_"*50)
2124
file.close()

0 commit comments

Comments
 (0)