I'm using Ubuntu 18.04 Bionic. I have installed katoolin but it does not run. I'm using below commands
git clone https://github.com/LionSec/katoolin.git
sudo cp katoolin/katoolin.py /usr/bin/katoolin
sudo chmod a+x /usr/bin/katoolin
sudo katoolin
but after all I'm facing below error.
sudo: unable to execute /usr/bin/katoolin: No such file or directory
please help.
Open the terminal and type:
This is happening because you have different version on python installed and you katoolin have different version.
You have to edit this line
I have python3 so adding python3. Add your version here
nano /usr/bin/katoolin
#!/usr/bin/python
Into#!/usr/bin/python3
sudo katoolin
After this may be You will get error like this
If you got error like this Change this line
Into
If you have different version you will get an error like this
Do like this For Python 3.x, use
input()
. For Python 2.x, useraw_input()
raw_input
Intoinput
If you are a python3 users. or For python2 useraw_input
.If you solve your problem can you approve my answer.
Install
python2.7
update string in
/usr/bin/katoolin
from
/usr/bin/python
to/usr/bin/python2.7
run in terminal:
sudo katoolin
done, it works now