def __goInference(payload, expression, charsetType=None, firstChar=None, lastChar=None, dump=False): start = time.time() timeBasedCompare = (kb.technique in (PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED)) if (conf.eta or conf.threads > 1 ) and Backend.getIdentifiedDbms() and not timeBasedCompare: _, length, _ = queryOutputLength(expression, payload) else: length = None dataToSessionFile("[%s][%s][%s][%s][" % (conf.url, kb.injection.place, conf.parameters[kb.injection.place], expression)) count, value = bisection(payload, expression, length, charsetType, firstChar, lastChar, dump) if not kb.bruteMode: debugMsg = "performed %d queries in %d seconds" % ( count, calculateDeltaSeconds(start)) logger.debug(debugMsg) return value
def __goInference(payload, expression, charsetType=None, firstChar=None, lastChar=None): start = time.time() if ( conf.eta or conf.threads > 1 ) and kb.dbms: _, length, _ = queryOutputLength(expression, payload) else: length = None dataToSessionFile("[%s][%s][%s][%s][" % (conf.url, kb.injPlace, conf.parameters[kb.injPlace], expression)) count, value = bisection(payload, expression, length, charsetType, firstChar, lastChar) debugMsg = "performed %d queries in %d seconds" % (count, calculateDeltaSeconds(start)) logger.debug(debugMsg) return value
def __goInference(payload, expression, charsetType=None, firstChar=None, lastChar=None, dump=False): start = time.time() timeBasedCompare = (kb.technique in (PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED)) if (conf.eta or conf.threads > 1) and Backend.getIdentifiedDbms() and not timeBasedCompare: _, length, _ = queryOutputLength(expression, payload) else: length = None dataToSessionFile("[%s][%s][%s][%s][" % (conf.url, kb.injection.place, conf.parameters[kb.injection.place], expression)) count, value = bisection(payload, expression, length, charsetType, firstChar, lastChar, dump) if not kb.bruteMode: debugMsg = "performed %d queries in %d seconds" % (count, calculateDeltaSeconds(start)) logger.debug(debugMsg) return value
def __goInference(payload, expression): start = time.time() if ( conf.eta or conf.threads > 1 ) and kb.dbms: _, length, _ = queryOutputLength(expression, payload) else: length = None dataToSessionFile("[%s][%s][%s][%s][" % (conf.url, kb.injPlace, conf.parameters[kb.injPlace], expression)) count, value = bisection(payload, expression, length=length) duration = int(time.time() - start) if conf.eta and length: infoMsg = "retrieved: %s" % value logger.info(infoMsg) infoMsg = "performed %d queries in %d seconds" % (count, duration) logger.info(infoMsg) return value
def __goInference(payload, expression): start = time.time() if (conf.eta or conf.threads > 1) and kb.dbms: _, length, _ = queryOutputLength(expression, payload) else: length = None dataToSessionFile( "[%s][%s][%s][%s][" % (conf.url, kb.injPlace, conf.parameters[kb.injPlace], expression)) count, value = bisection(payload, expression, length=length) duration = int(time.time() - start) if conf.eta and length: infoMsg = "retrieved: %s" % value logger.info(infoMsg) infoMsg = "performed %d queries in %d seconds" % (count, duration) logger.info(infoMsg) return value