예제 #1
0
def removehostspace(myreq):
    tmphost = myreq.host
    myreq.host = None
    myreq.test = tmphost
    sendit(myreq)

    myreq.test = None
    myreq.host = tmphost
예제 #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)
예제 #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)
예제 #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)
예제 #5
0
def hostwithtab(myreq):
    tmphost = myreq.host
    myreq.host = "\t" + myreq.host
    sendit(myreq)

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

    myreq.method = tmpmethod
예제 #7
0
def hostlowercase(myreq):
    tmphost = myreq.host
    myreq.host = myreq.host.lower()
    sendit(myreq)

    myreq.host = tmphost
예제 #8
0
def tabsbeforemethod(myreq):
    tmpmethod = myreq.method
    myreq.method = "\t" + myreq.method
    sendit(myreq)

    myreq.method = tmpmethod
예제 #9
0
def writelowercasemethod(myreq):
    tmpmethod = myreq.method
    myreq.method = myreq.method.lower()
    sendit(myreq)

    myreq.method = tmpmethod