Handheld Kali - Part One: Installing Kali

10-06-2021 Written by: otter-admin


First the parts list. I got all of my parts from Adafruit.


Raspberry Pi 4 8GB: https://www.adafruit.com/product/4564

3.5" Touchscreen: https://www.adafruit.com/product/2441

Fan with mount: https://www.adafruit.com/product/4316

Powercable: https://www.adafruit.com/product/4298

Header:  https://www.adafruit.com/product/1992

*note: this isn't the header I picked up but looks like it'll work better. Mine had much taller pins which I had to trim in order to get the screen to sit flush on the pi. This is need to allow the fan to fit between the PCB/heatsink and the screen.

Mini bluetooth keyboard: https://www.adafruit.com/product/3601

You'll also need a microSD card. I used a 64GB SanDIsk Ultra, correct HDMI cable, monitor, mouse, keyboard. To power it once done I used a powerbrick


Finally the Kali image which you can get here: https://www.kali.org/get-kali/#kali-arm make sure to get the correct version. I used the 64bit for Raspberry PI 4. I suggest using the torrent download as it's much faster than the direct download from their site. 


Install Kali onto to pi. I did all of this from Parrot OS (linux). If you are starting with Windows, the process will be different - head over to google for that one. Sorry. :)


First download the arm image for your model pi from this link - https://www.kali.org/get-kali/#kali-arm. Use the torrent method to download as it's much faster than Kali's site.


Before flashing make sure the image that was downloaded is what Kali intended it to be by verifying the sums.


Unzip the file. I used 7zip

$ 7z e kali-linux-2021.3-rpi4-nexmon-arm64.img.xz


From Kali's site the sha256sum at the time was: 5d36fdc4ddf8d27d407ef85a074f6f981c13e0a7abaca859af0c38eea8e8f1f0


$ sha256sum kali-linux-2021.3-rpi4-nexmon-arm64.img.xz 
5d36fdc4ddf8d27d407ef85a074f6f981c13e0a7abaca859af0c38eea8e8f1f0  kali-linux-2021.3-rpi4-nexmon-arm64.img.xz


They match so the file is good. Proceed to uzip the file. I used 7zip

$ 7z e kali-linux-2021.3-rpi4-nexmon-arm64.img.xz


Next find the ID for the uSD card. In my case I am using a 64GB SanDisk ExtremePro.

Before plugging in card:

└╼$ ls /dev/sd*
zsh: no matches found: /dev/sd*


After plugging in card:

└╼$ ls /dev/sd*
brw-rw---- 1 root disk 8, 0 Sep 28 11:08 /dev/sda


You can also use sudo fdisk -l but I think the above method is a little easier. You can see from above the microSD card is /dev/sda

I'm going to use dd to flash the bootable image to the uSD card. There are some graphical tools for this but dd is usually pre-installed on most systems and works fine.

$ sudo dd if=~/Downloads/kali-linux-2021.3-rpi4-nexmon-arm64.img of=/dev/sda 


That might take a while so sit back and wait for it to complete. There isn't a progress bar for dd, so don't get worried if nothing happens.


20307968+0 records in
20307968+0 records out
10397679616 bytes (10 GB, 9.7 GiB) copied, 1315.59 s, 7.9 MB/s


If successful there will be an output like above. Now it's time to pop this into the pi and Kali should boot up. In case you missed it the username and password is going to be kali and kali.


Once that boots up, select install and go ahead and install Kali onto the Raspberry Pi. Reboot once done and you should have a working version of Kali linux. If you don't want the handheld piece you can stop here and enjoying using Kali as is. If you'd like to continue on with the build, Stay tuned for the next episode. 


- ott3r