2018-03-23 06:50:30 +08:00
|
|
|
import string
|
|
|
|
import requests
|
|
|
|
import sys
|
|
|
|
import myparser
|
|
|
|
import re
|
|
|
|
try:
|
|
|
|
import wfuzz
|
|
|
|
except Exception, e:
|
2018-04-16 20:23:09 +08:00
|
|
|
pass
|
2018-03-23 06:50:30 +08:00
|
|
|
|
|
|
|
class search_wfuzz:
|
|
|
|
def __init__(self, host):
|
|
|
|
self.host = host
|
|
|
|
self.results = ""
|
|
|
|
self.totalresults = ""
|
|
|
|
|
|
|
|
def do_search(self):
|
|
|
|
print "elo"
|
|
|
|
try:
|
|
|
|
for r in wfuzz.fuzz(url="https://"+self.host+"/FUZZ", hc=[404], payloads=[("file",dict(fn="wordlist/general/common.txt"))]):
|
|
|
|
print r
|
|
|
|
self.results += r
|
|
|
|
except Exception, e:
|
|
|
|
print e
|
|
|
|
self.totalresults += self.results
|
|
|
|
|
|
|
|
def get_results(self):
|
|
|
|
return self.totalresults
|
|
|
|
|
|
|
|
def do_check(self):
|
|
|
|
return
|
|
|
|
|
|
|
|
def process(self):
|
|
|
|
self.do_search()
|
|
|
|
print "\tSearching Wfuzz.."
|