Locate and Review the Dumped Data in the CSV Output File
In this final step, you will locate the CSV file where sqlmap saved the dumped data and review its contents. sqlmap organizes its output in a structured directory, typically under ~/.local/share/sqlmap/output/.
Based on the output from the previous step, navigate to the directory where the users.csv file was saved. The path will be similar to /home/labex/.local/share/sqlmap/output/testphp.vulnweb.com/dump/acuart/.
First, let's navigate to the sqlmap output directory. The exact path might vary slightly based on your sqlmap version and the target, but it generally follows the pattern: ~/.local/share/sqlmap/output/<target_domain>/dump/<database_name>/.
For our example, the path is likely /home/labex/.local/share/sqlmap/output/testphp.vulnweb.com/dump/acuart/.
Use the ls command to list the contents of this directory:
ls -l ~/.local/share/sqlmap/output/testphp.vulnweb.com/dump/acuart/
You should see users.csv (and possibly other files) listed.
Now, use the cat command to view the contents of the users.csv file:
cat ~/.local/share/sqlmap/output/testphp.vulnweb.com/dump/acuart/users.csv
Expected Output:
The output will show the uname and pass columns, with each row representing an entry from the users table.
uname,pass
test,test
admin,admin
john,doe
...
This confirms that sqlmap successfully extracted only the specified columns, demonstrating the effectiveness of the -C flag for targeted data dumping.