Showing posts with label SQL INJECTION. Show all posts
Showing posts with label SQL INJECTION. Show all posts

ABOUT SQL INJECTION

HEY GUY!! Today i tech you about SQL it is aswome tutorial.......



                 






SQL Injection step by step (for Begginers)



SQL Injection attacks are code injections that exploit the database layer of the application. This is most commonly the MySQL database, but there are techniques to carry out this attack in other databases such as Oracle. In this tutorial i will be showing you the steps to carry out the attack on a MySQL Database.

Step 1:
---------
When testing a website for SQL Injection vulnerabilities­, you need to find a page that looks like this:
www.site.com/­page=1

or
www.site.com/­id=5

Basically the site needs to have an = then a number or a string, but most commonly a number. Once you have found a page like this, we test for vulnerability by simply entering a ' after the number in the url. For example:

www.site.com/­page=1'

If the database is vulnerable, the page will spit out a MySQL error such as;

Warning: mysql_num_rows(­): supplied argument is not a valid MySQL result resource in /home/wwwprof/­public_html/­readnews.php on line 29

If the page loads as normal then the database is not vulnerable, and the website is not vulnerable to SQL Injection.