mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Added one new verbose level, -v 3 now shows the full injected payload.
Fixed also -d verbose output.
This commit is contained in:
parent
27ce4b0cf0
commit
b6da946883
11 changed files with 35 additions and 20 deletions
|
|
@ -170,7 +170,7 @@ class Connect:
|
|||
|
||||
requestMsg += "\n"
|
||||
|
||||
logger.log(9, requestMsg)
|
||||
logger.log(8, requestMsg)
|
||||
|
||||
if not kb.authHeader and req.has_header("Authorization"):
|
||||
kb.authHeader = req.get_header("Authorization")
|
||||
|
|
@ -276,12 +276,12 @@ class Connect:
|
|||
|
||||
responseMsg += "(%s - %d):\n" % (status, code)
|
||||
|
||||
if conf.verbose <= 4:
|
||||
if conf.verbose <= 5:
|
||||
responseMsg += getUnicode(responseHeaders.__str__())
|
||||
elif conf.verbose > 4:
|
||||
elif conf.verbose > 5:
|
||||
responseMsg += "%s\n%s\n" % (responseHeaders, page)
|
||||
|
||||
logger.log(8, responseMsg)
|
||||
logger.log(7, responseMsg)
|
||||
|
||||
return page, responseHeaders
|
||||
|
||||
|
|
@ -318,8 +318,7 @@ class Connect:
|
|||
|
||||
value = agent.replacePayload(value, payload)
|
||||
|
||||
debugMsg = "payload: %s" % payload
|
||||
logger.debug(debugMsg)
|
||||
logger.log(9, payload)
|
||||
|
||||
if place == "Cookie" and conf.cookieUrlencode:
|
||||
value = agent.removePayloadDelimiters(value, False)
|
||||
|
|
|
|||
|
|
@ -399,6 +399,9 @@ def goStacked(expression, silent=False):
|
|||
query = agent.prefixQuery("; %s" % expression)
|
||||
query = agent.postfixQuery("%s;%s" % (query, comment))
|
||||
|
||||
debugMsg = "query: %s" % query
|
||||
logger.debug(debugMsg)
|
||||
|
||||
payload = agent.payload(newValue=query)
|
||||
page, _ = Request.queryPage(payload, content=True, silent=silent)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue