def __init__(self, params): BasePayload.__init__(self, params) offset = int(params["offset"]) limit = int(params["limit"]) self._it = BingIter(params["dork"], offset, limit)
def __init__(self, params): BasePayload.__init__(self, params) try: self.f = open(self.find_file(self.params["fn"]), "r") except IOError, e: raise FuzzExceptBadFile("Error opening file. %s" % str(e))
def __init__(self, params): BasePayload.__init__(self, params) search = params["search"] page = int(params["page"]) limit = int(params["limit"]) self._it = ShodanIter(search, page, limit)
def __init__(self, params): BasePayload.__init__(self, params) search = params["search"] page = int(params["page"]) limit = int(params["limit"]) self._it = ShodanIter(search, page, limit)
def __init__(self, params): BasePayload.__init__(self, params) try: self.f = open_file_detect_encoding(self.find_file(self.params["fn"])) except IOError as e: raise FuzzExceptBadFile("Error opening file. %s" % str(e)) self.__count = None
def __init__(self, params): BasePayload.__init__(self, params) try: ran = self.params["range"].split("-") self.minimum = int(ran[0], 16) self.maximum = int(ran[1], 16) self.__count = -1 except ValueError: raise FuzzExceptPluginBadParams("Bad range format (eg. \"0-ffa\")")
def __init__(self, params): BasePayload.__init__(self, params) try: self.f = open_file_detect_encoding( self.find_file(self.params["fn"])) except IOError as e: raise FuzzExceptBadFile("Error opening file. %s" % str(e)) self.__count = None
def __init__(self, params): BasePayload.__init__(self, params) try: ran = self.params["range"].split("-") self.minimum = int(ran[0],16) self.maximum = int(ran[1],16) self.__count = -1 except: raise Exception, "Bad range format (eg. \"0-ffa\")"
def __init__(self, params): BasePayload.__init__(self, params) try: ran = self.params["range"].split("-") self.minimum = int(ran[0], 16) self.maximum = int(ran[1], 16) self.__count = -1 except ValueError: raise FuzzExceptPluginBadParams("Bad range format (eg. \"0-ffa\")")
def __init__(self, params): BasePayload.__init__(self, params) try: encoding = self.params['encoding'] if self.params['encoding'].lower() != 'auto' else None self.f = FileDetOpener(self.find_file(self.params["fn"]), encoding) except IOError as e: raise FuzzExceptBadFile("Error opening file. %s" % str(e)) self.__count = None
def __init__(self, params): BasePayload.__init__(self, params) try: ran = self.params["range"].split("-") self.minimum = int(ran[0], 16) self.maximum = int(ran[1], 16) self.__count = -1 except: raise Exception, "Bad range format (eg. \"0-ffa\")"
def __init__(self, params): BasePayload.__init__(self, params) possibleusernames = [] name = "" llist = self.params["name"].split("-") for x in llist: if name == "": name = name + x else: name = name + " " + x if " " in name: parts = name.split() possibleusernames.append(parts[0]) possibleusernames.append(parts[0]+"."+parts[1]) possibleusernames.append(parts[0]+parts[1]) possibleusernames.append(parts[0]+"."+parts[1][0]) possibleusernames.append(parts[0][0]+"."+parts[1]) possibleusernames.append(parts[0]+parts[1][0]) possibleusernames.append(parts[0][0]+parts[1]) str1="" str2="" str3="" str4="" for i in range(0,len(parts)-1): str1=str1+parts[i]+"." str2=str2+parts[i] str3=str3+parts[i][0]+"." str4=str4+parts[i][0] str5=str1+parts[-1] str6=str2+parts[-1] str7=str4+parts[-1] str8=str3+parts[-1] str9=str2+parts[-1][0] str10=str4+parts[-1][0] possibleusernames.append(str5) possibleusernames.append(str6) possibleusernames.append(str7) possibleusernames.append(str8) possibleusernames.append(str9) possibleusernames.append(str10) possibleusernames.append(parts[-1]) possibleusernames.append(parts[0]+"."+parts[-1]) possibleusernames.append(parts[0]+parts[-1]) possibleusernames.append(parts[0]+"."+parts[-1][0]) possibleusernames.append(parts[0][0]+"."+parts[-1]) possibleusernames.append(parts[0]+parts[-1][0]) possibleusernames.append(parts[0][0]+parts[-1]) else: possibleusernames.append(name) self.creatednames=possibleusernames self.__count=len(possibleusernames)
def __init__(self, params): BasePayload.__init__(self, params) try: ran = self.params["range"].split("-") self.minimum = int(ran[0]) self.maximum = int(ran[1]) self.__count = self.maximum - self.minimum + 1 self.width = len(ran[0]) self.current = self.minimum except: raise FuzzExceptPluginBadParams("Bad range format (eg. \"23-56\")")
def __init__(self, params): BasePayload.__init__(self, params) try: ran = self.params["range"].split("-") self.minimum = int(ran[0]) self.maximum = int(ran[1]) self.__count = self.maximum - self.minimum + 1 self.width = len(ran[0]) self.current = self.minimum except ValueError: raise FuzzExceptPluginBadParams('Bad range format (eg. "23-56")')
def __init__(self, params): BasePayload.__init__(self, params) try: ran = self.params["range"].split("-") self.minimum = int(ran[0], 16) self.maximum = int(ran[1], 16) self.__count = self.maximum - self.minimum + 1 self.current = self.minimum self.lgth = max(len(ran[0]), len(ran[1]), len(hex(self.maximum).replace("0x", ""))) except ValueError: raise FuzzExceptBadOptions("Bad range format (eg. \"0-ffa\")")
def __init__(self, params): BasePayload.__init__(self, params) try: from netaddr import IPRange from netaddr.core import AddrFormatError ran = self.params["iprange"].split("-") net = IPRange(ran[0], ran[1]) self.f = iter(net) self.__count = net.size except ImportError: raise FuzzExceptBadInstall("ipnet plugin requires netaddr module. Please install it using pip.") except AddrFormatError: raise FuzzExceptPluginBadParams("The specified network range has an incorrect format.") except IndexError: raise FuzzExceptPluginBadParams("The specified network range has an incorrect format.")
def __init__(self, params): BasePayload.__init__(self, params) if self.params["values"].find("\\") >= 0: self.params["values"] = self.params["values"].replace("\\-", "$SEP$") self.params["values"] = self.params["values"].replace("\\\\", "$SCAP$") self.value_list = self.params["values"].split("-") for i in range(len(self.value_list)): self.value_list[i] = self.value_list[i].replace("$SEP$", "-") self.value_list[i] = self.value_list[i].replace("$SCAP$", "\\") else: self.value_list = self.params["values"].split("-") self.__count = len(self.value_list) self.current = 0
def __init__(self, params): BasePayload.__init__(self, params) try: from netaddr import IPNetwork from netaddr.core import AddrFormatError net = IPNetwork(u'%s' % self.params["net"]) self.f = net.iter_hosts() self.__count = net.size - 2 if self.__count <= 0: raise FuzzExceptPluginBadParams("There are not hosts in the specified network") except AddrFormatError: raise FuzzExceptPluginBadParams("The specified network has an incorrect format.") except ValueError: raise FuzzExceptPluginBadParams("The specified network has an incorrect format.") except ImportError: raise FuzzExceptBadInstall("ipnet plugin requires netaddr module. Please install it using pip.")
def __init__(self, params): BasePayload.__init__(self, params) self.__max = -1 self.attr = self.params["attr"] self._it = self.burp_to_xml(self.params["fn"]) if any(i not in ["proxy", "target"] for i in self.params["source"].split(",")): raise FuzzExceptBadOptions("Unknown burp source parameter") self.request_tags = [] self.response_tags = [] if "proxy" in self.params["source"]: self.request_tags.append("</originalRequest>") self.response_tags.append("</originalResponse>") if "target" in self.params["source"]: self.request_tags.append("</request>") self.response_tags.append("</response>")
def __init__(self, params): BasePayload.__init__(self, params) self.charset = [] try: ran = self.params["ch"].split("-") self.charset = ran[0] self.width = int(ran[1]) except: raise Exception, "Bad range format (eg. \"abfdeg-3\")" pset = [] for x in self.charset: pset.append(x) words = self.xcombinations(pset, self.width) self.lista = [] for x in words: self.lista.append(''.join(x)) self.__count = len(self.lista)
def __init__(self, params): BasePayload.__init__(self, params) try: from netaddr import IPRange from netaddr.core import AddrFormatError ran = self.params["iprange"].split("-") net = IPRange(ran[0], ran[1]) self.f = iter(net) self.__count = net.size except ImportError: raise FuzzExceptBadInstall( "ipnet plugin requires netaddr module. Please install it using pip." ) except AddrFormatError: raise FuzzExceptPluginBadParams( "The specified network range has an incorrect format.") except IndexError: raise FuzzExceptPluginBadParams( "The specified network range has an incorrect format.")
def __init__(self, params): BasePayload.__init__(self, params) self.charset = [] try: ran = self.params["ch"].split("-") self.charset = ran[0] self.width = int(ran[1]) except ValueError: raise FuzzExceptBadOptions("Bad range format (eg. \"0-ffa\")") pset = [] for x in self.charset: pset.append(x) words = self.xcombinations(pset, self.width) self.lista = [] for x in words: self.lista.append(''.join(x)) self.__count = len(self.lista)
def __init__(self, params): BasePayload.__init__(self, params) self.l = ['A' * int(self.params["size"])] self.current = 0
def __init__(self, params): BasePayload.__init__(self, params) self.__max = -1 self.attr = self.params["attr"] self._it = self._gen_wfuzz(self.params["fn"])
def __init__(self, params): BasePayload.__init__(self, params) self.l = ['A' * int(self.params["size"])] self.current = 0
def __init__(self, params): BasePayload.__init__(self, params) self.attr = self.params["attr"] self._it = iter(Facade().data[self.params["tab"]])
def __init__(self, params): BasePayload.__init__(self, params) self.__max = -1 self.attr = self.params["attr"] self._it = self.parse_burp_log(self.params["fn"])
def __init__(self, params): BasePayload.__init__(self, params) self.attr = self.params["attr"] self._it = iter(Facade().data[self.params["tab"]])
def __init__(self, params): BasePayload.__init__(self, params) self.bov_list = ["A" * int(self.params["size"])] self.current = 0
def __init__(self, params): BasePayload.__init__(self, params) self.__max = -1 self.attr = self.params["attr"] self._it = self.parse_burp_log(self.params["fn"])
def __init__(self, params): BasePayload.__init__(self, params) self.__max = -1 self.attr = self.params["attr"] self._it = self._gen_wfuzz(self.params["fn"])
def __init__(self, params): BasePayload.__init__(self, params) self.__count = -1
def __init__(self, params): BasePayload.__init__(self, params) # stdin is unseekable self.__count = -1
def __init__(self, params): BasePayload.__init__(self, params) self.g = self._my_gen(self.params["dir"])
def __init__(self, params): BasePayload.__init__(self, params) # stdin is unseekable self.__count = -1