How to spoof the MAC address

Spoofing is a form of impersonation on a network; it conceals your identity as a penetration tester. All the traffic leaving your Kali Linux machine will contain the source's newly configured MAC address.

In this exercise, we are going to change the MAC address of the LAN interface on our Kali Linux machine. Follow these simple steps to do so:

  1. Turn off the network interface using the following command:
ifconfig eth0 down
  1. Once the interface is down, we can use the macchanger tool to modify our MAC address on the interface. The macchanger tool allows you to customize your new (spoofed) address. To see all the available options, use the macchanger --help command.
  2. To change the MAC address on our Ethernet (network) interface, we will use the macchanger --random eth0 command, as shown in the following screenshot:

  1. Once the MAC address has been changed successfully, it's time to turn on the Ethernet interface by using the following command:
ifconfig eth0 up
  1. Finally, we can now use the ifconfig command to verify whether the new MAC address is registered on the interface, as shown in the following screenshot:

Having completed this exercise, you are now capable of spoofing the MAC address on each network interface in Kali Linux. In the next section, we will learn about connecting a wireless adapter to a Kali Linux machine.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.196.59