Monday, 21 November 2011

Hack Websites Using SQL Injection-


             SQL injection is often used to attack the security of a website by inputting SQL statements in a web form to get a badly designed website in order to dump the database content to the attacker. 
What is SQL Injection ?
            SQL injection is a code injection technique that exploits a security vulnerability in a website's software. The vulnerability happens 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 commands are thus injected from the web form into the database of an application (like queries) to change the database content or dump the database information like credit card or passwords to the attacker. SQL injection is mostly known as an attack vector for websites but can be used to attack any type of SQL database.

So lets start site hacking-


             Step 1: Finding Vulnerable Website:
Our best partner for SQL injection is Google. We can find the Vulnerable websites(hackable websites) using Google Dork list. google dork is searching for vulnerable websites using the google searching tricks. There is lot of tricks to search in google. But we are going to use "inurl:" command for finding the vulnerable websites.

Some Examples:
inurl:index.php?id=
inurl:gallery.php?id=
inurl:article.php?id=
inurl:pageid=

How to use?
copy one of the above command and paste in the google search engine box.
Hit enter.
You can get list of web sites.
We have to visit the websites one by one for checking the vulnerability.
and go for admin login page of that website…….
Here is a option username and password.
Enter this-   username-  'OR''='
               Password-      'OR''='
And click login. You will see that password is accepted and you can do anything in website.



     

4 comments:

  1. it is not working for all the sites.....

    ReplyDelete
  2. this one is old injection. not works on very advanced websites. search on google for admin login sites and try this injection.

    ReplyDelete