示例#1
0
文件: bing.py 项目: p4int3r/Tools
    def __init__(self, params):
        BasePayload.__init__(self, params)

        offset = int(params["offset"])
        limit = int(params["limit"])

        self._it = BingIter(params["dork"], offset, limit)
示例#2
0
文件: ipnet.py 项目: zkuns5/wfuzz
    def __init__(self, params):
        BasePayload.__init__(self, params)

        try:
            from netaddr import IPNetwork
            from netaddr.core import AddrFormatError

            net = IPNetwork("%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 ValueError:
            raise FuzzExceptPluginBadParams(
                "The specified network has an incorrect format.")
        except ImportError:
            raise FuzzExceptBadInstall(
                "ipnet plugin requires netaddr module. Please install it using pip."
            )
        except AddrFormatError:
            raise FuzzExceptPluginBadParams(
                "The specified network has an incorrect format.")
示例#3
0
    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))
示例#4
0
    def __init__(self, params):
        BasePayload.__init__(self, params)

        offset = int(params["offset"])
        limit = int(params["limit"])

	self._it = BingIter(params["dork"], offset, limit)
示例#5
0
文件: shodanp.py 项目: xmendez/wfuzz
    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)
示例#6
0
文件: shodanp.py 项目: zkuns5/wfuzz
    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)
示例#7
0
文件: file.py 项目: digininja/wfuzz
    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
示例#8
0
    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\")"
示例#9
0
    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\")")
示例#10
0
文件: hexrand.py 项目: p4int3r/Tools
    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\")"
示例#11
0
    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
示例#12
0
    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\")")
示例#13
0
文件: file.py 项目: MAH0460/b
    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
示例#14
0
    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)
示例#15
0
文件: names.py 项目: zkuns5/wfuzz
    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)
示例#16
0
    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\")")
示例#17
0
文件: range.py 项目: zkuns5/wfuzz
    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")')
示例#18
0
文件: hexrange.py 项目: MAH0460/b
    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\")")
示例#19
0
    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
示例#20
0
文件: list.py 项目: digininja/wfuzz
    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
示例#21
0
    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.")
示例#22
0
    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>")
示例#23
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.")
示例#24
0
    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)
示例#25
0
    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)
示例#26
0
    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>")
示例#27
0
文件: iprange.py 项目: MAH0460/b
    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.")
示例#28
0
文件: dirwalk.py 项目: p4int3r/Tools
    def __init__(self, params):
        BasePayload.__init__(self, params)

        self.g = self._my_gen(self.params["dir"])
示例#29
0
    def __init__(self, params):
        BasePayload.__init__(self, params)

	# stdin is unseekable
	self.__count = -1
示例#30
0
    def __init__(self, params):
        BasePayload.__init__(self, params)

        self.l = ['A' * int(self.params["size"])]
        self.current = 0
示例#31
0
    def __init__(self, params):
        BasePayload.__init__(self, params)

        self.g = self._my_gen(self.params["dir"])
示例#32
0
    def __init__(self, params):
        BasePayload.__init__(self, params)

	self.l = ['A' * int(self.params["size"])]
	self.current = 0
示例#33
0
文件: guitab.py 项目: digininja/wfuzz
    def __init__(self, params):
        BasePayload.__init__(self, params)

        self.attr = self.params["attr"]
        self._it = iter(Facade().data[self.params["tab"]])
示例#34
0
文件: stdin.py 项目: p4int3r/Tools
    def __init__(self, params):
        BasePayload.__init__(self, params)

        # stdin is unseekable
        self.__count = -1
示例#35
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"])
示例#36
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"])
示例#37
0
 def __init__(self, params):
     BasePayload.__init__(self, params)
     self.__count = -1
示例#38
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"])
示例#39
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"])
示例#40
0
文件: guitab.py 项目: p4int3r/Tools
    def __init__(self, params):
        BasePayload.__init__(self, params)

        self.attr = self.params["attr"]
        self._it = iter(Facade().data[self.params["tab"]])
示例#41
0
    def __init__(self, params):
        BasePayload.__init__(self, params)

        self.bov_list = ["A" * int(self.params["size"])]
        self.current = 0