Sådan installeres alle Kali Linux-værktøjer automatisk ved hjælp af "Katoolin" på Debian/Ubuntu


Katoolin er et script, der hjælper med at installere Kali Linux-værktøjer på din valgte Linux-distribution. For dem af os, der kan lide at bruge værktøjer til penetrationstest, der leveres af Kali Linux-udviklingsteam, kan det effektivt gøre på deres foretrukne Linux-distribution ved hjælp af Katoolin.

I denne vejledning skal vi se på trin til installation af Katoolin på Debian-baserede derivater.

  1. Tilføjelse af Kali Linux-arkiver.
  2. Fjernelse af Kali Linux-arkiver.
  3. Installation af Kali Linux-værktøjer.

Krav til installation og brug af Katoolin.

  1. Et operativsystem til denne sag bruger vi Ubuntu 14.04 64-bit.
  2. Python 2.7

Installation af Katoolin

For at installere Katoolin skal du køre følgende kommandoer.

# 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.

Lav derefter/usr/bin/katoolin eksekverbar ved at køre kommandoen nedenfor.

# chmod +x  /usr/bin/katoolin

Nu kan du køre Katoolin som følger.

# katoolin

Outputtet nedenfor viser grænsefladen til Katoolin, når du kører kommandoen.

 $$\   $$\             $$\                         $$\ $$\           
 $$ | $$  |            $$ |                        $$ |\__|          
 $$ |$$  /  $$$$$$\  $$$$$$\    $$$$$$\   $$$$$$\  $$ |$$\ $$$$$$$\  
 $$$$$  /   \____$$\ \_$$  _|  $$  __$$\ $$  __$$\ $$ |$$ |$$  __$$\ 
 $$  $$<    $$$$$$$ |  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

Som du kan se, indeholder den en menu, hvorfra du kan foretage valg af, hvad du vil gøre.

Hvis ovenstående installationsmåde mislykkes, kan du også prøve følgende trin.

Gå til https://github.com/LionSec/katoolin.git side, download zip-filen og udpak den.

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

Efter udpakning skal du kunne finde scriptet katoolin.py. Kør kommandoen katoolin.py, du kan se output svarende til ovenstående.

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

Hvordan bruger jeg Katoolin?

For at tilføje Kali Linux-opbevaringssteder og opdatere opbevaringssteder, skal du vælge indstilling 1 i menuen.

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)

Derefter kan du vælge mulighed 2 fra grænsefladen ovenfor for at opdatere lagrene. Fra nedenstående output har jeg kun fanget en del, hvor Kali Linux-arkiver opdateres, så man kan installere Kali Linux-værktøjer i Ubuntu.

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    
...  

Hvis du vil slette de Kali Linux-arkiver, du har tilføjet, skal du vælge indstilling 3.

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

Som en del af operationen bruger Apt-pakken en /etc/apt/sources.list, der viser de 'kilder', hvorfra du kan hente og installere andre pakker.

Vælg 4 for at se indholdet af /etc/apt/sources.list-filen.

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
...

For at gå tilbage kan du blot skrive tilbage og trykke på [Enter] -tasten.

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 > 

For at gå tilbage til hovedmenuen skal du blot skrive gohome og trykke på [Enter] -tasten.

kat > gohome

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

			
kat >

Der er forskellige kategorier af Kali Linux-værktøjer, du kan installere på din Ubuntu ved hjælp af Katoolin.

For at se de tilgængelige kategorier skal du vælge indstilling 2 i hovedmenuen.

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 .

Du kan vælge en kategori efter eget valg eller installere alle tilgængelige Kali Linux-værktøjer ved at vælge indstilling (0) og trykke på [Enter] for at installere.

Du kan også installere en ClassicMenu-indikator ved hjælp af Katoolin.

    1. ClassicMenu-indikator er en applikationsindikator til det øverste panel i Ubuntu's Unity-skrivebordsmiljø.
    2. ClassicMenu-indikator giver dig en enkel måde at få en klassisk applikationsmenu i GNOME-stil til dem, der foretrækker dette i stedet for Unity-dash-menuen.

    For mere information besøg venligst: http://www.florian-diesch.de/software/classicmenu-indicator/

    For at installere klassisk menuindikator skal du trykke på y og trykke på [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
    ...
    

    Du kan også installere Kali-menuen i Ubuntu ved at vælge indstilling 4 og trykke på y og derefter trykke på [Enter].

    For at afslutte Katoolin skal du blot trykke på Control + C.

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

    Konklusion

    Disse installationstrin er nemme at følge, og det er også nemt at bruge Katoolin. Håber du finder denne artikel nyttig. Hvis du har yderligere ideer, så skriv en kommentar. Husk at forblive forbundet til TecMint for at finde ud af flere guider som denne.