网站搜索

如何在 Debian/Ubuntu 上使用“Katoolin”自动安装所有 Kali Linux 工具


Katoolin 是一个脚本,可帮助在您选择的 Linux 发行版上安装 Kali Linux 工具。对于我们这些喜欢使用 Kali Linux 开发团队提供的渗透测试工具的人来说,可以通过使用 Katoolin 在他们喜欢的 Linux 发行版上有效地做到这一点。

在本教程中,我们将了解在基于 Debian 的衍生产品上安装 Katoolin 的步骤。

Katoolin的主要特点

  1. 添加 Kali Linux 存储库。
  2. 删除 Kali Linux 存储库。
  3. 安装 Kali Linux 工具。

要求

安装和使用 Katoolin 的要求。

  1. 本例的操作系统我们使用 Ubuntu 14.04 64 位。
  2. Python 2.7

安装 Katoolin

要安装Katoolin,请运行以下命令。

apt-get install git
git clone https://github.com/LionSec/katoolin.git  && cp katoolin/katoolin.py /usr/bin/katoolin
样本输出
cp katoolin/katoolin.py /usr/bin/katoolin
Cloning into 'katoolin'...
remote: Counting objects: 52, done.
remote: Total 52 (delta 0), reused 0 (delta 0), pack-reused 52
Unpacking objects: 100% (52/52), done.
Checking connectivity... done.

然后通过运行以下命令使 /usr/bin/katoolin 可执行。

chmod +x  /usr/bin/katoolin

现在您可以按如下方式运行Katoolin

katoolin

下面的输出显示了运行命令时 Katoolin 的界面。

样本输出
 $$\   $$\             $$\                         $$\ $$\           
 $$ | $$  |            $$ |                        $$ |\__|          
 $$ |$$  /  $$$$$$\  $$$$$$\    $$$$$$\   $$$$$$\  $$ |$$\ $$$$$$$\  
 $$$$$  /   \____$$\ \_$$  _|  $$  __$$\ $$  __$$\ $$ |$$ |$$  __$$\ 
 $$  $$<    $$$$$$$ |  Kali linux tools installer |$$ |$$ |$$ |  $$ |
 $$ |$$\  $$  __$$ |  $$ |$$\ $$ |  $$ |$$ |  $$ |$$ |$$ |$$ |  $$ |
 $$ | $$\ $$$$$$$ |  $$$$  |$$$$$$  |$$$$$$  |$$ |$$ |$$ |  $$ |
 \__|  \__| \_______|   \____/  \______/  \______/ \__|\__|\__|  \__| V1.0 


 + -- -- +=[ Author: LionSec | Homepage: www.lionsec.net
 + -- -- +=[ 330 Tools 

		

1) Add Kali repositories & Update 
2) View Categories
3) Install classicmenu indicator
4) Install Kali menu
5) Help

正如您所看到的,它提供了一个菜单,您可以从中选择您想要执行的操作。

如果上述方式安装失败,您还可以尝试以下步骤。

前往 https://github.com/LionSec/katoolin.git 页面下载 zip 文件并解压。

wget https://github.com/LionSec/katoolin/archive/master.zip
unzip master.zip

解压后,您应该能够找到 katoolin.py 脚本。运行katoolin.py命令,您将能够查看类似于上面的输出。

cd katoolin-master/
chmod 755 katoolin.py
 ./katoolin.py 

如何使用卡托林?

要添加 Kali Linux 存储库并更新存储库,请从菜单中选择选项 1

1) Add Kali repositories & Update 
2) View Categories
3) Install classicmenu indicator
4) Install Kali menu
5) Help

			
kat > 1

1) Add kali linux repositories
2) Update
3) Remove all kali linux repositories
4) View the contents of sources.list file

					
What do you want to do ?> 1
样本输出
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.DC9QzwECdM --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6
gpg: requesting key 7D8D0BF6 from hkp server pgp.mit.edu
gpg: key 7D8D0BF6: public key "Kali Linux Repository <[email >" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

然后您可以从上面的界面中选择选项2来更新存储库。从下面的输出中,我只捕获了 Kali Linux 存储库正在更新的一部分,以便可以在 Ubuntu 中安装 Kali Linux 工具。

What do you want to do ?> 2
Ign http://in.archive.ubuntu.com vivid InRelease                                                                                            
Ign http://security.ubuntu.com vivid-security InRelease                                                                                                               
Ign http://in.archive.ubuntu.com vivid-updates InRelease                                                                                                               
Get:1 http://security.ubuntu.com vivid-security Release.gpg [933B]                                                                                                    
Ign http://in.archive.ubuntu.com vivid-backports InRelease                                                                                                                      
Get:2 http://repo.kali.org kali-bleeding-edge InRelease [11.9 kB]                                                                              
Get:3 http://security.ubuntu.com vivid-security Release [63.5 kB]                                                            
Hit http://in.archive.ubuntu.com vivid Release.gpg                                                                              
Get:4 http://repo.kali.org kali-bleeding-edge/main amd64 Packages [8,164 B]                                                
Get:5 http://in.archive.ubuntu.com vivid-updates Release.gpg [933 B]                                                                
Get:6 http://repo.kali.org kali-bleeding-edge/main i386 Packages [8,162 B]                                               
Hit http://in.archive.ubuntu.com vivid-backports Release.gpg    
...  

如果您想删除添加的 Kali Linux 存储库,请选择选项 3

What do you want to do ?> 3
 
All kali linux repositories have been deleted !

作为其操作的一部分,Apt 软件包使用 /etc/apt/sources.list 列出“”,您可以从中查找获取并安装其他软件包。

要查看 /etc/apt/sources.list 文件的内容,请选择4

What do you want to do ?> 4

#deb cdrom:[Ubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422)]/ vivid main restricted

See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ vivid main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ vivid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ vivid-updates main restricted
...

要返回,您只需输入 back 并按 [Enter] 键即可。

What do you want to do ?> back

1) Add Kali repositories & Update 
2) View Categories
3) Install classicmenu indicator
4) Install Kali menu
5) Help

			
kat > 

要返回主菜单,只需输入 gohome 并按 [Enter] 键。

kat > gohome

1) Add Kali repositories & Update 
2) View Categories
3) Install classicmenu indicator
4) Install Kali menu
5) Help

			
kat >

您可以使用 KatoolinUbuntu 上安装不同类别的 Kali Linux 工具。

要查看可用类别,请从主菜单中选择选项2

kat > 2

**************************** All Categories *****************************

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

			 
Select a category or press (0) to install all Kali linux tools .

您可以选择一个类别,或者通过选择选项 (0) 并按 [Enter] 进行安装来安装所有可用的 Kali Linux 工具。

您还可以使用 Katoolin 安装 ClassicMenu 指示器。

    1. ClassicMenu Indicator 是 Ubuntu Unity 桌面环境顶部面板的应用程序指示器。
    2. ClassicMenu Indicator 为那些喜欢经典 GNOME 风格应用程序菜单而不是默认 Unity 破折号菜单的人提供了一种简单的方法。

欲了解更多信息,请访问:http://www.florian-diesch.de/software/classicmenu-indicator/

要安装classicmenu指示器,请按y并按[Enter]

kat > back

1) Add Kali repositories & Update 
2) View Categories
3) Install classicmenu indicator
4) Install Kali menu
5) Help

			
kat > 3
 
ClassicMenu Indicator is a notification area applet (application indicator) for the top panel of Ubuntu's Unity desktop environment.

It provides a simple way to get a classic GNOME-style application menu for those who prefer this over the Unity dash menu.

Like the classic GNOME menu, it includes Wine games and applications if you have those installed.

For more information , please visit : http://www.florian-diesch.de/software/classicmenu-indicator/


Do you want to install classicmenu indicator ? [y/n]> y
 This PPA contains the most recent alpha/beta releases for
 * Arronax http://www.florian-diesch.de/software/arronax/
 * ClassicMenu Indicator http://www.florian-diesch.de/software/classicmenu-indicator/
 * Privacy Indicator http://www.florian-diesch.de/software/indicator-privacy/
 * RunLens http://www.florian-diesch.de/software/runlens/
 * Unsettings http://www.florian-diesch.de/software/unsettings/
 * UUdeLens http://www.florian-diesch.de/software/uudelens
 More info: https://launchpad.net/~diesch/+archive/ubuntu/testing
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpaqk6fphl/secring.gpg' created
gpg: keyring `/tmp/tmpaqk6fphl/pubring.gpg' created
...

您还可以在 Ubuntu 中安装 Kali 菜单,方法是选择选项 4 并按 y,然后按 [Enter]

要退出 Katoolin,只需按 Control+C

kat > ^CShutdown requested...Goodbye...

结论

这些安装步骤很容易遵循,并且使用 Katoolin 也很容易。希望这篇文章对您有所帮助。如果您有任何其他想法,请发表评论。请记住保持与 TecMint 的联系,以查找更多此类指南。