Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TUT] How to use Havij for SQL injection

Introduction


Hello, I am going to show you how you can use Havij, to do a SQL injection attack.

Firstly you will require 2 things:
- Havij - Download Here
- A vulnerable site - Vuln site here

Steps


1. Firstly what you need to do is get your vulnerable site ready with the ID on the end, in this case "nwid=1658". You then need to enter the whole link into the Havij "target" bar.

Spoiler (Click to View)

2. Once you've entered the link into the "target" box you need to press the analyze button. Let it go through until it has completed finding everything it needs to about the database.

3. Once it's done the Get DB button should appear clickable, click that. Inside there you will see the databases you need to find the one which contains user information in this case it's "rajsoft_mprealtynews", check the box next to it and press "get tables". After that another drop down will appear with a list of things. You need to find something that is associated with usernames and passwords, in this case "users". After you check users you need to press "get columns", that will then return the columns inside that table.

4. will create another drop down, and from there you need to find username and password, these are easily located. Tick both "username" and "password" then press "Get Data". Once you've pressed it, it will display every username and password on that DB selected, usually find the one with the username, "admin".

Extra steps


Once you have finished collecting all the data you can export it into a .html file, which will organise it and format it nicely into a table, for easy reading.

.Shannon
Nice fucking tut man, I feel so cool even though I didn't do shit haha. I'm logged in as admin now, how would I upload my own like HTML code and shit to the index though and such?
You could possibly do a re-direct, I'm pretty sure that site cannot be edited. Well it has been, but I'm not sure. Thanks for the rep also.
(Nov 16, 2010 11:09 PM)Shannon R. Wrote:  You could possibly do a re-direct, I'm pretty sure that site cannot be edited. Well it has been, but I'm not sure. Thanks for the rep also.
np you deserved it for the tut. Mind PM'ing me your MSN? I'm interested on how to do a redirect
Yeah I'll PM you now, shame nobody else obviously needs this.
I tried to download Havij 1.3 But When I tried to Export it to Desktop It got me 2 Errors and I could Not : /

Btw Nice Tut .
What problem are you having? You should download from the link I provided and extract it with WinRar, that way, you should get no errors.
Nice tut hahaha thats indian website i like it
I didn't deface it. I am just saying, it's vulnerable.
Great TUT man ive been using Havij for a while but ididnt kjnow the .html export thing
Thanks. Yeah, it is useful for being able to copy MD5 encrypted passwords. It can't be done within Havij.
ok i have the admin panel ill keep you posted on mai hackzking
very nice tutorial man but i still prefer good old manual way and i think(i dont think on you) most of havij users are n00bs

Again thanks for tutorial could be useful for newcomers on HF
Powerful tool man ,thank you !
This tutorial is designed for newcomers, that just want to "hack" sites.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by -DownFallMay 19, 2025 09:38 PM 467 71,421 May 19, 2025 09:38 PM
Last Post: jabba
by gituser102May 27, 2024 11:10 AM 3 439 May 27, 2024 11:10 AM
Last Post: gituser102
by lgfINCMay 14, 2024 10:29 PM 3 860 May 14, 2024 10:29 PM
Last Post: RonyKingSourcing