2018-12-28 08:49:56 +08:00
|
|
|
try:
|
|
|
|
import wfuzz
|
|
|
|
except ImportError as e:
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class search_wfuzz:
|
2019-01-11 10:09:47 +08:00
|
|
|
|
2018-12-28 08:49:56 +08:00
|
|
|
def __init__(self, host):
|
|
|
|
self.host = host
|
|
|
|
self.results = ""
|
|
|
|
self.totalresults = ""
|
2019-02-04 21:18:00 +08:00
|
|
|
|
2018-12-28 08:49:56 +08:00
|
|
|
def do_search(self):
|
2019-01-12 05:01:52 +08:00
|
|
|
print('elo')
|
2018-12-28 08:49:56 +08:00
|
|
|
try:
|
2019-01-14 07:58:38 +08:00
|
|
|
for r in wfuzz.fuzz(url='https://'+self.host+'/FUZZ', hc=[404], payloads=[('file', dict(fn='wordlists/general/common.txt'))]):
|
2018-12-28 08:49:56 +08:00
|
|
|
print(r)
|
|
|
|
self.results += r
|
|
|
|
except Exception as e:
|
|
|
|
print(e)
|
|
|
|
self.totalresults += self.results
|
|
|
|
|
|
|
|
def get_results(self):
|
|
|
|
return self.totalresults
|
2019-02-04 21:18:00 +08:00
|
|
|
|
2018-12-28 08:49:56 +08:00
|
|
|
def do_check(self):
|
|
|
|
return
|
|
|
|
|
|
|
|
def process(self):
|
|
|
|
self.do_search()
|
2019-01-12 05:01:52 +08:00
|
|
|
print('\tSearching Wfuzz')
|