mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-25 16:22:57 +03:00
Bug fix for crashes caused by '--search --exclude-sysdbs --current-db'
This commit is contained in:
parent
4e3a4eb0ff
commit
be213bc657
|
@ -261,7 +261,7 @@ class Search:
|
|||
if tblConsider == "2":
|
||||
continue
|
||||
else:
|
||||
for db in conf.db.split(","):
|
||||
for db in conf.db.split(",") if conf.db else (self.getCurrentDb(),):
|
||||
db = safeSQLIdentificatorNaming(db)
|
||||
if db not in foundTbls:
|
||||
foundTbls[db] = []
|
||||
|
@ -501,7 +501,7 @@ class Search:
|
|||
if db not in foundCols[column]:
|
||||
foundCols[column][db] = []
|
||||
else:
|
||||
for db in conf.db.split(","):
|
||||
for db in conf.db.split(",") if conf.db else (self.getCurrentDb(),):
|
||||
db = safeSQLIdentificatorNaming(db)
|
||||
if db not in foundCols[column]:
|
||||
foundCols[column][db] = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user