lscript icon indicating copy to clipboard operation
lscript copied to clipboard

lscript seems to be using python2 instead of python3

Open rohittp0 opened this issue 5 years ago • 0 comments

When I tried running cupp I got this error

Traceback (most recent call last): File "cupp.py", line 40, in import urllib.error ImportError: No module named error

After some searching I found out that this occurs when you run python cupp.py instead of python3 cupp.py. Now I can manually navigate to cupp folder and run it from there but can't use lscript for this. The situation is also similar while running Fern and Ghost-phisher. I also get warnings while installing some tools using lscript that python2 will soon be retired and should use python3.

I tried fixing the problem with cupp by changing from

elif [[ "$OTHERT" = "4" ]] then if [[ -d "/root/cupp" ]] then cd /root/cupp **python cupp.py -i** cd echo -e "$PAKTGB" $READAK else echo -e "$TNI" read INSTALL if [[ "$INSTALL" = "install" ]] then install_cupp else continue fi fi

to this

elif [[ "$OTHERT" = "4" ]] then if [[ -d "/root/cupp" ]] then cd /root/cupp **python3 cupp.py -i** cd echo -e "$PAKTGB" $READAK else echo -e "$TNI" read INSTALL if [[ "$INSTALL" = "install" ]] then install_cupp else continue fi fi

But still this did not fix the problem. It would be really awesome if the script could be updated.

rohittp0 avatar Feb 20 '20 10:02 rohittp0