Re: Sniffer Linux with Raw Socket

2010-06-06 Thread Giampaolo RodolĂ 
RAW sockets are not recommended for doing such kind of things. It is a lot easier and portable using libpcap. Python has a lot of libpcap bindings you can use (pcapy, pypcap, etc...). Just google for it. --- Giampaolo http://code.google.com/p/pyftpdlib http://code.google.com/p/psutil 2010/6/6 ca

Sniffer Linux with Raw Socket

2010-06-06 Thread castor91
Hi all, i try to make a python sniffer for linux using raw socket and not pcap or scapy.. But i have a lot of problems.. I use the code that i found here: http://docs.python.org/library/socket.html import socket # the public network interfaceHOST = sock