User Tools

Site Tools


hacking:sql_injection_cheat_sheet_mssql

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hacking:sql_injection_cheat_sheet_mssql [2020/04/01 09:40] peterhacking:sql_injection_cheat_sheet_mssql [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 51: Line 51:
 </code>| </code>|
 |ASCII Value -> Char|SELECT char(0x41) -- returns A| |ASCII Value -> Char|SELECT char(0x41) -- returns A|
-|Char -> ASCII Value|SELECT ascii('A') - returns 65|+|Char -> ASCII Value|SELECT ascii('A'-- returns 65|
 |Casting|<code> |Casting|<code>
 SELECT CAST('1' as int); SELECT CAST('1' as int);
Line 67: Line 67:
  
 -- NB: Concatenation is not allowed in calls to these SPs, hence why we have to use @host. Messy but necessary. -- NB: Concatenation is not allowed in calls to these SPs, hence why we have to use @host. Messy but necessary.
-<nowiki>--</nowiki> Also check out theDNS tunnel feature of [[http://sqlninja.sourceforge.net/sqlninja-howto.html|sqlninja]].+-- Also check out theDNS tunnel feature of [[http://sqlninja.sourceforge.net/sqlninja-howto.html|sqlninja]]
 </code>| </code>|
 |Command Execution|<code> |Command Execution|<code>
Line 95: Line 95:
 tempdb tempdb
 </code>| </code>|
 +
 +----
 +
 +===== References =====
 +
 +https://www.michaelboman.org/books/sql-injection-cheat-sheet-mssql
  
hacking/sql_injection_cheat_sheet_mssql.1585734056.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki