mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Implementation of --dump for Informix (Issue #552)
This commit is contained in:
parent
65c305cff0
commit
484d9a4825
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
||||||
from lib.core.revision import getRevisionNumber
|
from lib.core.revision import getRevisionNumber
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.0.9.29"
|
VERSION = "1.0.9.30"
|
||||||
REVISION = getRevisionNumber()
|
REVISION = getRevisionNumber()
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
|
|
|
@ -321,14 +321,13 @@ class Entries:
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL, DBMS.HSQLDB):
|
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL, DBMS.HSQLDB):
|
||||||
query = rootQuery.blind.query % (agent.preprocessField(tbl, column), conf.db, conf.tbl, sorted(colList, key=len)[0], index)
|
query = rootQuery.blind.query % (agent.preprocessField(tbl, column), conf.db, conf.tbl, sorted(colList, key=len)[0], index)
|
||||||
elif Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
|
elif Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
|
||||||
query = rootQuery.blind.query % (agent.preprocessField(tbl, column),
|
query = rootQuery.blind.query % (agent.preprocessField(tbl, column), tbl.upper() if not conf.db else ("%s.%s" % (conf.db.upper(), tbl.upper())), index)
|
||||||
tbl.upper() if not conf.db else ("%s.%s" % (conf.db.upper(), tbl.upper())),
|
|
||||||
index)
|
|
||||||
elif Backend.isDbms(DBMS.SQLITE):
|
elif Backend.isDbms(DBMS.SQLITE):
|
||||||
query = rootQuery.blind.query % (agent.preprocessField(tbl, column), tbl, index)
|
query = rootQuery.blind.query % (agent.preprocessField(tbl, column), tbl, index)
|
||||||
|
|
||||||
elif Backend.isDbms(DBMS.FIREBIRD):
|
elif Backend.isDbms(DBMS.FIREBIRD):
|
||||||
query = rootQuery.blind.query % (index, agent.preprocessField(tbl, column), tbl)
|
query = rootQuery.blind.query % (index, agent.preprocessField(tbl, column), tbl)
|
||||||
|
elif Backend.isDbms(DBMS.INFORMIX):
|
||||||
|
query = rootQuery.blind.query % (index, agent.preprocessField(tbl, column), conf.db, tbl, sorted(colList, key=len)[0])
|
||||||
|
|
||||||
query = whereQuery(query)
|
query = whereQuery(query)
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
|
||||||
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
|
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
|
||||||
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
|
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
|
||||||
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
|
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
|
||||||
cd9b01d243acb9c70401c7456ad29567 lib/core/settings.py
|
ff390f8d2d8653658a8a39dba2ddab2c lib/core/settings.py
|
||||||
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
|
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
|
||||||
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
|
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
|
||||||
0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py
|
0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py
|
||||||
|
@ -204,7 +204,7 @@ d0c7cc8ec2aa716b2e5cd3b5ab805c3a plugins/dbms/sybase/__init__.py
|
||||||
62faa58e5aace4b6a6d562788685186f plugins/generic/connector.py
|
62faa58e5aace4b6a6d562788685186f plugins/generic/connector.py
|
||||||
cdbf6eec4a94f830deb7dbab1c1a2935 plugins/generic/custom.py
|
cdbf6eec4a94f830deb7dbab1c1a2935 plugins/generic/custom.py
|
||||||
5a472f7f8688e0310259c5caeb5038ef plugins/generic/databases.py
|
5a472f7f8688e0310259c5caeb5038ef plugins/generic/databases.py
|
||||||
32f29017314012e7af5bfbfde61dc154 plugins/generic/entries.py
|
1177bbad4e77a2ca85e0054569e03d38 plugins/generic/entries.py
|
||||||
e335b868f5fb1154c9f72143d602915d plugins/generic/enumeration.py
|
e335b868f5fb1154c9f72143d602915d plugins/generic/enumeration.py
|
||||||
3e673ef4e6592f52a11d88e61fe4dc2b plugins/generic/filesystem.py
|
3e673ef4e6592f52a11d88e61fe4dc2b plugins/generic/filesystem.py
|
||||||
5637c508ca6348f29c2b100a3e80dddc plugins/generic/fingerprint.py
|
5637c508ca6348f29c2b100a3e80dddc plugins/generic/fingerprint.py
|
||||||
|
@ -455,4 +455,4 @@ a279656ea3fcb85c727249b02f828383 xml/livetests.xml
|
||||||
96adb9bfbab867d221974d3ddb303cb6 xml/payloads/stacked_queries.xml
|
96adb9bfbab867d221974d3ddb303cb6 xml/payloads/stacked_queries.xml
|
||||||
c8b152ecebf04ec997e52c6c78cbd488 xml/payloads/time_blind.xml
|
c8b152ecebf04ec997e52c6c78cbd488 xml/payloads/time_blind.xml
|
||||||
033b39025e8ee0f302935f6db3a39e77 xml/payloads/union_query.xml
|
033b39025e8ee0f302935f6db3a39e77 xml/payloads/union_query.xml
|
||||||
b5cd576c6aa7344fabbe86d89fa36b73 xml/queries.xml
|
b788ef9f0198fa0bbb56644c206b688e xml/queries.xml
|
||||||
|
|
|
@ -771,7 +771,7 @@
|
||||||
</columns>
|
</columns>
|
||||||
<dump_table>
|
<dump_table>
|
||||||
<inband query="SELECT %s FROM %s:%s"/>
|
<inband query="SELECT %s FROM %s:%s"/>
|
||||||
<blind query="SELECT SKIP %d LIMIT 1 %s FROM %s:%s" count="SELECT COUNT(*) FROM %s:%s"/>
|
<blind query="SELECT SKIP %d LIMIT 1 %s FROM %s:%s ORDER BY %s" count="SELECT COUNT(*) FROM %s:%s"/>
|
||||||
</dump_table>
|
</dump_table>
|
||||||
<search_db/>
|
<search_db/>
|
||||||
<search_table/>
|
<search_table/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user