Scapy.all import * does not work
So, I wrote a little script in Ubuntu for scapy. #!/usr/bin/env python import sys #from scapy.all import * try import scapy except ImportError: del scapy from scapy import all as scapy i= IP() t= TCP() i.dst='192.168.56.100' t.dport=22 pakket=i/t answered,unanswered=sr(pakket) answered.nsummary() i wrote the 'try' because of another topic here (tried it as a solution). My current output with this code is the following Traceback (most recent call last): File "./scapy.py", line 5, in <module> import scapy File "/home/nicholas/scapy.py", line 9, in <module> i=IP() NameError: name 'IP' is not