It is never to LATE to become what you never WERE.
Friday, November 21, 2008
Navigation
Donate
Has this website helped you?
px
If so, please donate a little to help out with hosting costs.
Members Online
Total Online: 58
Web Spiders: 7
Guests Online: 47
Members Online: 11

Registered Members: 36814
Newest Member: DHAYOR
Most Users online: 523
Latest Articles

SQL Injection


advertisement



website security Basic Guide to simple SQL Injection



What is SQL?

SQL stands for Structured Query Language
It is used by people to create databases on servers for data.
Common uses are;
User tables
Price lists
Sensitive data lists
What is SQL Injection?

SQL Injection forces the server to output data (i.e. User password hashes) from the database. To injected you find a page which is "vulnerable".

How do I know if a page is "vulnerable"?

The first test is to test input fields with code which could confuse the server.

Some examples are;
hi' OR 1=1--
hi' or 1=1--
hi" OR 1=1--
hi" or 1=1--
' OR 1=1--
" OR 1=1--
' or 1=1--
" or 1=1--
There are hundreds more and search google to see them.

Right, now there should be an output.

It normally comes in the format:

MySQL Query Error: SELECT * FROM (table name) WHERE (field type) = '' AND (field type) = ''

Now you have your target page but you need to learn what the error means before you can proceed.

So here goes

MySQL Query Error: SELECT * FROM (table name) WHERE (field type) = '' AND (field type) = ''

SELECT --> Select/choose/find
* --> means all in computing
FROM (table name) --> from the table it found
WHERE --> only select files where certain criteria are met

So in laymans terms

Find all instances from a table where your output is true

Now what?

Now you have got your vulnerable page you need to exploit the area where you can enter SQL Queries.

The most common one you will need will be

SELECT * FROM (table)

That outputs the whole table.

However there are other things you can do like destroying the table or adding users with specific abilities.

Found this interesting?

Here are some other links you might enjoy for extra research;

http://www.w3schools.com/sql/sql_intro.asp
http://www.securiteam.com/securityreviews/5DP0N1P76E.html
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 


By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2007- 2008. Since 3rd December 2004.