Can only use Scapy in interactive mode?
问题 I just want to do - from scapy import * target = "42.42.42.42" packet = IP()/UDP() packet.dst = target del pak[IP].chksum del pak[TCP].chksum pak.show2() But "IP()" and "UDP()" are not defined. If I use scapy.all it hands me this; Traceback (most recent call last): File "C:\Python27\scapy_stuff.py", line 1, in <module> import scapy.all File "C:\Python25\Lib\site-packages\scapy\all.py", line 13, in <module> from arch import * File "C:\Python25\lib\site-packages\scapy\arch\__init__.py", line 75