tklab-tud / ID2T

Official ID2T repository. ID2T creates labeled IT network datasets that contain user defined synthetic attacks.
MIT License
56 stars 22 forks source link

scapy exeptions #101

Open pepper-jk opened 5 years ago

pepper-jk commented 5 years ago

After updating to scapy tests print the following exception repeatedly. It seems to be an issue with scapy in general, as it (now) needs root permissions to create sockets.

Since we do not really use sockets in ID2T anyway, this should not happen. For some reason sockets seem to be created, without ID2T using them. There should be a way to suppress this. If not this might be atopic for another pull request for scapy.

Exception ignored in: <function SuperSocket.__del__ at 0x7f72f43bccb0>
Traceback (most recent call last):
  File "/home/pepper-jk/code/ID2T/.venv/lib/python3.7/site-packages/scapy/supersocket.py", line 123, in __del__
    self.close()
  File "/home/pepper-jk/code/ID2T/.venv/lib/python3.7/site-packages/scapy/arch/linux.py", line 481, in close
    set_promisc(self.ins, self.iface, 0)
AttributeError: 'L2Socket' object has no attribute 'ins'