Я создал плавающий код, чтобы отправить пакет на адрес www.google.com, но не получаю ответа.
КОД
from scapy.all import IP, ICMP, sr1
ip_layer = IP(src='192.168.224.131', dst='www.google.com')
#rint(ip_layer.show())
icmp_req = ICMP()
#print(icmp_req.show())
packet = ip_layer / icmp_req
#print(packet.show())
received_packet = sr1(packet, timeout=2)
if received_packet:
print(received_packet.show())
ВЫХОД
Begin emission:
.Finished sending 1 packets.
Received 1 packets, got 0 answers, remaining 1 packets