mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Implementation for Issue #92
This commit is contained in:
parent
bb8cd788e1
commit
07a85874fe
|
@ -64,6 +64,8 @@ optDict = {
|
||||||
"os": "string",
|
"os": "string",
|
||||||
"invalidBignum": "boolean",
|
"invalidBignum": "boolean",
|
||||||
"invalidLogical": "boolean",
|
"invalidLogical": "boolean",
|
||||||
|
"noCast": "boolean",
|
||||||
|
"noUnescape": "boolean",
|
||||||
"prefix": "string",
|
"prefix": "string",
|
||||||
"suffix": "string",
|
"suffix": "string",
|
||||||
"skip": "string",
|
"skip": "string",
|
||||||
|
|
|
@ -6,13 +6,14 @@ See the file 'doc/COPYING' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from lib.core.common import Backend
|
from lib.core.common import Backend
|
||||||
|
from lib.core.data import conf
|
||||||
from lib.core.data import kb
|
from lib.core.data import kb
|
||||||
from lib.core.datatype import AttribDict
|
from lib.core.datatype import AttribDict
|
||||||
from lib.core.settings import EXCLUDE_UNESCAPE
|
from lib.core.settings import EXCLUDE_UNESCAPE
|
||||||
|
|
||||||
class Unescaper(AttribDict):
|
class Unescaper(AttribDict):
|
||||||
def unescape(self, expression, quote=True, dbms=None):
|
def unescape(self, expression, quote=True, dbms=None):
|
||||||
if not kb.unescape:
|
if not kb.unescape or conf.noUnescape:
|
||||||
return expression
|
return expression
|
||||||
|
|
||||||
if expression is None:
|
if expression is None:
|
||||||
|
|
|
@ -209,6 +209,10 @@ def cmdLineParser():
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Turn off payload casting mechanism")
|
help="Turn off payload casting mechanism")
|
||||||
|
|
||||||
|
injection.add_option("--no-unescape", dest="noUnescape",
|
||||||
|
action="store_true",
|
||||||
|
help="Turn off string unescaping mechanism")
|
||||||
|
|
||||||
injection.add_option("--prefix", dest="prefix",
|
injection.add_option("--prefix", dest="prefix",
|
||||||
help="Injection payload prefix string")
|
help="Injection payload prefix string")
|
||||||
|
|
||||||
|
|
|
@ -207,6 +207,10 @@ invalidLogical = False
|
||||||
# Valid: True or False
|
# Valid: True or False
|
||||||
noCast = False
|
noCast = False
|
||||||
|
|
||||||
|
# Turn off string unescaping mechanism
|
||||||
|
# Valid: True or False
|
||||||
|
noUnescape = False
|
||||||
|
|
||||||
# Injection payload prefix string.
|
# Injection payload prefix string.
|
||||||
prefix =
|
prefix =
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user