How To Perform Man In The Middle Attack [ Ettercap And Driftnet ] [ Kali Linux ]
How To Perform Man In The Middle Attack [ Ettercap And Driftnet ] [ Kali Linux ]
How To Perform Man In The Middle Attack [ Ettercap And Driftnet ] [ Kali Linux ] |
Man in the middle attack with Kali Linux 2.0
Requirements
- Kali Linux
- Driftnet(Pre-installed in kali)
- Ettercap(Pre-installed in kali)
In a man in the middle attack(MITM) hacker tries to intercept information/data/communication between 2 users. MITM attacks can be performed with both network interfaces ethernet and wireless.
In this article, we will be capturing all the image data that is traveling across our target network. Remember you should be connected to the same network as the victim.
Also Check: Beginners Ethical Hacking Course
Whatever images our victims will browse we will see them in real time.We will be using driftnet and ettercap to perform this attack.
Connect To your target network.
The first thing we need to do is configure etter.conf file. So open your terminal and type the following command. Set ec_uid and ec_gid values to 0.
root@seven:~# leafpad /etc/ettercap/etter.conf
Now scroll down and find the below lines.You need to remove the pound sign from both lines.It will enable us to use iptables.just comment out lines.Now save and close the file.
Now it's time to launch ettercap.
root@seven:~# ettercap -G
Once ettercap GUI is launched.Go to the options and select promise mode
Now go to the sniff and select unified sniff.
Now, this point is important.You need to select interface I am connected to the internet with ethernet so I am selecting eth0.If you are connected to the internet with wifi then you must select the wlan0 interface from the drop-down. Make your selection and click ok.
Go to the hosts and select scan for hosts options.It will find all the devices connected to your network.
Go to the hosts again and select hosts list.You will see all the devices connected to your network.If you are not satisfied then scan again for hosts.
Go to the start menu and select start sniffing.
Now go to the MITM and select arp poisoning.
Now you will be presented with the below prompt select sniff remote connections
Open another terminal we need to start driftnet.
Use the same interface that you used during configuring ettercap.
Use the same interface that you used during configuring ettercap.
root@seven:~# driftnet -i eth0
Now everything is set.When you execute the above command a drift window will open up.Now, whatever images are victims browse you will see inside the drifnet window.
Also Check: Beginners Ethical Hacking Course
So above are the How To Perform Man In The Middle Attack [ Ettercap And Driftnet ] [ Kali Linux ]. Hope you like this article, keep on sharing with others too. Also, share your experience with us in a comment box below.
Post a Comment