buckyroberts / Python-Packet-Sniffer

Python network packet sniffer.
249 stars 145 forks source link

Hello bro #5

Open userbox020 opened 5 years ago

userbox020 commented 5 years ago

i excecuted the script, but in python 2 i got this error Traceback (most recent call last): File "sniffer.py", line 3, in from networking.ethernet import Ethernet ImportError: No module named networking.ethernet

and in python 3 i got this error Traceback (most recent call last): File "sniffer.py", line 93, in main() File "sniffer.py", line 24, in main conn = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, s AttributeError: module 'socket' has no attribute 'AF_PACKET'

could you give me a hand

Izzy1647 commented 5 years ago

I've got the same problem too, still don't know what to do.

Rachanainduri commented 3 years ago

i excecuted the script, but in python 2 i got this error Traceback (most recent call last): File "sniffer.py", line 3, in from networking.ethernet import Ethernet ImportError: No module named networking.ethernet

and in python 3 i got this error Traceback (most recent call last): File "sniffer.py", line 93, in main() File "sniffer.py", line 24, in main conn = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, s AttributeError: module 'socket' has no attribute 'AF_PACKET'

could you give me a hand networking.ethernet is the file name that you probably didn't notice in the networking folder ,use the code in those and try it again it does work