Advertisement
os_

SQLi visualizer

os_
Oct 1st, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. # Usage:
  3. # Keep editing $u and $p and in a second terminal execute:
  4. #    while :; do bash sqli.sh; sleep 1; done
  5.  
  6. main() {
  7.     u='hans" or 1=1; --'
  8.     p='p@ssw0rd'
  9.  
  10.     echo "SELECT * FROM user WHERE user = \"$u\" AND password = \"$p\";" | sed 's/--.*//'
  11. }
  12.  
  13. main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement