(expression)
return output
Retrieve the output of a boolean based SQL query
Retrieve the output of a boolean based SQL query
Retrieve the output of a boolean based SQL query
def _goBooleanProxy(expression):
    """
    Retrieve the output of a boolean based SQL query
    """

    initTechnique(kb.technique)

    if conf.dnsName:
        query = agent.prefixQuery(kb.injection.data[kb.technique].vector)
        query = agent.suffixQuery(query)
        payload = agent.payload(newValue=query)
        output = _goDns(payload, expression)

        if output is not None:
            return output

    vector = kb.injection.data[kb.technique].vector
    vector = vector.replace("[INFERENCE]", expression)
    query = agent.prefixQuery(vector)
    query = agent.suffixQuery(query)
    payload = agent.payload(newValue=query)

    timeBasedCompare = kb.technique in (PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED)

    output = hashDBRetrieve(expression, checkConf=True)

    if output is None:
        output = Request.queryPage(payload, timeBasedCompare=timeBasedCompare, raise404=False)

        if output is not None:
            hashDBWrite(expression, output)

    return output
def _goBooleanProxy ( expression ) : initTechnique ( kb . technique ) if conf . dnsName : query = agent . prefixQuery ( kb . injection . data [ kb . technique ] . vector ) query = agent . suffixQuery ( query ) payload = agent . payload ( newValue = query ) output = _goDns ( payload , expression ) if output is not None : return output vector = kb . injection . data [ kb . technique ] . vector vector = vector . replace ( "[INFERENCE]" , expression ) query = agent . prefixQuery ( vector ) query = agent . suffixQuery ( query ) payload = agent . payload ( newValue = query ) timeBasedCompare = kb . technique in ( PAYLOAD . TECHNIQUE . TIME , PAYLOAD . TECHNIQUE . STACKED ) output = hashDBRetrieve ( expression , checkConf = True ) if output is None : output = Request . queryPage ( payload , timeBasedCompare = timeBasedCompare , raise404 = False ) if output is not None : hashDBWrite ( expression , output ) return output