I am having an issue with scapy importing into a python script. I am using python 2.7. Scapy runs fine through interactive view but trying to write a custom script fails, name 'IP' is not defined
import sys
from scapy.all import *
p=sr(IP(dst="10.1.99.2")/TCP(dport=80))
print 'success'
On my end, using ubuntu 14.04 with latest scapy installed and python 2.7 running that script shoots off fails for importing several different layers with errors such as "can't import layer inet: name 'IP' is not defined"
any idea's?
Edit : Solved : dunno what it was, but the py file being on my desktop prevented it from running properly. Once I moved it to a downloads folder, it worked fine