mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-28 04:33:16 +00:00
Patch for an Issue #360
This commit is contained in:
parent
11e27f07e0
commit
bb6b89fe93
4 changed files with 25 additions and 15 deletions
|
|
@ -47,6 +47,7 @@ from lib.core.settings import REFERER_ALIASES
|
|||
from lib.core.settings import RESULTS_FILE_FORMAT
|
||||
from lib.core.settings import SOAP_RECOGNITION_REGEX
|
||||
from lib.core.settings import SUPPORTED_DBMS
|
||||
from lib.core.settings import UNENCODED_ORIGINAL_VALUE
|
||||
from lib.core.settings import UNICODE_ENCODING
|
||||
from lib.core.settings import UNKNOWN_DBMS_VERSION
|
||||
from lib.core.settings import URI_INJECTABLE_REGEX
|
||||
|
|
@ -504,6 +505,18 @@ def initTargetEnv():
|
|||
_restoreCmdLineOptions()
|
||||
_setDBMS()
|
||||
|
||||
if conf.data:
|
||||
kb.postSpaceToPlus = '+' in conf.data
|
||||
|
||||
if re.search(r'%[0-9a-f]{2}', conf.data, re.I):
|
||||
class _(unicode):
|
||||
pass
|
||||
original = conf.data
|
||||
conf.data = _(urldecode(conf.data))
|
||||
setattr(conf.data, UNENCODED_ORIGINAL_VALUE, original)
|
||||
else:
|
||||
conf.data = urldecode(conf.data)
|
||||
|
||||
def setupTargetEnv():
|
||||
_createTargetDirs()
|
||||
_setRequestParams()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue