3

I'm trying a simple code, just sending an ARP packet:

from scapy.all import *
p = ARP()
send(p)

and I get this error:

Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
send(p)
File "C:\Python26\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:\Python26\scapy\sendrecv.py", line 234, in __gen_send
s.send(p)
File "C:\Python26\scapy\arch\pcapdnet.py", line 237, in send
ifs = dnet.eth(iff)
File "dnet.pyx", line 112, in dnet.eth.__init__
OSError: No error

My OS is windows 8 64bit. I tried in win7 64bit and got the same problem. I tried in win7 32bit and that works fine.

I can't understand why.. please help..

jam
  • 3,640
  • 5
  • 34
  • 50
arikm9
  • 185
  • 1
  • 13

1 Answers1

0

I guess you have to inform the interface ID, like this:

sendp(netpacket, iface='eth1')

I had the same trouble as yours, did like I said and got it!

DeepSpace
  • 78,697
  • 11
  • 109
  • 154