Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'module' object has no attribute 'intf' #6

Open
guillaumefe opened this issue Jul 18, 2015 · 0 comments
Open

AttributeError: 'module' object has no attribute 'intf' #6

guillaumefe opened this issue Jul 18, 2015 · 0 comments

Comments

@guillaumefe
Copy link

Hi

simpson:MITMer lisa$ ./mitmer.py 
Traceback (most recent call last):
  File "./mitmer.py", line 6, in <module>
    from scapy.all import *
  File "/usr/local/lib/python2.7/site-packages/scapy/all.py", line 25, in <module>
    from route import *
  File "/usr/local/lib/python2.7/site-packages/scapy/route.py", line 162, in <module>
    conf.route=Route()
  File "/usr/local/lib/python2.7/site-packages/scapy/route.py", line 22, in __init__
    self.resync()
  File "/usr/local/lib/python2.7/site-packages/scapy/route.py", line 31, in resync
    self.routes = read_routes()
  File "/usr/local/lib/python2.7/site-packages/scapy/arch/unix.py", line 86, in read_routes
    ifaddr = scapy.arch.get_if_addr(netif)
  File "/usr/local/lib/python2.7/site-packages/scapy/arch/__init__.py", line 36, in get_if_addr
    return socket.inet_ntoa(get_if_raw_addr(iff))
  File "/usr/local/lib/python2.7/site-packages/scapy/arch/pcapdnet.py", line 200, in get_if_raw_addr
    i = dnet.intf()
AttributeError: 'module' object has no attribute 'intf'

I'm on MacOS 10.10.3 (yosemite)
I use python 2.7.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant