mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Fixed a bug reported by Bedirhan Urgun <bedirhanurgun@gmail.com>
This commit is contained in:
parent
962d63eff5
commit
d664f0387e
|
@ -25,7 +25,7 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
|
||||
from ConfigParser import NoSectionError
|
||||
from ConfigParser import SafeConfigParser
|
||||
from ConfigParser import ConfigParser
|
||||
|
||||
from lib.core.common import checkFile
|
||||
from lib.core.data import conf
|
||||
|
@ -76,7 +76,7 @@ def configFileParser(configFile):
|
|||
logger.debug(debugMsg)
|
||||
|
||||
checkFile(configFile)
|
||||
config = SafeConfigParser()
|
||||
config = ConfigParser()
|
||||
config.read(configFile)
|
||||
|
||||
if not config.has_section("Request"):
|
||||
|
|
|
@ -92,7 +92,10 @@ def bisection(payload, expression, length=None):
|
|||
queriesCount[0] += 1
|
||||
limit = ((maxValue + minValue) / 2)
|
||||
|
||||
forgedPayload = payload % (expressionUnescaped, idx, limit)
|
||||
# TODO: find a cleaner way to do this
|
||||
forgedPayload = payload.replace("%", "%%", 1) % (expressionUnescaped, idx, limit)
|
||||
forgedPayload = forgedPayload.replace("%%", "%")
|
||||
|
||||
result = Request.queryPage(forgedPayload)
|
||||
|
||||
if result == kb.defaultResult:
|
||||
|
|
Loading…
Reference in New Issue
Block a user