mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
dumping table is now possible on Firebird too
This commit is contained in:
parent
f9bc6fc78f
commit
e98d9c08e1
3 changed files with 10 additions and 9 deletions
|
|
@ -144,3 +144,6 @@ class Fingerprint(GenericFingerprint):
|
|||
|
||||
def forceDbmsEnum(self):
|
||||
conf.db = "%s%s" % (DBMS.FIREBIRD, METADB_SUFFIX)
|
||||
|
||||
if conf.tbl:
|
||||
conf.tbl = conf.tbl.upper()
|
||||
|
|
|
|||
|
|
@ -915,7 +915,7 @@ class Enumeration:
|
|||
}
|
||||
|
||||
rootQuery = queries[kb.dbms].columns
|
||||
condition = rootQuery.blind.condition
|
||||
condition = rootQuery.blind.condition if 'condition' in rootQuery.blind else None
|
||||
|
||||
infoMsg = "fetching columns "
|
||||
|
||||
|
|
@ -1167,7 +1167,7 @@ class Enumeration:
|
|||
|
||||
if kb.dbms == DBMS.ORACLE:
|
||||
query = rootQuery.blind.count % conf.tbl.upper()
|
||||
elif kb.dbms in (DBMS.SQLITE, DBMS.ACCESS):
|
||||
elif kb.dbms in (DBMS.SQLITE, DBMS.ACCESS, DBMS.FIREBIRD):
|
||||
query = rootQuery.blind.count % conf.tbl
|
||||
else:
|
||||
query = rootQuery.blind.count % (conf.db, conf.tbl)
|
||||
|
|
@ -1216,6 +1216,9 @@ class Enumeration:
|
|||
elif kb.dbms == DBMS.SQLITE:
|
||||
query = rootQuery.blind.query % (column, conf.tbl, index)
|
||||
|
||||
elif kb.dbms == DBMS.FIREBIRD:
|
||||
query = rootQuery.blind.query % (index, column, conf.tbl)
|
||||
|
||||
value = inject.getValue(query, inband=False)
|
||||
|
||||
lengths[column] = max(lengths[column], len(value))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue