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