mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Related to an Issue #319
This commit is contained in:
parent
0d5d84edc7
commit
0a122ccce4
2 changed files with 14 additions and 16 deletions
|
|
@ -1125,15 +1125,10 @@ def expandAsteriskForColumns(expression):
|
|||
infoMsg += "sqlmap will retrieve the column names itself"
|
||||
logger.info(infoMsg)
|
||||
|
||||
dbTbl = asterisk.group(1)
|
||||
|
||||
if dbTbl and ".." in dbTbl:
|
||||
dbTbl = dbTbl.replace('..', '.dbo.')
|
||||
|
||||
if dbTbl and "." in dbTbl:
|
||||
conf.db, conf.tbl = dbTbl.split(".", 1)
|
||||
else:
|
||||
conf.tbl = dbTbl
|
||||
_ = asterisk.group(1).replace("..", ".")
|
||||
conf.db, conf.tbl = _.split(".", 1) if '.' in _ else (None, _)
|
||||
conf.db = safeSQLIdentificatorNaming(conf.db)
|
||||
conf.tbl = safeSQLIdentificatorNaming(conf.tbl, True)
|
||||
|
||||
columnsDict = conf.dbmsHandler.getColumns(onlyColNames=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue