Sniffer with RAW SOCKETS

Grant Edwards grante at visi.com
Wed Sep 7 14:15:16 EDT 2005


On 2005-09-07, billiejoex <billiejoex at fastwebnet.it> wrote:

> Hi all. I'm trying to make a simple icmp sniffer by using
> SOCK_RAW.

Just a suggestion: you'd probably be better off using the PCAP
library.

> The code below works but ONLY if I first use the sendto()
> function. Does anybody knows why?

'Fraid not.

-- 
Grant Edwards                   grante             Yow!  I just bought
                                  at               FLATBUSH from MICKEY
                               visi.com            MANTLE!



More information about the Python-list mailing list