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 RAW_SOCKET. Here's an example: http://oss.coresecurity.com/impacket/ping.py
Cheers > 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 -- http://mail.python.org/mailman/listinfo/python-list