Kali Linux on a Raspberry Pi 2

First git clone the kali linux arm repo from https://github.com/offensive-security/kali-arm-build-scripts

Now modify, the architecture in the rpi.sh script to read “armhf” rather “armel” as the Raspberry Pi 2 has a different processor architecture

rpi-mod1

Create our kernel configuration by copying the one that is pastebin’d here

Save the file as “rpi-3.1.8.config” in the kernel config directory.

Modify  the rpi.sh script to use our new kernel configuration.

rpi-mod2

Now run the rpi.sh command, if all goes well, you should see something like below.

kali-complete

14/02/2015 Update

You will probably encounter a problem with ‘startx’ command freezing the ‘X’ environment with the build. If this is the case, then look at the kali linux forum post here.

The solution is essentially to copy the /lib/modules directory from the Raspbian image. I will look at modifying the build script to solve this in the near future.