sqlmap
sqlmap copied to clipboard
unable to retrive table/column names after getting database type and name in webgoat: sql injection (advanced)_Assigment 5
Describe the bug i was able to get the database type = "HSQLDB" and database name = "PUBLIC" by using --current-db, but when i trying to retrive the table/column names further using common-tables/columns, it says that no table(s)/column(s) found. i have cheated and checked the source code to get the table/column names and comfirmed so of the names that webgoat are using is in the provided common-table(s)/column(s).
To Reproduce
- Run 'sqlmap -r D:\projects\cyberSecurityProjects\note\injection\SQLInjection(advenced)\requests\register.txt -proxy http://127.0.0.1:8081 --string "please try to register with a different username" -p username_reg' to get database type "HSQLDB 1.7.2"
- Run 'sqlmap -r D:\projects\cyberSecurityProjects\note\injection\SQLInjection(advenced)\requests\register.txt -proxy http://127.0.0.1:8081 -p username_reg --dbms="HSQLDB" --technique=B -D public --tables --level=5 --risk=3' receives no table(s) found
- Run 'sqlmap -r D:\projects\cyberSecurityProjects\note\injection\SQLInjection(advenced)\requests\register.txt -proxy http://127.0.0.1:8081 -p username_reg --dbms="HSQLDB" --technique=B -D public -T sql_challenge_users --columns --level=5 --risk=3' receives no column(s) found
Expected behavior i followed a guide from here: https://pvxs.medium.com/webgoat-sql-injection-advanced-5-20ce63bf4aec and i expect to get some same or similar results he got.
Screenshots
target table (from source code)
unable to get table names
unable to get column names
Running environment:
- sqlmap version 1.8#pip
- Installation method pip
- Operating system: Microsoft Windows 11
- Python version 3.11.7
Target details:
- DBMS: HSQLDB
- SQLi techniques found by sqlmap: boolean-based blind
Additional context Add any other context about the problem here.
maybe it is case-sensitive. try to use -D PUBLIC
. if that works, i can easily upper case it automatically
maybe it is case-sensitive. try to use -D PUBLIC. if that works, i can easily upper case it automatically
yeah i tried that, it still shows the same thing.
do you have some errors? can you run with -t traffic.txt
and report back?