Kali Linux on Raspberry Pi: simple, fast, clear

Hello, Habr!



I wondered here the other day whether the famous in the circles of hackers and pentesters Kali Linux on the Raspberry Pi can be run. I did not find complete, working and understandable instructions, so I decided to write a post about it. Made on the example of Raspberry Pi 3B +



1) What we need:



  • The actual RPi (Any will do, except Pi 1)

  • Micro SD card of at least 16 GB, class 10

  • A computer

  • Display with HDMI connector (we will connect raspberries to it)

  • Power cable (I recommend taking with a current strength of at least 2A)

  • Keyboard and Mouse



2) Preparing the software



First, we need a Kali Linux RPi image. You can get it here . Scroll down to the words Raspberrypi Foundation and select the desired image. I took the image "Kali Linux RaspberryPi 2 (v1.2), 3 and 4 (64-Bit)", RPi 3B + easily pulls it.



When the image is downloaded, open it with an archiver and extract it.



Also , download Etcher from here , we will write the image to the SD card for the raspberry.



3) Firmware



Open Etcher, connect the microSD, in the "Select Image" point, specify the path to the file, then select our microSD as a device for the firmware, press Flash. We brew a tea, and wait until it is sewn.



4) Launch



Take the RPi, connect the microSD, display, keyboard and mouse to it and ONLY THEN plug in the power cable, otherwise nothing will work. We are waiting for the graphical interface to appear on the screen. Enter your username and password (kali and kali).



Other logins and passwords
root toor , RPi .



Next, we connect to Wi-Fi or to the wired Internet (if necessary, we connect the Wi-Fi dongle) by clicking the network icon in the upper right corner (where the Ethernet port is drawn at the first boot), selecting the network and entering the password. Next, open the console and write:



sudo apt update
      
      





An error may occur (when Err is written in front of one of the links), then we write the code:



sudo nano /etc/apt/sources.list
      
      





We will open a file, all the contents of which need to be deleted and a new one should be entered:



deb http://http.kali.org/kali kali-rolling main non-free contrib
      
      





Then we run the command again:



sudo apt update
      
      





And everything should work. Then we start updating packages:



sudo apt upgrade
      
      





When asked for confirmation, press Y and enter. And now we brew the tea again and wait until the update is complete (I advise you to brew 10 liters, since all this is updated very slowly, it took me about 6 hours).



Your RPi is now ready for anything!



Shutdown
, RPi ,

sudo shutdown



, RPi , . , , ยซยป, .



PS The author is not responsible for any damage caused by using Kali Linux. All information is provided for educational purposes only.



All Articles