Requirements for SQL Injection:
- Havij SQL injection Tool: There is a free version HERE, but your probably want to look around and see if you can get your hands on the full-version.
- A SQL vulnerable site, Here is the example site:
- http://toyonorte.com.co/catalogo_nuevos_detalle.php?id=2
- A very important thing you will need: your mind.
Checking for vulnerable sites
Now to check is this site vulnerable to SQL, a hacker will simply add ‘ (apostrophe) after the site url like this:
http://toyonorte.com.co/catalogo_nuevos_detalle.php?id=2′
and the hacker will get this error on the site
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\” at line 1
It means that site is vulnerable to SQL injection.
- Open Havij.
- Type Vulnerable Website Inside It And Hit Analyze Button.
- Now Click On Tables Tab And Then Hit Get DBs Button.
- Now You Have Got All Databases In Result. Tick Databases And Hit Get Tables Button.
- You Have Got Tables From The Databases You Ticked In Previous Step. Now Tick Related Tables And Hit Get Columns Button.
- You Have Got Columns From Ticked Table. Tick Related Columns And Press Get Data Button.
- Bingo! You Have Got Username And Password Of Admin.
How To Crack Hash?
As You Can See, We Have Received All Information Of Admin. Like Username, Password And UserGroup. But We Have Received Password In The Shape Of Hash. In Order To See The Real Password. We Have To Crack This Code. For Cracking This Code. We Will Make Use Of Havij Tool Again. Follow Me To Crack This Hash.
- You Can See A Button Of MD5 In Buttons List Of Havij. Hit That Button And Paste Your Hash Code Inside It And Press Start Button.
- You Can See Password In Plain Text In Result Now. See Picture Below.
Find Admin Page
We Have Got Everything. Like Username, Password. But Where To Use Them And Get Admin Rights? You Need To Find The Admin Login Page Of Target Site. For Finding Admin Page Of Target Site. We Will Use Havij Again.
- In Buttons List, Press Find Admin Button. Type Homepage Url Of Target Site. Press Start Button.
You Will Get Result Same Like Hash Cracking. You Will Be Able To See The Page. Which Admin Of Your Target Site Use To Login.
Warning - This article is only for education purposes, By reading this article you agree to Aletheia that is not responsible in any way for any kind of damage caused by the information provided in this article.
No comments:
Post a Comment