Created
June 6, 2021 14:47
-
-
Save viniciussanchez/5240f5aa5fad0ca122a5af1a0d34b1ac to your computer and use it in GitHub Desktop.
With SQL Injection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
qryUsuarios.SQL.Clear; | |
qryUsuarios.SQL.Add('select *'); | |
qryUsuarios.SQL.Add(' from user'); | |
qryUsuarios.SQL.Add(' where login = ' + QuotedStr(edtUsuario.Text)); | |
qryUsuarios.SQL.Add(' and password = ' + edtSenha.Text); | |
qryUsuarios.Open(); | |
if qryUsuarios.IsEmpty then | |
ShowMessage('ERRO!!!') | |
else | |
ShowMessage('Ok'); | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment