mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
Fixes #180 - properly url encode sqlmap payload in POST/Cookie too, like for GET
This commit is contained in:
parent
09768a7b62
commit
8e57767c48
|
@ -32,6 +32,7 @@ from lib.core.common import dataToStdout
|
||||||
from lib.core.common import getCharset
|
from lib.core.common import getCharset
|
||||||
from lib.core.common import replaceNewlineTabs
|
from lib.core.common import replaceNewlineTabs
|
||||||
from lib.core.common import safeStringFormat
|
from lib.core.common import safeStringFormat
|
||||||
|
from lib.core.convert import urlencode
|
||||||
from lib.core.data import conf
|
from lib.core.data import conf
|
||||||
from lib.core.data import kb
|
from lib.core.data import kb
|
||||||
from lib.core.data import logger
|
from lib.core.data import logger
|
||||||
|
@ -127,7 +128,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
posValue = chr(posValue)
|
posValue = chr(posValue)
|
||||||
|
|
||||||
forgedPayload = safeStringFormat(payload, (expressionUnescaped, idx, posValue))
|
forgedPayload = safeStringFormat(payload, (expressionUnescaped, idx, posValue))
|
||||||
result = Request.queryPage(forgedPayload)
|
result = Request.queryPage(urlencode(forgedPayload))
|
||||||
|
|
||||||
if kb.dbms == "SQLite":
|
if kb.dbms == "SQLite":
|
||||||
posValue = posValueOld
|
posValue = posValueOld
|
||||||
|
|
Loading…
Reference in New Issue
Block a user