Home Kali Linux Install Kali Linux Tools Using Katoolin3 In Ubuntu 20.04 LTS

Install Kali Linux Tools Using Katoolin3 In Ubuntu 20.04 LTS

Install And Use Katoolin3 in Ubuntu

By sk
Published: Updated: 144.8K views

This step by step guide explains what is Katoolin3 and how to install Kali Linux tools in Ubuntu, Debian and other DEB-based systems like Linux Mint and Pop_OS!.

Important: It seems the development of Katoolin 3 has been stopped. There is no update since February 2020. So Katoolin 3 may not work as expected.

Introduction to Katoolin3

As some of you might already know, Katoolin is a Python script to install Kali Linux tools in Ubuntu, Debian and other DEB-based systems.

If you're a security researcher or enthusiast, Katoolin allows you to install any Kali Linux tools of your choice on top of your Ubuntu system in couple minutes.

It seems that Katoolin is not being updated regularly (the last commit was April, 2019) and it doesn't work in recent Ubuntu versions. The Caveats started adding up due to lack of maintenance.

Fortunately, someone has taken up the torch and is keeping a very stable branch of katoolin. Say hello to Katoolin3, a fork of Katoolin, that helps you to get your favorite Kali Linux tools on Debian, Ubuntu and its derivatives like Linux Mint. Katoolin3 is completely free and open source program.

Important Warning: It looks like the Katoolin3 messes up the existing repositories. Many users have complained that Katoolin3 removes the GNOME DE, and other packages that are not even related to Katoolin when they try to uninstall Katoolin. So I strongly suggest you to try it in a test machine for a while and see if it works perfectly.

Katoolin3 Features

Katoolin3 offers several improvements over katoolin as listed below.

  • Katoolin3 is ported to Python 3. Katoolin is written in Python 2.x.
  • It provides up-to-date packages. The old katoolin uses an outdated package list.
  • The old katoolin breaks if a package isn't available in the repositories anymore. Katoolin3 detects the missing packages and simply ignores them.
  • Unlike old Katoolin, it is possible to remove all packages installed by Katoolin3. You can remove packages individually or all at once.
  • Some user have complained that they can’t update or upgrade their Ubuntu OS after installed old Katoolin. This issue has been addressed and fixed in the newer Katoolin3 version. The upgrade won't break your system, because the Kali repositories only get enabled during the runtime of katoolin3.
  • The old katoolin modifies and even deletes important system configuration files. These potentially dangerous operations have been changed in Katoolin3.
  • It is difficult to add new packages to package list in the old Katoolin. Not anymore! Maintaining the package list just got better and a lot easier with Katoolin3.

Install Katoolin3 in Ubuntu 20.04 LTS

I have tested Katoolin3 in Ubuntu 20.04 LTS server edition. However, It should work on other Ubuntu versions and derivatives.

Katoolin3 requires the following prerequisites in your Ubuntu system.

  • Python >= 3.5.
  • Git.
  • sh, bash.
  • python3-apt.

These packages comes preinstalled in latest Ubuntu 20.04 LTS, so you probably don't need to install anything.

Also, make sure you have enabled [universe] repository.

$ sudo add-apt-repository universe

Clone the Katollin3 GitHub repository using command:

$ git clone https://github.com/s-h-3-l-l/katoolin3

Please make sure the repository name is correct. In the above URL, it should be two lower case “L” letters in the word "s-h-3-l-l".

The command will clone the contents of Katooolin3 repository in a local folder named "katoolin3" in the current directory.

Go to the katoolin3 directory:

$ cd katoolin3/

Make the install.sh executable:

$ chmod +x ./install.sh

Then install Katoolin3 using command:

$ sudo ./install.sh

Upon successful installation, you will see the following message:

Executing: /tmp/apt-key-gpghome.r4OwC90o2Q/gpg.1.sh -qq --keyserver pool.sks-keyservers.net --recv-keys ED444FF07D8D0BF6
Successfully installed.
Run it with 'sudo katoolin3'.
Install Katoolin3 in Ubuntu 20.04 LTS
Install Katoolin3 in Ubuntu 20.04 LTS

Please note: If you get the error "Please install the python3-apt package", please make sure katoolin3 runs with exactly the same python3 version as the python3-apt package. On modern distributions python3-apt is only for python3.7 and on older distributions python3-apt is only for python3.5. Katoolin3 has to be run accordingly with python3.7 or python3.5. In Ubuntu 20.04 LTS version, I don't have any issues with Katoolin3 installation.

Install Kali Linux Tools Using Katoolin3 In Ubuntu 20.04 LTS

To run Katoolin3, enter the following command:

$ sudo katoolin3

Katoolin3 will add necessary Kali Linux repositories on your Ubuntu machine and update the sources lists.

Run Katoolin3 in Ubuntu
Run Katoolin3 in Ubuntu

Once the repositories are added and the source lists are updated, you will see the Katoolin3 main menu.

[...]
Main Menu
0) View Categories              
1) Install All                  
2) Uninstall All                
3) Search repository            
4) List installed packages      
5) List not installed packages  
6) Install Kali Menu            
7) Uninstall old katoolin       
8) Help                         
9) Exit                         

kat>
Katoolin3 main menu
Katoolin3 main menu

Important note: Please note that you should not update your packages, upgrade your system or modify your package cache in any other way while katoolin3 is still running. Always close Katoolin3 before updating system or modifying package cache. Unlike the old Katoolin, the new Katoolin3 will not break the system while upgrading because the Kali repositories only get enabled during the runtime of katoolin3.

As you can see in the above screenshot, the Katoolin3 main menu has 9 sub-menus and each sub-menu performs different operations.  To open a sub-menu, just enter the corresponding number.

View categories

Type 0 (zero) and press ENTER to view the list of available categories.

[...]
kat> 0

Select a Category
0) Exploitation Tools     8) Sniffing & Spoofing
1) Forensics Tools        9) Stress Testing
2) Hardware Hacking       10) Vulnerability Analysis
3) Information Gathering  11) Web Applications
4) Maintaining Access     12) Wireless Attacks
5) Password Attacks       13) HELP
6) Reporting Tools        14) BACK
7) Reverse Engineering    

kat>
View categories in katoolin3
View categories in katoolin3

As you can see, there are 12 categories available. Each category may contain one or more packages. To go back to the previous menu, type 14 and hit ENTER.

To view the list of available packages in a category, simply type its corresponding number and press ENTER:

kat> 1

Select a Package
0) Bulk Extractor  12) Pdf Parser
1) Capstone Tool   13) pdfid
2) chntpw          14) Distorm3
3) dc3dd           15) Capstone
4) ddrescue        16) Distorm3
5) dumpzilla       17) regripper
6) extundelete     18) volatility
7) foremost        19) xplico
8) galleta         20) ALL
9) guymager        21) HELP
10) Libdistorm3 3  22) BACK
11) p0f            

kat>
Display the list of available packages in a category in katoolin3
Display the list of available packages in a category in katoolin3

The above output shows the list of available packages under "Forensics Tools" category.

Installing packages

You can install all packages at once. However, it is not recommended and not necessary. To install a package, go to the category of your choice and enter the corresponding number.

For example, I am going to install "foremost" tool (number 7).

[...]
Select a Package
0) Bulk Extractor  12) Pdf Parser
1) Capstone Tool   13) pdfid
2) chntpw          14) Distorm3
3) dc3dd           15) Capstone
4) ddrescue        16) Distorm3
5) dumpzilla       17) regripper
6) extundelete     18) volatility
7) foremost        19) xplico
8) galleta         20) ALL
9) guymager        21) HELP
10) Libdistorm3 3  22) BACK
11) p0f            

kat> 7

The selected package will be downloaded from Kali Linux repositories and installed in your Ubuntu system.

Reading package lists...
Installing 1 package...
Get:1 http://ftp.harukasan.org/kali kali-rolling/main amd64 foremost amd64 1.5.7-9+b1 [42.1 kB] 
Fetched 42.1 kB in 6s (0 B/s) 
Selecting previously unselected package foremost.
(Reading database ... 108229 files and directories currently installed.)
Preparing to unpack .../foremost_1.5.7-9+b1_amd64.deb ...
Unpacking foremost (1.5.7-9+b1) ...
Setting up foremost (1.5.7-9+b1) ...
Processing triggers for man-db (2.9.1-1) ...
Install Kali Linux Tools Using Katoolin3 In Ubuntu 20.04
Install Kali Linux Tools Using Katoolin3 In Ubuntu 20.04

To install multiple packages at once specify a range like 3-5, a list like 1,2,3 or combine them like 1,2,5-7,9.

Uninstall packages

To uninstall all Kali Linux tool from your Ubuntu system, type 2 from main menu.

Search Kali Linux repositories

To search for a specific tool, enter number 3 from main menu and then enter a package name to get information about a package or enter a keyword to search for package. Here I am searching for "recovery" related tools.

[...]
kat> 3

Enter a package name to get information about a package
or enter a keyword to search for packages...

Search: recovery
bacula/kali-rolling 9.6.3-1 all
  network backup service - metapackage

bacula-bscan/kali-rolling 9.6.3-1 amd64
  network backup service - bscan tool

bacula-client/kali-rolling 9.6.3-1 all
  network backup service - client metapackage

bacula-common/kali-rolling 9.6.3-1 amd64
  network backup service - common support files

bacula-common-mysql/kali-rolling 9.6.3-1 amd64
  network backup service - MySQL common files
[...]

List installed packages

To view all installed kali linux tools, enter number 4 from the Katollin3 main menu:

Main Menu
0) View Categories              
1) Install All                  
2) Uninstall All                
3) Search repository            
4) List installed packages      
5) List not installed packages  
6) Install Kali Menu            
7) Uninstall old katoolin       
8) Help                         
9) Exit                         

kat> 4   
foremost

As you can see, I have installed "foremost" tool.

List not installed packages

To view all not installed packages, type number 5 from main menu.

[...]
kat> 5
Ace Voip
aircrack-ng
airgraph-ng
amap
Android Sdk
Apache Users
apktool
arachni
arduino
armitage
[...]

Install Kali Menu

This option will install Kali Menu on your Ubuntu system. This will add a dedicated menu for all installed Kali Linux tools, so you can qucikly find and launch any tools from this menu.

To install Kali Menu, type number 6 from main menu and press ENTER.

Uninstall old katoolin

It removes the old Katoolin version if it is already installed.

Display Katoolin3 Help

Don't know how to use Katoolin3? Just open the Help section by entering number 8.

kat> 8   

The program flow of this program is realized by presenting
a list of options that you can choose from.

When selecting packages you can select
more than one by passing a comma-separated list like
'0,1,2,3' or specifying a range like '12-24' or combining
those two '0,1,3-5,12'.

If you want to remove packages simply prepend '~' before a
string like above.

If you want information about a specific package
presented to you enter the number of the package
followed by a '?'.

If the list of options gets out of sight type '!!'
to print it again.

Packages which you have already installed are shown
in this color.

Exit Katoolin3

To quit Katoolin3, type number 9 and hit ENTER.

Update Katoolin3

Go to the directory where you have cloned Katoolin3:

$ cd katoolin3/

Make the update script executable:

$ chmod +x ./update.sh

Run update script to update Katoolin3 to latest available version.

$ sudo ./update.sh

It would be better if the developer included an option to update Katoolin3 from the main menu.

Uninstall Katoolin3

Don't use Katoolin3 anymore? Simply uninstall it as shown below.

Go to the directory where you have cloned Katoolin3:

$ cd katoolin3/

Make the uninstall script executable:

$ chmod +x ./uninstall.sh

Finally, remove Katoolin3 from your system using command:

$ sudo ./uninstall.sh

Conclusion

In this guide, we discussed what is Katoolin3, and its features and then how to install Kali Linux tools using katoolin3 in Ubuntu, Debian and other DEB-based systems.

Resource:

You May Also Like

56 comments

Mono Escape May 15, 2020 - 9:22 am

I have installed katoolin3 in Ubuntu 20.02 but i cat use it .Open “sudo katoolin3” then show me “Apt update failed” error message.Please tell me Admin .
Thanks you Admin

Reply
sk May 15, 2020 - 11:31 am

It is probably related network connectivity issues. Check your Internet connection.

Reply
root July 17, 2023 - 6:06 am

You have probably the gpg key expired. Use this command : wget -q -O – https://archive.kali.org/archive-key.asc | apt-key add and then run katoolin3.

Reply
chetan June 3, 2020 - 2:29 pm

hello bro i installed katoolin3 in my ubuntu 20.02 but now i uninstall this but i will change my os from ubuntu to kali GNU/linux-rolling how i back to ubuntu 20.02

Reply
sk June 3, 2020 - 2:58 pm

I couldn’t understand your question. Please ask clearly.

Reply
chetan June 5, 2020 - 1:01 pm

i had at installed katoolin3 as you teach above but it didn’t works for me so i uninstall it but after that many error found in my laptop like “error found when loading etc/profile” and apt-update command shows 404 error found” so i had check my setting then i seen that katoolin3 changed my ubuntu 20.04 to kali GNU/linux rolling so tell how to get back to ubuntu 20.04

Reply
sk June 5, 2020 - 3:06 pm

That is weird. I never faced such error. As far as I know, Katoolin3 will not convert/upgrade Ubuntu to Kali Linux rolling release. Because the Kali repositories only gets enabled during the runtime of katoolin3. In other times, the Kali Linux repositories remains disabled. May be you should backup your data and reinstall Ubuntu.

Reply
sk June 5, 2020 - 3:09 pm

Did you update your packages, upgrade your system or modify your package cache while katoolin3 is still running? If so, it should have caused this error. You should not update your packages, upgrade your system or modify your package cache in any other way while katoolin3 is still running. Always close Katoolin3 before updating system or modifying package cache. I already have included this warning in the guide.

Reply
chetan June 5, 2020 - 6:59 pm

see that when i use t his command then it will shown
cat /etc/os-release
PRETTY_NAME=”Kali GNU/Linux Rolling”
NAME=”Kali GNU/Linux”
ID=kali
VERSION=”2020.2″
VERSION_ID=”2020.2″
VERSION_CODENAME=”kali-rolling”
ID_LIKE=debian
ANSI_COLOR=”1;31″
HOME_URL=”https://www.kali.org/”
SUPPORT_URL=”https://forums.kali.org/”
BUG_REPORT_URL=”https://bugs.kali.org/”

Reply
sk June 5, 2020 - 7:47 pm

I can see that. I guess you have upgraded your system while katoolin3 is still running. May be you should reinstall the Ubuntu OS. I am sorry. I couldn’t help.

Reply
win-ubuntu June 7, 2020 - 1:39 am

Hi, i follow your method but i get this:

win-ubuntu@ACCENT:~/katoolin3$ sudo ./install.sh
Executing: /tmp/apt-key-gpghome.ZM5FZxiViK/gpg.1.sh -qq –keyserver pool.sks-keyservers.net –recv-keys ED444FF07D8D0BF6
gpg: connecting dirmngr at ‘/tmp/apt-key-gpghome.ZM5FZxiViK/S.dirmngr’ failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
Executing: /tmp/apt-key-gpghome.wCZgBWqQo3/gpg.1.sh -qq –keyserver hkp://pool.sks-keyservers.net:80 –recv-keys ED444FF07D8D0BF6
gpg: connecting dirmngr at ‘/tmp/apt-key-gpghome.wCZgBWqQo3/S.dirmngr’ failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
This may be a server issue. Please try again later

I need help ! Thanks !

Reply
sk June 7, 2020 - 11:23 am

Please install dirmngr using the following command and try again.

sudo apt install dirmngr

Reply
niko August 13, 2021 - 8:35 pm

Executing: /tmp/apt-key-gpghome.R5GdNsWJHm/gpg.1.sh -qq –keyserver pool.sks-keyservers.net –recv-keys ED444FF07D8D0BF6
gpg: keyserver receive failed: No name
Executing: /tmp/apt-key-gpghome.2pKHbtOojv/gpg.1.sh -qq –keyserver hkp://pool.sks-keyservers.net:80 –recv-keys ED444FF07D8D0BF6
gpg: keyserver receive failed: No name
This may be a server issue. Please try again later

Reply
sk August 13, 2021 - 8:39 pm

The project is abandoned by the author. The development has been stopped a long time ago. So it will not work any more.

Reply
Jere October 31, 2021 - 8:42 am

open ./install.sh using nano and replace the keyserver with hkps://keyserver.ubuntu.com:443.

Reply
root July 17, 2023 - 6:07 am

Just type this command to set the keys : wget -q -O – https://archive.kali.org/archive-key.asc | apt-key add.

Reply
Mark Simmons June 23, 2020 - 8:09 pm

github is asking for credentials so I failed at the first step.

Reply
sk June 23, 2020 - 9:35 pm

GitHub doesn’t ask any credentials. I just check it in Ubuntu 20.04.

Reply
Aeron March 12, 2022 - 10:13 pm

if github is asking for creds, the url you used in the git clone command has an error. Make sure you have two lower-case l’s, and not 1’s.

Reply
Jack July 3, 2020 - 3:54 pm

After I type command “git clone https://github.com/s-h-3-1-1/katoolin3” , it ask me for username and password. So I made my github account and enter it to the user name and password, and then…
Let me write it down here :

~$ git clone https://github.com/s-h-3-1-1/katoolin3
Cloning into ‘katoolin3’ …
Username for ‘https://github.com’ :
Password for ‘https://github.com’ :
remote: Repository not found.
fatal : Authentication failed for ‘https://github.com/s-h-3-1-1/katoolin3/’

Fyi, I’m using Linux Mint 20 ulyana, Python 2.7.18rcl, git version 2.25.1 .
Please help me to fix it, thank you.

Reply
sk July 3, 2020 - 7:14 pm

Please post this issue in Katoolin3 github page. I am sure we don’t need to provide user credentials to clone Katoolin repository.

Reply
An0n1m1ty July 5, 2020 - 5:20 pm

When I run katoolin install, some of the packages say: could not find package ‘[package]’. Is there a way to resolve this? I’m on a fresh install of Ubuntu 20.04 LTS

Reply
sk July 5, 2020 - 9:48 pm

Post the full error output. I will see what I can.

Reply
ZeroMeia July 6, 2020 - 4:33 pm

Hi, when i run sudo ./install.sh this is the output:

Executing: /tmp/apt-key-gpghome.IM1Xsq2RTt/gpg.1.sh -qq –keyserver pool.sks-keyservers.net –recv-keys ED444FF07D8D0BF6
gpg: connecting dirmngr at ‘/tmp/apt-key-gpghome.IM1Xsq2RTt/S.dirmngr’ failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
Executing: /tmp/apt-key-gpghome.4JuCLs6OuY/gpg.1.sh -qq –keyserver hkp://pool.sks-keyservers.net:80 –recv-keys ED444FF07D8D0BF6
gpg: connecting dirmngr at ‘/tmp/apt-key-gpghome.4JuCLs6OuY/S.dirmngr’ failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
This may be a server issue. Please try again later

i tryed to install dirmngr and that’s the output:

Reading package lists… Done
Building dependency tree
Reading state information… Done
dirmngr is already the newest version (2.2.19-3ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.

i need help!

Reply
neah July 14, 2020 - 1:56 pm

i have a problem it says “e does not have release file”then apt upadte failed

Reply
1 2 3

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More