Docker or Node 16+
git clone git@github.com:tranxuanthang/sql-injection-demo.git
cd sql-injection-demo
node index.js
Then visit http://localhost:3000 to start hacking.
docker pull tranxuanthang/sql-injection-demo
docker run --rm -it --init -p 3000:3000 tranxuanthang/sql-injection-demo
Then visit http://localhost:3000 to start hacking.
Table users:
| id | username | password |
|---|---|---|
| 1 | admin | ThisIsAStrongPassword |
| 2 | thang | 111111 |
Build new Docker image:
docker build -t tranxuanthang/sql-injection-demo:latest .
Push new image to Docker Hub:
docker push tranxuanthang/sql-injection-demo:latest