Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- login := "admin"
- password := "' OR login = 'admin"
- stmt, err := db.Prepare("SELECT * FROM users WHERE login = ? AND password = ?")
- if err != nil {
- log.Fatal(err)
- }
- res, err := stmt.Exec(login, password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement