November 2017
Intermediate to advanced
226 pages
5h 59m
English
Here are the steps to create a script for sending ping requests with spoofed IP:
from scapy.all import *
iface = "en0" fake_ip = '192.168.1.3' destination_ip = '192.168.1.5'
def ping(source, destination, iface):
pkt = IP(src=source,dst=destination)/ICMP()
srloop(IP(src=source,dst=destination)/ICMP(), iface=iface)
This will create the following packet and start a send/receive loop:

try:
print ...Read now
Unlock full access