def removehostspace(myreq): tmphost = myreq.host myreq.host = None myreq.test = tmphost sendit(myreq) myreq.test = None myreq.host = tmphost
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)
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)
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)
def hostwithtab(myreq): tmphost = myreq.host myreq.host = "\t" + myreq.host sendit(myreq) myreq.host = tmphost
def addfirstline(myreq): tmpmethod = myreq.method myreq.method = "\r\n" + myreq.method sendit(myreq) myreq.method = tmpmethod
def hostlowercase(myreq): tmphost = myreq.host myreq.host = myreq.host.lower() sendit(myreq) myreq.host = tmphost
def tabsbeforemethod(myreq): tmpmethod = myreq.method myreq.method = "\t" + myreq.method sendit(myreq) myreq.method = tmpmethod
def writelowercasemethod(myreq): tmpmethod = myreq.method myreq.method = myreq.method.lower() sendit(myreq) myreq.method = tmpmethod