Exemplo n.º 1
0
def removehostspace(myreq):
    tmphost = myreq.host
    myreq.host = None
    myreq.test = tmphost
    sendit(myreq)

    myreq.test = None
    myreq.host = tmphost
Exemplo n.º 2
0
def fuzzmain():
    myreq = HTTPReq.getobj()
    tmpuri = myreq.uri
    getpayloads(fuzzsheetName, genericcolmnName, fuzzingpayloads)
    for payload in fuzzingpayloads:
        if payload == '#exitme#':
            statics.exitCall = True
        else:
            myreq.uri = tmpuri + payload
            sendit(myreq)
Exemplo n.º 3
0
def headervalue(myreq, head):
    head_value = "127.0.0.1"
    myreq.addheader(head, head_value)
    sendit(myreq)

    head_value = myreq.host
    myreq.addheader(head, head_value)
    sendit(myreq)

    myreq.delheader(head)
Exemplo n.º 4
0
def modifyheader():
    myreq = HTTPReq.getobj()
    getpayloads(headersheetName, genericcolmnName, headerspayloads)
    for payload in headerspayloads:
        if payload == '#exitme#':
            headeroperation(myreq)
            break
        else:
            if not "Content-Type" in payload:
                headervalue(myreq, payload)
            else:
                if myreq.content_type is not None:
                    changecontenttype(myreq, payload)
                    sendit(myreq)
Exemplo n.º 5
0
def hostwithtab(myreq):
    tmphost = myreq.host
    myreq.host = "\t" + myreq.host
    sendit(myreq)

    myreq.host = tmphost
Exemplo n.º 6
0
def addfirstline(myreq):
    tmpmethod = myreq.method
    myreq.method = "\r\n" + myreq.method
    sendit(myreq)

    myreq.method = tmpmethod
Exemplo n.º 7
0
def hostlowercase(myreq):
    tmphost = myreq.host
    myreq.host = myreq.host.lower()
    sendit(myreq)

    myreq.host = tmphost
Exemplo n.º 8
0
def tabsbeforemethod(myreq):
    tmpmethod = myreq.method
    myreq.method = "\t" + myreq.method
    sendit(myreq)

    myreq.method = tmpmethod
Exemplo n.º 9
0
def writelowercasemethod(myreq):
    tmpmethod = myreq.method
    myreq.method = myreq.method.lower()
    sendit(myreq)

    myreq.method = tmpmethod