mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Another patch for DNS exfiltration and boolean checks
This commit is contained in:
parent
8e660e6911
commit
686fe4d0e9
|
@ -286,17 +286,20 @@ def _goBooleanProxy(expression):
|
||||||
|
|
||||||
initTechnique(kb.technique)
|
initTechnique(kb.technique)
|
||||||
|
|
||||||
|
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 = kb.injection.data[kb.technique].vector
|
||||||
vector = vector.replace("[INFERENCE]", expression)
|
vector = vector.replace("[INFERENCE]", expression)
|
||||||
query = agent.prefixQuery(vector)
|
query = agent.prefixQuery(vector)
|
||||||
query = agent.suffixQuery(query)
|
query = agent.suffixQuery(query)
|
||||||
payload = agent.payload(newValue=query)
|
payload = agent.payload(newValue=query)
|
||||||
|
|
||||||
output = _goDns(payload, expression)
|
|
||||||
|
|
||||||
if output is not None:
|
|
||||||
return output
|
|
||||||
|
|
||||||
timeBasedCompare = kb.technique in (PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED)
|
timeBasedCompare = kb.technique in (PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED)
|
||||||
|
|
||||||
output = hashDBRetrieve(expression, checkConf=True)
|
output = hashDBRetrieve(expression, checkConf=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user