-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfile_crawler.py
More file actions
20 lines (15 loc) · 864 Bytes
/
file_crawler.py
File metadata and controls
20 lines (15 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (c) 2020.
# This code was designed and created by TH3R4VEN, its use is encouraged for academic and professional purposes.
# I am not responsible for improper or illegal uses
# Follow me on GitHub: https://github.com/th3r4ven
from sd_crawler import response
def file_scanner(url):
print("\n[+]\tSearching for files and directories on the target web site.......")
print("-------------------------------------------------------------------------------------------")
with open("wordlist/files_dic_default.txt", "r") as wordlist_file:
for line in wordlist_file:
line = line.strip()
test_url = url + "/" + line
resp = response(test_url)
if resp or resp.status_code == 403:
print("[+]\tFile/Directory " + test_url + " returned status code " + str(resp.status_code))