mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
Minor layout adjustment
This commit is contained in:
parent
02e5c4b1e6
commit
71d82e6f57
|
@ -100,6 +100,8 @@ def __unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix
|
||||||
validPayload = None
|
validPayload = None
|
||||||
vector = None
|
vector = None
|
||||||
query = agent.prefixQuery("UNION ALL SELECT %s" % conf.uChar)
|
query = agent.prefixQuery("UNION ALL SELECT %s" % conf.uChar)
|
||||||
|
total = conf.uColsStop+1 - conf.uColsStart
|
||||||
|
index = 1
|
||||||
|
|
||||||
for count in range(conf.uColsStart, conf.uColsStop+1):
|
for count in range(conf.uColsStart, conf.uColsStop+1):
|
||||||
if Backend.getIdentifiedDbms() in FROM_TABLE and query.endswith(FROM_TABLE[Backend.getIdentifiedDbms()]):
|
if Backend.getIdentifiedDbms() in FROM_TABLE and query.endswith(FROM_TABLE[Backend.getIdentifiedDbms()]):
|
||||||
|
@ -112,7 +114,7 @@ def __unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix
|
||||||
query += FROM_TABLE[Backend.getIdentifiedDbms()]
|
query += FROM_TABLE[Backend.getIdentifiedDbms()]
|
||||||
|
|
||||||
status = "%d/%d" % (count, conf.uColsStop)
|
status = "%d/%d" % (count, conf.uColsStop)
|
||||||
debugMsg = "testing %s columns (%d%%)" % (status, round(100.0*count/conf.uColsStop))
|
debugMsg = "testing %s columns (%d%%)" % (status, round(100.0*index/total))
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
validPayload, vector = __unionConfirm(comment, place, parameter, value, prefix, suffix, count)
|
validPayload, vector = __unionConfirm(comment, place, parameter, value, prefix, suffix, count)
|
||||||
|
@ -120,6 +122,8 @@ def __unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix
|
||||||
if validPayload:
|
if validPayload:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
index += 1
|
||||||
|
|
||||||
clearConsoleLine(True)
|
clearConsoleLine(True)
|
||||||
|
|
||||||
return validPayload, vector
|
return validPayload, vector
|
||||||
|
|
Loading…
Reference in New Issue
Block a user