Scapy module

https://scapy.readthedocs.io/en/latest/usage.html

Send and receive packets (sr)




basic ping / ICMP
ans, unans = sr(IP(dst=subnet+"."+str(1)+"-"+str(6))/ICMP(),timeout=0)