Skip to content Skip to sidebar Skip to footer

'l3packetsocket' Object Has No Attribute 'ins' When Using Send Command

I am trying to send a packet using a UDP protocol. I am running Python 3 on Ubuntu and using scapy. However, I get the following error message: 'AttributeError: 'L2Socket' object h

Solution 1:

You need to start Scapy as root (sudo).

Look at the error closely: it first says "Operation not permitted". The error you're quoting is a consequence of the first one failing.

It was already reported multiple times & the second error was fixed on master: https://github.com/secdev/scapy/issues/1942

Scapy won't be able to run open a Raw socket without root. That's a Linux restriction.

Post a Comment for "'l3packetsocket' Object Has No Attribute 'ins' When Using Send Command"