mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-07 06:33:06 +03:00
Major bug fix in url-encoding
This commit is contained in:
parent
c18a5cb92f
commit
2825ab5e4e
|
@ -26,6 +26,7 @@ import re
|
||||||
|
|
||||||
from lib.core.common import randomInt
|
from lib.core.common import randomInt
|
||||||
from lib.core.common import randomStr
|
from lib.core.common import randomStr
|
||||||
|
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 queries
|
from lib.core.data import queries
|
||||||
|
@ -52,6 +53,7 @@ class Agent:
|
||||||
falseValue = ""
|
falseValue = ""
|
||||||
negValue = ""
|
negValue = ""
|
||||||
retValue = ""
|
retValue = ""
|
||||||
|
newValue = urlencode(newValue)
|
||||||
|
|
||||||
if negative or conf.paramNegative:
|
if negative or conf.paramNegative:
|
||||||
negValue = "-"
|
negValue = "-"
|
||||||
|
@ -77,7 +79,7 @@ class Agent:
|
||||||
paramString = conf.parameters[place]
|
paramString = conf.parameters[place]
|
||||||
retValue = paramString.replace("%s=%s" % (parameter, value),
|
retValue = paramString.replace("%s=%s" % (parameter, value),
|
||||||
"%s=%s" % (parameter, newValue))
|
"%s=%s" % (parameter, newValue))
|
||||||
|
|
||||||
return retValue
|
return retValue
|
||||||
|
|
||||||
def fullPayload(self, query):
|
def fullPayload(self, query):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user