Skip to content

Commit 5d6b972

Browse files
committed
Switching Informix dump from regular to pivotdumptable
1 parent 5704426 commit 5d6b972

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

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.enums import OS
2020

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

plugins/generic/entries.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,15 @@ def dumpTable(self, foundData=None):
303303

304304
continue
305305

306-
elif Backend.getIdentifiedDbms() in (DBMS.ACCESS, DBMS.SYBASE, DBMS.MAXDB, DBMS.MSSQL):
306+
elif Backend.getIdentifiedDbms() in (DBMS.ACCESS, DBMS.SYBASE, DBMS.MAXDB, DBMS.MSSQL, DBMS.INFORMIX):
307307
if Backend.isDbms(DBMS.ACCESS):
308308
table = tbl
309309
elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL):
310310
table = "%s.%s" % (conf.db, tbl)
311311
elif Backend.isDbms(DBMS.MAXDB):
312312
table = "%s.%s" % (conf.db, tbl)
313+
elif Backend.isDbms(DBMS.INFORMIX):
314+
table = "%s:%s" % (conf.db, tbl)
313315

314316
if Backend.isDbms(DBMS.MSSQL):
315317
try:

txt/checksum.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ f872699e948d0692ce11b54781da814c lib/core/log.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
51d5d97293138acfd70568c9f20eaf8f lib/core/settings.py
49+
8b4e97576189f033d919e9642e423d73 lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d93501771b41315f9fb949305b6ed257 lib/core/target.py

xml/queries.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@
776776
</columns>
777777
<dump_table>
778778
<inband query="SELECT %s FROM %s:%s"/>
779-
<blind query="SELECT SKIP %d LIMIT 1 %s FROM %s:%s ORDER BY %s" count="SELECT COUNT(*) FROM %s:%s"/>
779+
<blind query="SELECT MIN(%s) FROM %s WHERE RTRIM(TO_CHAR(%s))>'%s'" query2="SELECT MAX(%s) FROM %s WHERE RTRIM(TO_CHAR(%s)) LIKE '%s'" count="SELECT COUNT(*) FROM %s:%s" count2="SELECT COUNT(DISTINCT %s) FROM %s"/>
780780
</dump_table>
781781
<search_db/>
782782
<search_table/>

0 commit comments

Comments
 (0)