We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db09a07 commit 95afd0cCopy full SHA for 95afd0c
directories.py
@@ -0,0 +1,21 @@
1
+import requests
2
+
3
4
+target_url = input('[*] Enter Target URL: ')
5
+file_name = input('[*] Enter Name Of The File Containing Directories: ')
6
7
8
+def request(url):
9
+ try:
10
+ return requests.get("http://" + url)
11
+ except requests.exceptions.ConnectionError:
12
+ pass
13
14
15
+file = open(file_name, 'r')
16
+for line in file:
17
+ directory = line.strip()
18
+ full_url = target_url + '/' + directory
19
+ response = request(full_url)
20
+ if response:
21
+ print('[*] Discovered Directory At This Path: ' + full_url)
0 commit comments