Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76a2e65

Browse files
committed
Adding switch '--unsafe-naming'
1 parent 9c1879b commit 76a2e65

5 files changed

Lines changed: 11 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4273,6 +4273,9 @@ def safeSQLIdentificatorNaming(name, isTable=False):
42734273

42744274
retVal = name
42754275

4276+
if conf.unsafeNaming:
4277+
return retVal
4278+
42764279
if isinstance(name, six.string_types):
42774280
retVal = getUnicode(name)
42784281
_ = isTable and Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE)

lib/core/optiondict.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@
240240
"testFilter": "string",
241241
"testSkip": "string",
242242
"timeLimit": "float",
243+
"unsafeNaming": "boolean",
243244
"webRoot": "string",
244245
},
245246

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.8.2.0"
23+
VERSION = "1.8.2.1"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/parse/cmdline.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,9 @@ def cmdLineParser(argv=None):
739739
general.add_argument("--time-limit", dest="timeLimit", type=float,
740740
help="Run with a time limit in seconds (e.g. 3600)")
741741

742+
general.add_argument("--unsafe-naming", dest="unsafeNaming", action="store_true",
743+
help="Disable escaping of DBMS identifiers (e.g. \"user\")")
744+
742745
general.add_argument("--web-root", dest="webRoot",
743746
help="Web server document root directory (e.g. \"/var/www\")")
744747

sqlmap.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,9 @@ testSkip =
829829
# Run with a time limit in seconds (e.g. 3600).
830830
timeLimit =
831831

832+
# Disable escaping of DBMS identifiers (e.g. "user").
833+
unsafeNaming = False
834+
832835
# Web server document root directory (e.g. "/var/www").
833836
webRoot =
834837

0 commit comments

Comments
 (0)