20.07.2012, 15:51
I need help with SQL Injection how do I do it?
I'm not sure how it would be done in a sa-mp server, attackers attack forums usually.
|
SELECT id FROM playerinfo WHERE name = '%s' AND password = sha1('%s') LIMIT 1;
blah') OR TRUE --
SELECT id FROM playerinfo WHERE name = '%s' AND password = sha1('blah') OR TRUE -- ) LIMIT 1;
Mostly through login dialog. Most servers use the new DIALOG_STYLE_PASSWORD for that so the characters aren't visible anymore, but still ... Consider this query:
PHP код:
Код:
blah') OR TRUE -- PHP код:
|