mirror of
https://github.com/LionSec/katoolin.git
synced 2026-04-26 09:25:48 +03:00
[GH-ISSUE #315] unable to execute /usr/bin/katoolin #256
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/katoolin-LionSec#256
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nathmo on GitHub (Apr 17, 2022).
Original GitHub issue: https://github.com/LionSec/katoolin/issues/315
unable to execute /usr/bin/katoolin
the shebang was set to python but python was updated and should explicitly specify python2
if you manually fix that by edditing the first line and running "sudo apt install python2" you might run into
unable to execute /usr/bin/katoolin: No such file or directory
to fix that you should replace the line 53 by
"apt-key adv --keyserver --keyserver keyserver.ubuntu.com --recv-keys ED444FF07D8D0BF6"
since this tool seems to be no longer maintained i forked it and made those two modification.
here is how to fix it without manually patching the script
sudo surm -rf katoolinrm /usr/bin/katoolinapt install python2git clone https://github.com/nathmo/katoolin.git && cp katoolin/katoolin.py /usr/bin/katoolinchmod +x /usr/bin/katoolinexitsudo katoolin@Topplehawk commented on GitHub (May 10, 2022):
I have had the same problem, I am using ubuntu 22.04. LionSec please fix this, it is a big problem. I have an old laptop and cant dual boot it so I cant run an older version of ububntu and I need to have ububntu 22.04 for some of the stuff I have been doing.
@nathmo commented on GitHub (May 10, 2022):
did my fix work for you ?
@Topplehawk commented on GitHub (May 10, 2022):
yes it did, also for anyone reading this you should know that it is best to start over from the beginning but it will say that it already exists, but because it is a locked file since you typed in "sudo su" at the beginning, this means that it wont let you delete it. to deal with this open up terminal and type in "sudo rm -rf" then drag the file into the terminal and hit enter. this will delete the file for you.
@xtint commented on GitHub (May 11, 2022):
You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again
@nathmo commented on GitHub (May 11, 2022):
there. updated the instuction if you attempted to install the broken version first.
(it assume your shell / terminal is in the same path where you ran the command the first time. if not. after writing rm -rf but before pressing enter drag and drop the folder to the terminal so that it add the correct path to delete it.
sudo surm -rf katoolinrm /usr/bin/katoolinapt install python2git clone https://github.com/nathmo/katoolin.git && cp katoolin/katoolin.py /usr/bin/katoolinchmod +x /usr/bin/katoolinexitsudo katoolin@Topplehawk commented on GitHub (May 12, 2022):
yes this is what i am refering to
@doc197 commented on GitHub (Jul 8, 2022):
worked for me ....stupid PYTHON!
Python used to be soooo universal, now look at it, more functional and yet more useless....
@itsRevela commented on GitHub (Aug 2, 2022):
Some people will have to do the following (after inputting the code above):
cd /usr/binsudo nano katoolinChange
#!/usr/bin/pythonto#!/usr/bin/python2then press control+x, press enter to write input buffer, press enter to write file name.Run:
sudo ./katoolinShould work after that :)
@Kingki19 commented on GitHub (Jan 10, 2023):
Thank you very much
@Rvaldebon commented on GitHub (Mar 26, 2023):
Good morning,
I have a problem for a moment to run option 1 "add kali linux repositories"
An error message tells me:
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.CsBIKXJgfT/gpg.1.sh --keyserver pool.sks-keyservers.net --recv-keys ED444FF07D8D0BF6
gpg: failed to receive from keyserver: Server indicated a failure
If anyone has a solution, I'm interested !
@nathmo commented on GitHub (Mar 29, 2023):
Hi, did you try my fork ? or manually modified the version version from @LionSec ?
what OS and what version are you running ?
I currently have no time to look into it but if you can wait it might be fixed in a few weeks.
@tntxtra commented on GitHub (Apr 14, 2023):
apt-key deprecated would love to try this out. I cloned from yours.
@oelja commented on GitHub (Oct 24, 2023):
Thank you! This worked for me on a fresh install of Linux Mint after several hours of making assumptions about python!