mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
minor restyling
This commit is contained in:
parent
16668e1b8d
commit
45177cf93d
|
@ -130,7 +130,7 @@ class Search:
|
|||
value = safeSQLIdentificatorNaming(value)
|
||||
foundDbs.append(value)
|
||||
|
||||
return foundDbs
|
||||
conf.dumper.lister("found databases", foundDbs)
|
||||
|
||||
def searchTable(self):
|
||||
bruteForce = False
|
||||
|
@ -329,7 +329,6 @@ class Search:
|
|||
colCond = rootQuery.inband.condition
|
||||
dbCond = rootQuery.inband.condition2
|
||||
tblCond = rootQuery.inband.condition3
|
||||
|
||||
colConsider, colCondParam = self.likeOrExact("column")
|
||||
|
||||
for column in colList:
|
||||
|
@ -535,20 +534,17 @@ class Search:
|
|||
self.dumpFoundColumn(dbs, foundCols, colConsider)
|
||||
|
||||
def search(self):
|
||||
if conf.db and Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
|
||||
if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
|
||||
for item in ('db', 'tbl', 'col'):
|
||||
if getattr(conf, item, None):
|
||||
setattr(conf, item, getattr(conf, item).upper())
|
||||
|
||||
if conf.col:
|
||||
self.searchColumn()
|
||||
|
||||
elif conf.tbl:
|
||||
self.searchTable()
|
||||
|
||||
elif conf.db:
|
||||
conf.dumper.lister("found databases", self.searchDb())
|
||||
|
||||
self.searchDb()
|
||||
else:
|
||||
errMsg = "missing parameter, provide -D, -T or -C along "
|
||||
errMsg += "with --search"
|
||||
|
|
Loading…
Reference in New Issue
Block a user