Hey guys I need help, I am currently trying to run this script that im learning off of youtube. 10. Write Python Jammer to Jam WiFi networks using python | Ethical Hacking using python - YouTube
So basically im getting this error every time I run
$ python2.7 example.py
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
root@thr33sixnine:/home/thr33sixnine369/Documents# python2.7 example.py
Traceback (most recent call last):
File “example.py”, line 3, in
import wireless
File “/usr/local/lib/python2.7/dist-packages/wireless/init.py”, line 2, in
from wireless.Wireless import Wireless
File “/usr/local/lib/python2.7/dist-packages/wireless/Wireless.py”, line 4, in
from packaging import version
File “/usr/local/lib/python2.7/dist-packages/packaging/version.py”, line 42
def parse(version: str) → Union[“LegacyVersion”, “Version”]:
^
SyntaxError: invalid syntax
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I’v,e re-downloaded Ubuntu all over again to try and get around this. But it didnt work Obvousily. I’m fairly new at all of this one of the first things were not having the imports that I was trying to import. So i downloaded them using pip. Then even though they were downloaded they still werent being found. Until I realized that they werent in the right folder and now I had to get access then figure out where they needed to be in. I finally got all that sorted out. Now i have this problem and 5 hours later and i still cant figure it out.
THIS IS THE SCRIPT IM TRYING TO RUN…
import wireless
from wifi import Cell
from scapy.all import *
wifi1 = wireless.Wireless()
interface = wifi1.interface()
all_wifi_networks = Cell.all(interface)
print all_wifi_networks
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////If anyone can point me in the right direction or at least break it down to me. THANKS