Sending ECHO_REQUEST (pinging) with python

Thomas Dybdahl Ahle lobais at gmail.com
Mon Mar 26 16:50:33 CEST 2007


Den Mon, 26 Mar 2007 06:30:04 -0500 skrev Nick Craig-Wood:

> Michael Bentley <michael at jedimindworks.com> wrote:
>>  On Mar 26, 2007, at 1:30 AM, Thomas Dybdahl Ahle wrote:
>> > It seems however that I have to be root to send those imcp packages,
>> > but I guess there must be a workaround since I can easily use the
>> > "ping" command as ordinary user.
>> 
>>  The workaround your ping command is using btw, is probably running
>>  suid root.
> 
> Under linux the only priviledge you need is CAP_NET_RAW.  It is possible
> to give this to a process - a bit of searching with google will show you
> how!

How, I did google, but I wasn't able to find any way to do this in 
python..



More information about the Python-list mailing list