pinging from within python

billiejoex billiejoex at fastwebnet.it
Sun Sep 11 19:36:35 EDT 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 
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 





More information about the Python-list mailing list