Skip to content

Instantly share code, notes, and snippets.

@OsandaMalith
Last active July 1, 2016 17:55
Show Gist options
  • Select an option

  • Save OsandaMalith/fea3b1c35a092e098dd16c132346622c to your computer and use it in GitHub Desktop.

Select an option

Save OsandaMalith/fea3b1c35a092e098dd16c132346622c to your computer and use it in GitHub Desktop.
SQL Obfuscations
/*! Author: Osanda Malith Jayathissa
* Follow: @OsandaMalith
* Website: http://osandamalith.wordpress.com
*/
# select 1 and 1=1; in obfuscated form
select ('osanda'+'malith')=0 && ~'-2magic' = -'-1';
# select 1 and 1=0; in obfuscated form
select ('osanda'+'malith')=0 && 1^'-1' = -'-1';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment