Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 467 Vote(s) - 3.57 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL Injection Tutorial! 100% NOOB FRIENDLY!! No Previous Hacking Knowledge Needed :D

#31
nice tutorial here but am having problem when i get to the step 4 and i put the codes for the site it will appear The specified URL cannot be found. pls what can be the problem
Reply

#32
Could you suggest other ways to find SQL injection vulnerable sites other than those dorks?
Reply

#33
Quote:(06-19-2011, 04:34 AM)Strikethrough Wrote:

[To see links please register here]

SQL Injection

Hi, this thread covers all your basic SQL Injection needs. After reading this, you should be able to successfully retrieve Database information such as the username and password that are crucial for defacing sites.

Bookmark this for future reference if you want.

Lets start.
What is SQL Injection?

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.



Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


If the page simply refreshes, the site is not vulnerable. But if an error of any kind pops up, the site is prone to SQLi. When you have successfully found a vulnerable site, proceed to Step 2.[/hide]


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now here's where it gets tougher (not really). You have to look for errors as you enter new numbers. For example:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


The goal here is to find the least column the shows the error. As you can see in the example, the lowest column that we found an error on is column 6, therefore, column 6 doesn't exist and there are only 5 columns.

Now we have to find which one of these five columns (it may be different in your case) is vulnerable, to do that, add this code to the end of the URL:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Make sure to include the - in the beginning and the -- at the end, this is crucial. Remember that the code above may be different in your case regarding how many columns there are.

Now, if you see numbers on the screen. You can proceed. The very first number is the number of the vulnerable column. If the number is "4" that means that the 4th column is the vulnerable column.

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


If the version is 5 or above, proceed. If not, it will be harder to hack. There are other tutorials covering how to hack database versions 4 or lower.

Now we must find the database name. To do this, replace the "@@version" from before with "concat(database())" like this:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


And BOOM! The database name should appear on your screen. Copy this somewhere safe, we will need this for later.

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now, names appear. Look for obvious names hinting to tables where user information can be stored. You are looking for table names such as "Admin", "Users", "Members", "Admin_Id", Admin_pass", "User_id", etc..

The last character is chopped off? Don't worry. Count how many tables you can see, then add this code based on the tables that you can see. We will be assuming that the last table you can see is the 8th table.


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


This code is to view the 9th table. Replace the 8 with a 9 to view the 10th table, and so on until you find the table that you think has the most crucial information.

When you find the table, copy the name somewhere safe. We will need both the database and table names for the next step.

For this tutorial, we will be using the table name of "admin".

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Didju get an error? OH NO! YOU FAIL. Choose another site. Just kidding.
Go

[To see links please register here]

and type in your table name where is says "Say Hello to My Little Friend".

In my case, this is the string that I got after I inputted "admin" to the input space:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now, replace the table name with hex as so:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Notice how I added the "0x", that is to indicate that hex is being used. Remember to get rid of the quotes.

Now after you enter this code, you should see where all the juicy information is contained. An example of what you should see is:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now say you want to view what is in the "Admin_Username" and the "Admin_pass", add this code (in this example we will be using "database" as the database name and "admin" for the table name):


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


The "0x3a" will put a colon to where the information will be separated. You should get something like this:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


The username is "MyName" and the password is.. WAIT! That is MD5, crack this using Havij. Download Havij

[To see links please register here]

.

Now as you can see. This is the login info:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now all you have to do is find the admin page, which is usually

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.

or something similar. There are tools online that will find you the admin page.

Any questions? PM me.

Well, that's it for this tutorial! Thanks for reading! :thumbs:
+rep for my work is appreciated.[/hide]

Thanks for the clear tutorial. Awesome!! Even a n00b like me can at least understand it.[/hide]
[/hide]
[/hide]
[/hide]
Reply

#34
SICK!
lets mess arround with some servers!
Reply

#35
Great tut, very clear and friendly for noobs like me as title stated.
I was looking for some SQL Injection tuts, and I'm glad that I found this one.
Reply

#36
thanks alot
Quote: (06-19-2011, 04:34 AM)Strikethrough Wrote:

[To see links please register here]

SQL Injection

Hi, this thread covers all your basic SQL Injection needs. After reading this, you should be able to successfully retrieve Database information such as the username and password that are crucial for defacing sites.

Bookmark this for future reference if you want.

Lets start.
What is SQL Injection?

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.



Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


If the page simply refreshes, the site is not vulnerable. But if an error of any kind pops up, the site is prone to SQLi. When you have successfully found a vulnerable site, proceed to Step 2.[/hide]


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now here's where it gets tougher (not really). You have to look for errors as you enter new numbers. For example:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


The goal here is to find the least column the shows the error. As you can see in the example, the lowest column that we found an error on is column 6, therefore, column 6 doesn't exist and there are only 5 columns.

Now we have to find which one of these five columns (it may be different in your case) is vulnerable, to do that, add this code to the end of the URL:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Make sure to include the - in the beginning and the -- at the end, this is crucial. Remember that the code above may be different in your case regarding how many columns there are.

Now, if you see numbers on the screen. You can proceed. The very first number is the number of the vulnerable column. If the number is "4" that means that the 4th column is the vulnerable column.

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


If the version is 5 or above, proceed. If not, it will be harder to hack. There are other tutorials covering how to hack database versions 4 or lower.

Now we must find the database name. To do this, replace the "@@version" from before with "concat(database())" like this:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


And BOOM! The database name should appear on your screen. Copy this somewhere safe, we will need this for later.

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now, names appear. Look for obvious names hinting to tables where user information can be stored. You are looking for table names such as "Admin", "Users", "Members", "Admin_Id", Admin_pass", "User_id", etc..

The last character is chopped off? Don't worry. Count how many tables you can see, then add this code based on the tables that you can see. We will be assuming that the last table you can see is the 8th table.


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


This code is to view the 9th table. Replace the 8 with a 9 to view the 10th table, and so on until you find the table that you think has the most crucial information.

When you find the table, copy the name somewhere safe. We will need both the database and table names for the next step.

For this tutorial, we will be using the table name of "admin".

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Didju get an error? OH NO! YOU FAIL. Choose another site. Just kidding.
Go

[To see links please register here]

and type in your table name where is says "Say Hello to My Little Friend".

In my case, this is the string that I got after I inputted "admin" to the input space:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now, replace the table name with hex as so:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Notice how I added the "0x", that is to indicate that hex is being used. Remember to get rid of the quotes.

Now after you enter this code, you should see where all the juicy information is contained. An example of what you should see is:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now say you want to view what is in the "Admin_Username" and the "Admin_pass", add this code (in this example we will be using "database" as the database name and "admin" for the table name):


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


The "0x3a" will put a colon to where the information will be separated. You should get something like this:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


The username is "MyName" and the password is.. WAIT! That is MD5, crack this using Havij. Download Havij

[To see links please register here]

.

Now as you can see. This is the login info:


Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.


Now all you have to do is find the admin page, which is usually

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.

or something similar. There are tools online that will find you the admin page.

Any questions? PM me.

Well, that's it for this tutorial! Thanks for reading! :thumbs:
+rep for my work is appreciated.[/hide]

[/hide]
[/hide]
[/hide]
[/hide]
Reply

#37
Quote:(06-28-2011, 12:02 AM)-HeX- Wrote:

[To see links please register here]

ty man...im really new at this stuff..only know few thinks...more tuts like this! ! :smile:

edit:i tried a lot of this Dorks i even use Exploit Scaner and i can't find any vulnerable web site....pls help me

check to see if your ip has been banned by google.. and try new strings codes on searches..
Reply

#38
nice tutorial bro .. :smile: thnx for ur post
Reply

#39
Bro can i bee caught by police if i hacker any website
Reply

#40
Bro can i bee caught by police if i hacker any website
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through