pinging from within python

billiejoex billiejoex at
Mon Sep 12 01:36:35 CEST 2005

Impacket module can helps you to construct the ip/icmp packet structure, 
then you can send the packet and wait for the ECHOREPLY by using a 
Here's an example:


> I need a simple script to run the ping command with some parameters and be 
> able to read the return value of the ping function. Any pointers will be 
> appreciated
> thanks
> m.smadi 

More information about the Python-list mailing list