MongoDB need to be installed and running on localhost (otherwise, edit the value of MONGO_URL
in server.js
).
For Sqreen to work, create a new application on https://my.sqreen.io and add the sqreen.json
file to the root of the project.
Start the server with node server.js
Perform an attack with:
$ curl -X POST \
http://localhost:3000/login \
-H 'content-type: application/json' \
-d '{
"username": {"$gt": "" }
}'