from scapy.all import * for i in range(512,2048): pkt = IP(dst='locahost') / IP(src='192.168.1.69')/ TCP(sport=1200,flags='S') / ICMP() sr(pkt)