Sponsored Link
To run 4G8 you need to obtain the IP and MAC of the gateway, as well as the IP and MAC address of the target, both available by simply looking at the ARP table.
Install 4g8 on ubuntu
Open the terminal and run the following command
sudo apt-get install 4g8
Using 4g8
Syntax
4g8 -i [device] -g [gw_ip] -G [gw_mac] -s [host_ip] -S [host_mac] [-w file] [-Xh]
Available options
-g gw_ip -- IP address of gateway to impersonate
-G gw_mac -- MAC address of gateway to impersonate
-s host_ip -- IP address of victim host
-S host_mac MAC address of victim host
-h -- Display this message
-i device -- Device to listen on
-w file -- Write captured data to file
-X -- Dump the packet in hex and ascii
4g8 Example
4g8 -l eth0 -g 192.168.1.254 -G 00:1F:33:DB:81:44 -S 00:19:66:D9:A6:E9 -w capture.pcap