So, I wrote a little script in Ubuntu for scapy.
#!/usr/bin/env python import sys
I wrote try because of a different topic here (tried this as a solution). My current output with this code is as follows
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 defined
when you try using scapy.all to import * using "try".
Traceback (most recent call last): File "./scapy.py", line 3, in <module> from scapy.all import * File "/home/nicholas/scapy.py", line 3, in <module> from scapy.all import * ImportError: No module named all
I tried various import methods found on Google, but it still does not work. Can someone tell me what I'm doing wrong? (not against the indentation of this post)
Nicholas
source share