O'Reilly logo

Kali Linux Cookbook - Second Edition by Bob Perciaccante, Corey P. Schultz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

We will now use ARP spoofing to redirect a user to a fake website:

  1. Open up a new terminal window by clicking on the following icon. 
  2. We need to ensure promiscuous mode is on for the interface we are using, and we all need to ensure that IP forwarding is turned on. We need to create a host file to spoof a particular site or set of sites. As we have used a hiking site in several of our testing examples, we will spoof us-123hiking.simplesite.com, and send it to 10.0.2.4, which is the IP address of my Kali box on eth0. Enter the following commands:
cd ifconfig eth0 promiscecho 1 > /proc/sys/net/ipv4/ip_forwardtouch fakehost.txt ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required