mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
minor fix (database and/or table names with - sign inside needs to be escaped by ` character or will lead to a "SQL syntax")
This commit is contained in:
@@ -1131,6 +1131,12 @@ class Enumeration:
|
|||||||
|
|
||||||
rootQuery = queries[kb.dbms].dump_table
|
rootQuery = queries[kb.dbms].dump_table
|
||||||
|
|
||||||
|
if kb.dbms == DBMS.MYSQL:
|
||||||
|
if '-' in conf.tbl:
|
||||||
|
conf.tbl = "`%s`" % conf.tbl
|
||||||
|
if '-' in conf.db:
|
||||||
|
conf.db = "`%s`" % conf.db
|
||||||
|
|
||||||
if conf.col:
|
if conf.col:
|
||||||
colList = conf.col.split(",")
|
colList = conf.col.split(",")
|
||||||
kb.data.cachedColumns[conf.db] = {}
|
kb.data.cachedColumns[conf.db] = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user