From 484d9a4825feb4aaf4ea442ab25814f06966b266 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 23 Sep 2016 17:21:48 +0200 Subject: [PATCH] Implementation of --dump for Informix (Issue #552) --- lib/core/settings.py | 2 +- plugins/generic/entries.py | 7 +++---- txt/checksum.md5 | 6 +++--- xml/queries.xml | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 95926a3ea..07a396940 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.9.29" +VERSION = "1.0.9.30" REVISION = getRevisionNumber() TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} diff --git a/plugins/generic/entries.py b/plugins/generic/entries.py index 9df7b351d..65c8edf9c 100644 --- a/plugins/generic/entries.py +++ b/plugins/generic/entries.py @@ -321,14 +321,13 @@ class Entries: 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) elif Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2): - query = rootQuery.blind.query % (agent.preprocessField(tbl, column), - tbl.upper() if not conf.db else ("%s.%s" % (conf.db.upper(), tbl.upper())), - index) + query = rootQuery.blind.query % (agent.preprocessField(tbl, column), tbl.upper() if not conf.db else ("%s.%s" % (conf.db.upper(), tbl.upper())), index) elif Backend.isDbms(DBMS.SQLITE): query = rootQuery.blind.query % (agent.preprocessField(tbl, column), tbl, index) - elif Backend.isDbms(DBMS.FIREBIRD): 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) diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 01719d199..1cfdbb50d 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py 5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py 99a2b496b9d5b546b335653ca801153f lib/core/revision.py 7c15dd2777af4dac2c89cab6df17462e lib/core/session.py -cd9b01d243acb9c70401c7456ad29567 lib/core/settings.py +ff390f8d2d8653658a8a39dba2ddab2c lib/core/settings.py 7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py 23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py 0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py @@ -204,7 +204,7 @@ d0c7cc8ec2aa716b2e5cd3b5ab805c3a plugins/dbms/sybase/__init__.py 62faa58e5aace4b6a6d562788685186f plugins/generic/connector.py cdbf6eec4a94f830deb7dbab1c1a2935 plugins/generic/custom.py 5a472f7f8688e0310259c5caeb5038ef plugins/generic/databases.py -32f29017314012e7af5bfbfde61dc154 plugins/generic/entries.py +1177bbad4e77a2ca85e0054569e03d38 plugins/generic/entries.py e335b868f5fb1154c9f72143d602915d plugins/generic/enumeration.py 3e673ef4e6592f52a11d88e61fe4dc2b plugins/generic/filesystem.py 5637c508ca6348f29c2b100a3e80dddc plugins/generic/fingerprint.py @@ -455,4 +455,4 @@ a279656ea3fcb85c727249b02f828383 xml/livetests.xml 96adb9bfbab867d221974d3ddb303cb6 xml/payloads/stacked_queries.xml c8b152ecebf04ec997e52c6c78cbd488 xml/payloads/time_blind.xml 033b39025e8ee0f302935f6db3a39e77 xml/payloads/union_query.xml -b5cd576c6aa7344fabbe86d89fa36b73 xml/queries.xml +b788ef9f0198fa0bbb56644c206b688e xml/queries.xml diff --git a/xml/queries.xml b/xml/queries.xml index 88d0524b0..2142ab4a2 100644 --- a/xml/queries.xml +++ b/xml/queries.xml @@ -771,7 +771,7 @@ - +