Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
itaynir1 committed Jul 30, 2023
1 parent db09a07 commit 95afd0c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions directories.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import requests


target_url = input('[*] Enter Target URL: ')
file_name = input('[*] Enter Name Of The File Containing Directories: ')


def request(url):
try:
return requests.get("http://" + url)
except requests.exceptions.ConnectionError:
pass


file = open(file_name, 'r')
for line in file:
directory = line.strip()
full_url = target_url + '/' + directory
response = request(full_url)
if response:
print('[*] Discovered Directory At This Path: ' + full_url)

0 comments on commit 95afd0c

Please sign in to comment.