Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46720
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-06-02 11:19 -0700 |
| Message-ID | <609f0450-4ab7-4489-87c6-5926bb09d1fd@googlegroups.com> (permalink) |
| Subject | Arp cache poisoning using scapy |
| From | bakbakinfo123@gmail.com |
I am trying to get the arp cache poisoning working with scapy and python but having problems
The python script itself is very simple:
root@ubuntu:/home/joker/Downloads/scapy-2.2.0/scripts# cat arp_poison.py
#!/usr/bin/env python
import sys
from scapy.all import *
arpcachepoison("00:22:fa:98:5e:04", "192.168.1.131")
The error I am getting is illegal IP address. How do I fix it?
root@ubuntu:/home/joker/Downloads/scapy-2.2.0/scripts# python arp_poison.py
WARNING: No route found for IPv6 destination :: (no default route?)
Traceback (most recent call last):
File "arp_poison.py", line 7, in <module>
arpcachepoison("00:22:fa:98:5e:04", "192.168.1.131")
File "/usr/lib/python2.7/dist-packages/scapy/layers/l2.py", line 440, in arpcachepoison
tmac = getmacbyip(target)
File "/usr/lib/python2.7/dist-packages/scapy/layers/l2.py", line 53, in getmacbyip
tmp = map(ord, inet_aton(ip))
socket.error: illegal IP address string passed to inet_aton
root@ubuntu:/home/joker/Downloads/scapy-2.2.0/scripts#
root@ubuntu:/home/joker/Downloads/scapy-2.2.0/scripts#
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Arp cache poisoning using scapy bakbakinfo123@gmail.com - 2013-06-02 11:19 -0700 Re: Arp cache poisoning using scapy Dan Stromberg <drsalists@gmail.com> - 2013-06-02 12:16 -0700 Re: Arp cache poisoning using scapy bakbakinfo123@gmail.com - 2013-06-02 13:46 -0700 Re: Arp cache poisoning using scapy bakbakinfo123@gmail.com - 2013-06-02 13:47 -0700
csiph-web