Skip to content

Instantly share code, notes, and snippets.

@irshadpc
Created May 31, 2017 08:06
Show Gist options
  • Save irshadpc/f9d04eacf04d322a948bc1a327b9456b to your computer and use it in GitHub Desktop.
Save irshadpc/f9d04eacf04d322a948bc1a327b9456b to your computer and use it in GitHub Desktop.
Sql injection Valid Snippet
const char *sql = "SELECT username FROM users where uuid = ?";
sqlite3_prepare_v2(db, sql, -1, &selectUuid, NULL);
sqlite3_bind_int(selectUuid, 1, uid);
int status = sqlite3_step(selectUuid);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment