I've tried to run this code:
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
print "hhhh"
from scapy.all import send
from scapy.layers.inet import IP, UDP
send(IP()/UDP())
print "BBBB"
and I got this output error:
hhhh
Traceback (most recent call last):
File "C:/Users/Tamir/PycharmProjects/SIP/main.py", line 12, in <module>
send(IP()/UDP())
File "C:\Python27\lib\site-packages\scapy\sendrecv.py", line 251, in send
__gen_send(conf.L3socket(*args, **kargs), x, inter=inter, loop=loop, count=count,verbose=verbose, realtime=realtime)
File "C:\Python27\lib\site-packages\scapy\sendrecv.py", line 234, in __gen_send
s.send(p)
File "C:\Python27\lib\site-packages\scapy\arch\pcapdnet.py", line 252, in send
ifs = dnet.ip()
File "dnet.pyx", line 250, in dnet.ip.__init__ (./dnet.c:2317)
OSError: No such file or directory
But, other functions, such as sniff(), work fine.
Does anyone know how to fix this? I'm using windows 7 and python 2.7