Showing posts with label DNS Poisoning. Show all posts
Showing posts with label DNS Poisoning. Show all posts

Friday, 3 May 2013

DNS Poisoning attack & Hijacking Systems Tutorial


                                                       
                                    This days we're doing lots of research on DNS Poisoning attack and system Hijacking, DNS Poisoning attack is one of the mine favorite attacks in networking Hacking and Systems Hijacking. DNS Poisoning is really very dangerous attack. Suppose an attacker create a DNS Changer Malware and send it to any server or Computer, then he can do anything on Victim's System.  Well, today I'll teach you deeply about DNS Poisoning, What can you do with it ?, How to do ? , How to prevent it ?, etc. I'm sure you gonna like it and Enjoy.

----------------------------------------------------------
# What is DNS Poisoning ?
----------------------------------------------------------
                               DNS (Domain name service or system) is also called Cache Poisoning in Domain Name and Corrupt the Internet Server or Provider. Basically an attacker will Inject any other IP address of website in DNS and Replace it with different IP and Web Server Domain name, so simply the domain and IP will create a loop holes and redirect user to the IP address with the Domain name.

# An Attacker can do following attacks using DNS Poisoning.
  • System and Server Hijack
  • Phishing 
  • Force downloading
  • Complete Change Webpage and URL
  • URL Poisoning
  • Spreading botnets and malwares etc.
  • Deface website
------------------------------------------------------------------
# DNS Poisoning Tutorial
------------------------------------------------------------------
                  Okay, I know some peoples won't understand any computer tricks or hacking techniques until they do manually and learn it, coz above theory is just explanation of DNS Poisoning attack, and now in below's paragraph I'll teach how DNS Poisoning attack works and how can an attacker hijack sessions and Perform different types of Attacks in Systems.


Note : This is for Educational Purpose only.

All-right, So here I'll show you tutorial on Windows OS. How can an attacker Poison your System and perform many types of Hacking. Listen, I'll teach you this attack on your system so you can understand, I won't give you DNS Changer malware it's very risky to give away DNS Changer malware. So if you want to learn this attack you've to make your own System as Target. First of all, I'll teach this attack to Windows users to understand and be definite to perform this attack.
----------------------------------------------------------------------
1. DNS Poisoning -  Windows OS
----------------------------------------------------------------------
                             It's very easy to DNS Poison windows user but it's really very hard to perform same thing without DNS Changer malware, Okay let's start but before starting we will learn little bit about "Hosts" file.

# Hosts File : The Hosts file is the computer file used in an Operating system to map hostnames to IP addresses and to locate IP to Web server Domain Name. Whenever any users type www.google.com in address bar and hit Enter then the foremast duty of browser is to scan hosts file and then only it proceeds. Hosts file really very useful file for OS.

Check out below's example of how web browsers work and Proceed with reading article and you'll notice that DNS has a main role in Networking


So, I hope by looking at above picture you can understand how web browsers works, I've one request to look once again on Step 3 and 5 ... Got it ?? well lemme explain in step 3 the browser was searching for Google.com and in Step 5 it is searching for domain name IP. : What if an attacker changes Domain name IP with different IP of any other bogus website then browser will confuse and redirect any normal user to Different website with different Domain name, that's what we call DNS Poisoning attack.

Okay, let's do it manually on your own system :
------------------------------------------------------------------------------------------------------------------------
Note : This tutorial is performed manually, and if you want to poison your victim's DNS then you'll need DNS Changing malware that I can't give away link, if you want then comment your E-mail in comment Box and I'll send you. (It's very risky we've to keep records)
------------------------------------------------------------------------------------------------------------------------

# Manually DNS Poisoning tutorial
  • All-right you might know that, we've to modify hosts file to Poison victim's computer DNS.
  • Click on Start Button , type "Notepad" right click on it and "Run as administrator"
  • A Blank Notepad program pop-ups, Now click on "File" > "Open" and Locate to hosts file > C:\Windows\System32\drivers\etc Click on "All files" and you'll see 4 files in that folder.
  • Now, Choose "hosts" file and open it.
  • After all we have to modify this file. Go to bottom of the page and Hit enter to get new Line.
Now, How to Modify Hosts file, Just add two lines at the end like this :- 


After writing that two lines Save it.
So, Now let's understand meaning of that two lines : 
------------------------------------------------------------------------------------------------------------------------
31.12.80.1 is the IP of facebook with the domain name of Google.com. Just try to understand the statement meaning. 
Here, we entered the IP of Website for Eg. 31.12.80.1 of facebook and we wrote domain as Google.com, Now....! whenever you'll search for google.com in your browser it will redirect you to IP of Facebook that means if any normal user will search for google.com he'll directly redirect to facebook.com without any knowledge. You can also change the IP and Domain, Suppose if you want to Poison your victims Computer DNS that redirects him from yahoo.com to any bogus website or Phishing website, then Ping yahoo.com get it's IP and Write it in Hosts file and replace domain name with your own Phishing page. If you want to know more about Phishing through DNS Poisoning then you might like my previous post on "Hacking Facebook using DNS Poisoning".
------------------------------------------------------------------------------------------------------------------------

Share it and Feel free to Comment :)


Wednesday, 24 April 2013

Hack Facebook account using DNS Poisoning + Desktop Phishing


                                                 Facebook, the Most Popular Social Networking website, There are Billions of users on Facebook. & daily more then 7000+ accounts get hacked. So here is our best Post on Hacking Facebook using DNS Poisoning + Desktop Phishing. 


# About this Trick DNS Poisoning + Desktop Phishing.
                                                        This trick is much useful and widely used trick in this trick if you're using Wifi, or Joint LAN Connections in many computers then this tricks work very well, Like Cyber Cafe uses WIFI or Joint LAN Connections, you can also use this trick at your Home to hack your Friends Account, he won't realize also that his Account is been hacked coz, URL is same as Facebook.com and he won't realize when he got phished. We will do DNS Poisoning to Change the Local Host into Facebook URL so there will be no Chances of Getting Caught.  Just try this Trick once :)

# Requirements :-

1#  Install XAMPP Server and Start :-
  • Click here to Download
  • After Downloading it Install it and Click on Start Menu Search for XAMPP Control Panel and Start it.
  • And Start Apache and Mysql Services

2# Setup Phishing Files :-
  • Click here to Download Phishing Files
  • This time Phishing files is Password Protected, Extract Phishing files on Desktop. Password is "w0rm7"
  • Go to C:\xampp\htdocs and Delete all files and Now Copy all files you have downloaded. (Do not Copy ZIP FILES Extract all files & Paste it into C:\xampp\htdocs)
  • That's it, Done.
3# DNS Poisoning :-
  • This is the Most Important Part of this Trick, DNS Poisoning will change Phishing URL into Original URL
  • we need to Modify Hosts File, Just Click on Start Menu.
  • Type Notepad and Right Click on it and Click on Run as Administrator.
  • Click on File tab, now click on Open and Go to C:\Windows\System32\drivers\etc, and Open Hosts file.
  • And it will open Hosts file, Just add this two lines at bottom. 
    127.0.0.1            www.facebook.com
    127.0.0.1            facebook.com
  • And Save it.
  • Done, Now whenever you're victim will open www.facebook.com he will be redirected to your IP 127.0.0.1 which has facebook Phishing Pages. So your victim's won't realize that his ID is been Phished.
4# Testing this trick :-
  • Now it's time to test this trick on yourself, Just restart your all browser and type www.facebook.com in your Browser and Hit Enter.
  • No you'll see 4 options Just click on "login.html" and you'll be redirected to your Phishing Page. 
Click on Image to Enlage it
  • Now Just use some fake Login details to Test it.
  • Now go into C:\xampp\htdocs\log.txt  Open it and you'll see clear usernames and Password.
  • And you're done, Well this trick is called Desktop Phishing and DNS Poisoning attack. This is most widely used trick in Home and Cyber Cafe to Steal FB credentials Details.
  • After all restore that hosts file.
Note :- This is for Educational Purpose Only

Share it and Feel free to Commend :]


Wednesday, 27 March 2013

How to do DNS Poisoning attack (?_?)

 (?_?)

What is DNS Poisoning


Cache poisoning, also called domain name system (DNS) poisoning or DNS cache poisoning, is the corruption of an Internet server's domain name system table by replacing an Internet address with that of another, rogue address. When a Web user seeks the page with that address, the request is redirected by the rogue entry in the table to a different address. At that point, a worm, spyware, Web browser hijacking program, or other malwarecan be downloaded to the user's computer from the rogue location.
Cache poisoning can be transmitted in a variety of ways, increasing the rate at which rogue programs are spread. One tactic is the placement of compromised URLs within spam e-mail messages having subject lines that tempt users to open the message (for example, "Serious error in your tax return"). Images and banner ads within e-mail messages can also be vehicles by which users are directed to servers that have been compromised by cache poisoning. Once an end user's computer has been infected with the nefarious code, all future requests by that user's computer for the compromised URL will be redirected to the bad IP address -- even if the "victim" server resolves the problem at its site. Cache poisoning is particularly dangerous when the targets are well-known and trusted sites, such as those to which browsers are pointed when automatic virus-definition updates are performed.

In simple words it's just an awesome attack try it you will really like it.

1. Just open up a notepad, copy and paste the below code
 
@echo off
echo 10.199.64.66 www.google.com >> C:\windows\system32\drivers\etc\hosts.txt
echo 10.199.64.67 www.paypal.com >> C:\windows\system32\drivers\etc\hosts.txt
exit
 
2. Save it as a batch file with the extension .bat
 
3. Then run it on the Victims computer to infect it.
 
4. This program creates a new entry in the hosts file, so that whenever an user attempts to move to www.google.com, he will be re-directed to another host that has the IP address of 10.199.64.66, likewise if the user attempts to login to the paypal account by typing in www.paypal.com, he will be re-directed to another external bogus website that has the IP address of 10.199.64.67, where if the user enters the credentials unknowingly, they were into the hackers database and he can use it for several other purposes.