mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-26 08:42:52 +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":
|
if tblConsider == "2":
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
for db in conf.db.split(","):
|
for db in conf.db.split(",") if conf.db else (self.getCurrentDb(),):
|
||||||
db = safeSQLIdentificatorNaming(db)
|
db = safeSQLIdentificatorNaming(db)
|
||||||
if db not in foundTbls:
|
if db not in foundTbls:
|
||||||
foundTbls[db] = []
|
foundTbls[db] = []
|
||||||
|
@ -501,7 +501,7 @@ class Search:
|
||||||
if db not in foundCols[column]:
|
if db not in foundCols[column]:
|
||||||
foundCols[column][db] = []
|
foundCols[column][db] = []
|
||||||
else:
|
else:
|
||||||
for db in conf.db.split(","):
|
for db in conf.db.split(",") if conf.db else (self.getCurrentDb(),):
|
||||||
db = safeSQLIdentificatorNaming(db)
|
db = safeSQLIdentificatorNaming(db)
|
||||||
if db not in foundCols[column]:
|
if db not in foundCols[column]:
|
||||||
foundCols[column][db] = []
|
foundCols[column][db] = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user