2013-06-24 37 views
2

我想簡單的代碼,只需發送一個ARP報文:Scapy的不會在64位發送數據包的Windows

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

,我得到這個錯誤:

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 

我的操作系統是Windows 8 64位。我嘗試了win7 64bit,並得到同樣的問題。我嘗試了win7 32bit,並且工作正常。

我不明白爲什麼..請幫助..

+0

這是以管理員身份運行嗎? – RyPeck

回答

0

我想你必須告知接口ID,像這樣:

sendp(netpacket, iface='eth1') 

我有同樣的麻煩是你的,不喜歡我說,明白了!

相關問題