mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
little stabilization regarding POST url(de/en)coding
This commit is contained in:
parent
0fcd999e51
commit
139448eeb9
|
@ -1088,6 +1088,7 @@ def __cleanupOptions():
|
|||
conf.progressWidth = width-46
|
||||
|
||||
if conf.testParameter:
|
||||
conf.testParameter = urldecode(conf.testParameter)
|
||||
conf.testParameter = conf.testParameter.replace(" ", "")
|
||||
conf.testParameter = conf.testParameter.split(",")
|
||||
else:
|
||||
|
@ -1135,6 +1136,9 @@ def __cleanupOptions():
|
|||
if conf.tor:
|
||||
conf.proxy = DEFAULT_TOR_PROXY
|
||||
|
||||
if conf.data:
|
||||
conf.data = urldecode(conf.data)
|
||||
|
||||
def __setConfAttributes():
|
||||
"""
|
||||
This function set some needed attributes into the configuration
|
||||
|
@ -1429,9 +1433,9 @@ def init(inputOptions=advancedDict()):
|
|||
__mergeOptions(inputOptions)
|
||||
__setVerbosity()
|
||||
__saveCmdline()
|
||||
__setRequestFromFile()
|
||||
__cleanupOptions()
|
||||
__basicOptionValidation()
|
||||
__setRequestFromFile()
|
||||
__setMultipleTargets()
|
||||
__setTamperingFunctions()
|
||||
__setTrafficOutputFP()
|
||||
|
|
|
@ -68,7 +68,7 @@ def __setRequestParams():
|
|||
|
||||
if conf.data:
|
||||
conf.data = conf.data.replace("\n", " ")
|
||||
conf.parameters[PLACE.POST] = urldecode(conf.data)
|
||||
conf.parameters[PLACE.POST] = conf.data
|
||||
|
||||
# Check if POST data is in xml syntax
|
||||
if re.match("[\n]*<(\?xml |soap\:|ns).*>", conf.data):
|
||||
|
|
Loading…
Reference in New Issue
Block a user