MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / goStacked

Function goStacked

lib/request/inject.py:545–563  ·  view source on GitHub ↗
(expression, silent=False)

Source from the content-addressed store, hash-verified

543 return extractExpectedValue(value, expected)
544
545def goStacked(expression, silent=False):
546 if PAYLOAD.TECHNIQUE.STACKED in kb.injection.data:
547 setTechnique(PAYLOAD.TECHNIQUE.STACKED)
548 else:
549 for technique in getPublicTypeMembers(PAYLOAD.TECHNIQUE, True):
550 _ = getTechniqueData(technique)
551 if _ and "stacked" in _["title"].lower():
552 setTechnique(technique)
553 break
554
555 expression = cleanQuery(expression)
556
557 if conf.direct:
558 return direct(expression)
559
560 query = agent.prefixQuery(";%s" % expression)
561 query = agent.suffixQuery(query)
562 payload = agent.payload(newValue=query)
563 Request.queryPage(payload, content=False, silent=silent, noteResponseTime=False, timeBasedCompare="SELECT" in (payload or "").upper())
564
565def checkBooleanExpression(expression, expectingNone=True):
566 return getValue(expression, expected=EXPECTED.BOOL, charsetType=CHARSET_TYPE.BINARY, suppressOutput=True, expectingNone=expectingNone)

Callers

nothing calls this directly

Calls 9

setTechniqueFunction · 0.90
getPublicTypeMembersFunction · 0.90
getTechniqueDataFunction · 0.90
cleanQueryFunction · 0.90
directFunction · 0.90
prefixQueryMethod · 0.80
suffixQueryMethod · 0.80
payloadMethod · 0.80
queryPageMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…