-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Fuzz-xElkomy.py
66 lines (53 loc) · 1.72 KB
/
Fuzz-xElkomy.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import requests, re, sys, codecs,time
from multiprocessing import Pool
from time import time as timer
global user_agent,helper,directory,ifing,list_targets
def logo():
banner=(f'''\033
\t # # ####### # # # ####### # # # #
\t # # # # # # # # ## ## # #
\t # # # # # # # # # # # # # #
\t # ##### # ### # # # # # #
\t # # # # # # # # # # #
\t # # # # # # # # # # #
\t# # ####### ####### # # ####### # # #
\t ##########__Khaled Mohamed__######### GitHub:@xElkomy
\t [Example]: python3 Fuzz-xElkomy.py target.txt DIR if-you-want-check ..!
''')
print(banner)
time.sleep(1)
logo()
list_targets = sys.argv[1]
directory = sys.argv[2]
ifing = sys.argv[3]
user_agent = {"User-Agent":'Mozilla/5.0 (Windows NT 10.0; Win64; x64).xElkomy AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36 '}
try:
with codecs.open(list_targets, mode='r', encoding='ascii', errors='ignore') as f:
ooo = f.read().splitlines()
except IOError:
pass
ooo = list((ooo))
try:
if ifing ==None and directory ==None and list_targets ==None:
logo()
except IOError:
pass
def get_url(url):
try:
wcheck = requests.get(url + directory,headers=user_agent,timeout=3)
if ifing in wcheck.text:
print("\n" + url + directory +"\n")
except:
pass
def goo():
try:
start = timer()
pp = Pool(30) #Threads
pr = pp.map(get_url, ooo)
print('Time: ' + str(timer() - start) + ' seconds')
except:
pass
if goo() == 'main':
goo()
print('''\t-------------xElkomy-------------
\tBye :(''')