-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfuzzpy.py
46 lines (40 loc) · 1.19 KB
/
fuzzpy.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python3
###########################
# Author #
# BY: n0obit4 #
# 11/July/2020 #
###########################
import requests,sys
from time import sleep
from colorama import Fore
def banner():
print(Fore.BLUE + r'''
______
/ ____/_ __________ ____ __ __
/ /_ / / / /_ /_ / / __ \/ / / /
/ __/ / /_/ / / /_/ /_/ /_/ / /_/ /
/_/ \__,_/ /___/___/ .___/\__, /
/_/ /____/
Created By: n0obit4
'''+ Fore.RESET)
print(Fore.CYAN+ "Github: https://github.com/n0obit4"+Fore.RESET)
def fuzz(url,file):
header = {'User-agent': 'Mozilla/5.0'}
with open(file) as dicc:
file = dicc.readlines()
banner()
print(Fore.YELLOW +"\nSearching..."+ Fore.RESET)
for words in file:
search = str(url+words)
request = requests.get("{}".format(search.strip()), headers=header)
status_code = request.status_code
hide_code = 404
if request.status_code != hide_code:
print(f"Found: /{words.strip()} "+ Fore.YELLOW + " (Status: {})".format(status_code) + Fore.RESET)
else:
pass
print(Fore.GREEN +"End!")
if __name__ == "__main__":
url = sys.argv[1]
file = sys.argv[2]
fuzz(url,file)