EONRaider / Packet-Sniffer

A Network Packet Sniffing tool developed in Python 3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'Ethernet' object has no attribute 'lower'

Irondev25 opened this issue · comments

I am on ubuntu based machine, using python 3.8.5

ran the script
sudo python3 packet_sniffer.py -i wlo1 -d

Traceback (most recent call last):
  File "packet_sniffer.py", line 153, in <module>
    sniff(cli_args)
  File "packet_sniffer.py", line 138, in sniff
    packet_sniffer.execute()
  File "packet_sniffer.py", line 44, in execute
    setattr(self, protocol.lower(), protocol)
AttributeError: 'Ethernet' object has no attribute 'lower'

True. Thanks for pointing that out. I had renamed a certain variable without noticing it was already in use. Code is working properly now.