我想使用this program来模拟ProfiNet协议来发送数据包。这个程序在Linux下运行良好,但出于某种原因我想让它在windows下运行,当我试图让它运行时,我得到了这个:
>>>python Fuzzer.py -w false -s 00:1E:37:3A:CC:50 -d 6c:ae:8b:29:6f:72 -t dcp -i eth0 -c 100
Profinet Fuzzer. Call it like
Fuzzer.py -w false -s 00:19:99:9d:ed:ab -d 00:1b:1b:17:ba:8a -t pnio -i eth0 -c 10
or try Fuzzer.py -h for help.
Needs Administrator-Rights to send packages!
Fuzzing will start with following parameters:
Source: 00:1E:37:3A:CC:50
Destination: 6c:ae:8b:29:6f:72
Frametype: dcp
Number of packets: 100
Interface: eth0
Sniffing: false
Traceback (most recent call last):
File "Fuzzer.py", line 144, in <module>
fuzzer(packets, options.interface)
File "Fuzzer.py", line 74, in fuzzer
responses.append(srp(packet, timeout=1))
File "C:\Python27\lib\site-packages\scapy\sendrecv.py", line 357, in srp
s = conf.L2socket(iface=iface, filter=filter, nofilter=nofilter, type=type)
File "C:\Python27\lib\site-packages\scapy\arch\pcapdnet.py", line 240, in __in
it__
self.ins = open_pcap(iface, 1600, 0, 100)
File "C:\Python27\lib\site-packages\scapy\arch\windows\__init__.py", line 347,
in <lambda>
pcapdnet.open_pcap = lambda iface,*args,**kargs: _orig_open_pcap(pcapname(if
ace),*args,**kargs)
File "C:\Python27\lib\site-packages\scapy\arch\pcapdnet.py", line 171, in <lam
bda>
open_pcap = lambda *args,**kargs: _PcapWrapper_pypcap(*args,**kargs)
File "C:\Python27\lib\site-packages\scapy\arch\pcapdnet.py", line 135, in __in
it__
self.iface = create_string_buffer(device)
File "C:\Python27\lib\ctypes\__init__.py", line 69, in create_string_buffer
raise TypeError(init)
TypeError: None
操作系统是Windows 7旗舰版,Python版本是2.7.9,gcc编译器是使用tdm-gcc。
为什么我得到了这个,我怎么能解决这个问题?提前谢谢。