mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
Minor refactoring
This commit is contained in:
parent
558f3894f4
commit
6e4b65a822
|
@ -35,7 +35,7 @@ def direct(query, content=True):
|
||||||
select = True
|
select = True
|
||||||
break
|
break
|
||||||
|
|
||||||
logger.debug("query: %s" % query)
|
logger.log(9, query)
|
||||||
|
|
||||||
if not select:
|
if not select:
|
||||||
output = timeout(func=conf.dbmsConnector.execute, args=(query,), duration=conf.timeout, default=None)
|
output = timeout(func=conf.dbmsConnector.execute, args=(query,), duration=conf.timeout, default=None)
|
||||||
|
|
|
@ -492,10 +492,6 @@ def goStacked(expression, silent=False):
|
||||||
comment = queries[getIdentifiedDBMS()].comment.query
|
comment = queries[getIdentifiedDBMS()].comment.query
|
||||||
query = agent.prefixQuery("; %s" % expression)
|
query = agent.prefixQuery("; %s" % expression)
|
||||||
query = agent.suffixQuery("%s;%s" % (query, comment))
|
query = agent.suffixQuery("%s;%s" % (query, comment))
|
||||||
|
|
||||||
debugMsg = "query: %s" % query
|
|
||||||
logger.debug(debugMsg)
|
|
||||||
|
|
||||||
payload = agent.payload(newValue=query)
|
payload = agent.payload(newValue=query)
|
||||||
page, _ = Request.queryPage(payload, content=True, silent=silent, noteResponseTime=False)
|
page, _ = Request.queryPage(payload, content=True, silent=silent, noteResponseTime=False)
|
||||||
|
|
||||||
|
|
|
@ -81,9 +81,6 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
else:
|
else:
|
||||||
expressionUnescaped = unescaper.unescape(expression)
|
expressionUnescaped = unescaper.unescape(expression)
|
||||||
|
|
||||||
debugMsg = "query: %s" % expressionUnescaped
|
|
||||||
logger.debug(debugMsg)
|
|
||||||
|
|
||||||
if length and not isinstance(length, int) and length.isdigit():
|
if length and not isinstance(length, int) and length.isdigit():
|
||||||
length = int(length)
|
length = int(length)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user