Use SQLMap to Gain Access to a Vulnerable Database
-Agent Anon
Please Note: You need python installed for this to work. You can get it from: http://www.python.org/download/
The first thing you need to do is download sqlmap. It comes with backtrack, but if you need to download it, get it from here: http://sqlmap.sourceforge.net/
1) Download the .zip and extract it to your desktop or something. Open up terminal or cmd and cd to where sqlmap is. The exact command will vary from platform to platform, leave a reply with specific questions and I'll see if I can answer them
2) Once you're in the same directory, you'll be able to use it! First, lets find the databases that our target has. Use this:
Code
./sqlmap.py -u [TARGET] --dbsExample: [TARGET] = http://www.fbi.gov/staff.php?id=15
3) A list appears with all of the databases. Choose the database. If you want to end up hacking this site, you should choose a database that sounds like it may contain admin info. If you're just exploring their database, select what sounds the most interesting. Now that we have a database picked out, lets find all the tables in it. Use this:
Code
./sqlmap.py -u [TARGET] -D [THE DATABASE YOURE EXPLORING] --tables4) A list of tables appears, like before, if you want to put up a deface page and log in as the admin, look for something that might contain admin info, such as users, user, admin, ect. If you're just looking around 🤫, select the table that looks the most fun. Use this:
Quote:./sqlmap.py -u [TARGET] -T [THE TABLE YOURE EXPLORING] --columns
5) Now, you have a list of the collumns, I bet you're excited now! Lets extract the data from the tables. Use this:
Code
./sqlmap.py -u [TARGET] -T [THE TABLE YOU'RE EXPLORING] -U test --dump6) You're done! Enjoy the big dump of data you have! 🤝
I hope I've produced another HQ tutorial for you, and happy hacking. 🤝
-Agent Anon

