You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try to load scapy from OSX, i got this Error.
Python 2.7.11 (default, Apr 21 2016, 16:15:36)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scapy.all import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "scapy/all.py", line 25, in <module>
from route import *
File "scapy/route.py", line 162, in <module>
conf.route=Route()
File "scapy/route.py", line 22, in __init__
self.resync()
File "scapy/route.py", line 31, in resync
self.routes = read_routes()
File "scapy/arch/unix.py", line 81, in read_routes
ifaddr = scapy.arch.get_if_addr(netif)
File "scapy/arch/__init__.py", line 44, in get_if_addr
return socket.inet_ntoa(get_if_raw_addr(iff))
File "scapy/arch/pcapdnet.py", line 519, in get_if_raw_addr
return i.get(ifname)["addr"].data
File "dnet.pyx", line 990, in dnet.intf.get
OSError: Device not configured
This may fix that problem. scapy/arch/unix.py
def read_routes():
if scapy.arch.SOLARIS:
f = os.popen("netstat -rvn") # -f inet
elif scapy.arch.FREEBSD:
f = os.popen("netstat -rnW") # -W to handle long interface names
elif scapy.arch.DARWIN:
f = os.popen("netstat -rn | grep -v 'vboxnet \| bridge'") # Fix OSX problem
else:
f = os.popen("netstat -rn") # -f inet
...
The text was updated successfully, but these errors were encountered:
system: OSX 10.11.4
When i try to load scapy from OSX, i got this Error.
This may fix that problem.
scapy/arch/unix.py
The text was updated successfully, but these errors were encountered: