Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 484d9a4

Browse files
committed
Implementation of --dump for Informix (Issue #552)
1 parent 65c305c commit 484d9a4

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.9.29"
22+
VERSION = "1.0.9.30"
2323
REVISION = getRevisionNumber()
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}

plugins/generic/entries.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,14 +321,13 @@ def dumpTable(self, foundData=None):
321321
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL, DBMS.HSQLDB):
322322
query = rootQuery.blind.query % (agent.preprocessField(tbl, column), conf.db, conf.tbl, sorted(colList, key=len)[0], index)
323323
elif Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
324-
query = rootQuery.blind.query % (agent.preprocessField(tbl, column),
325-
tbl.upper() if not conf.db else ("%s.%s" % (conf.db.upper(), tbl.upper())),
326-
index)
324+
query = rootQuery.blind.query % (agent.preprocessField(tbl, column), tbl.upper() if not conf.db else ("%s.%s" % (conf.db.upper(), tbl.upper())), index)
327325
elif Backend.isDbms(DBMS.SQLITE):
328326
query = rootQuery.blind.query % (agent.preprocessField(tbl, column), tbl, index)
329-
330327
elif Backend.isDbms(DBMS.FIREBIRD):
331328
query = rootQuery.blind.query % (index, agent.preprocessField(tbl, column), tbl)
329+
elif Backend.isDbms(DBMS.INFORMIX):
330+
query = rootQuery.blind.query % (index, agent.preprocessField(tbl, column), conf.db, tbl, sorted(colList, key=len)[0])
332331

333332
query = whereQuery(query)
334333

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py
4545
5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py
4646
99a2b496b9d5b546b335653ca801153f lib/core/revision.py
4747
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
48-
cd9b01d243acb9c70401c7456ad29567 lib/core/settings.py
48+
ff390f8d2d8653658a8a39dba2ddab2c lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py
@@ -204,7 +204,7 @@ d0c7cc8ec2aa716b2e5cd3b5ab805c3a plugins/dbms/sybase/__init__.py
204204
62faa58e5aace4b6a6d562788685186f plugins/generic/connector.py
205205
cdbf6eec4a94f830deb7dbab1c1a2935 plugins/generic/custom.py
206206
5a472f7f8688e0310259c5caeb5038ef plugins/generic/databases.py
207-
32f29017314012e7af5bfbfde61dc154 plugins/generic/entries.py
207+
1177bbad4e77a2ca85e0054569e03d38 plugins/generic/entries.py
208208
e335b868f5fb1154c9f72143d602915d plugins/generic/enumeration.py
209209
3e673ef4e6592f52a11d88e61fe4dc2b plugins/generic/filesystem.py
210210
5637c508ca6348f29c2b100a3e80dddc plugins/generic/fingerprint.py
@@ -455,4 +455,4 @@ a279656ea3fcb85c727249b02f828383 xml/livetests.xml
455455
96adb9bfbab867d221974d3ddb303cb6 xml/payloads/stacked_queries.xml
456456
c8b152ecebf04ec997e52c6c78cbd488 xml/payloads/time_blind.xml
457457
033b39025e8ee0f302935f6db3a39e77 xml/payloads/union_query.xml
458-
b5cd576c6aa7344fabbe86d89fa36b73 xml/queries.xml
458+
b788ef9f0198fa0bbb56644c206b688e xml/queries.xml

xml/queries.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@
771771
</columns>
772772
<dump_table>
773773
<inband query="SELECT %s FROM %s:%s"/>
774-
<blind query="SELECT SKIP %d LIMIT 1 %s FROM %s:%s" count="SELECT COUNT(*) FROM %s:%s"/>
774+
<blind query="SELECT SKIP %d LIMIT 1 %s FROM %s:%s ORDER BY %s" count="SELECT COUNT(*) FROM %s:%s"/>
775775
</dump_table>
776776
<search_db/>
777777
<search_table/>

0 commit comments

Comments
 (0)