Client and server Python scripts for sending and logging icmp packets using pcap. Designed according to Unix based systems.
pcap_icmp_python.mp4
- pcapy-ng
- psutil
Run icmp_client.py
script on client machine and icmp_server.py
on server machine.
Press z
to exit.
On client:
- Press
p
to send a ping request. - Press
t
to send a time stamp request.
It is tested using two VMs on the same host. To get it to work on complex networks, you may need to consider more configurations, like dealing with the MAC addresses of median interfaces rather than the reported MAC of the target machine.