Install Kali Linux on a Raspberry Pi

This guide will show how to install the Kali Linux ARM port on your Raspberry Pi. The process is pretty simple.

Alert! This process will wipe out your SD card. If you choose the wrong storage device, you may wipe out your computers hard disk. Use lsblk to find out where the storage device is located and change /dev/sdb to whatever is appropiate.

Download the Kali Raspberry Pi image from the Kali downloads page and then extract it. Plug in the SD card to your computer, open up a terminal and type :

root@kali:~ dd if=/home/mic/downloads/kali-pi.img of=/dev/sdb bs=512k

Change the “if” and “of” values to suit you, once you hit enter just sit and wait for it to complete. This process can take a while depending on your storage device speed and image size. Once the dd operation is complete, boot up your Raspberry Pi with the SD card plugged in. You will be able to log in to Kali (root / toor) and startx. That’s it, you’re done!

IMPORTANT Please change your ssh host keys as soon as possible as ALL rpi images have the same keys. You should also change the root password to something more secure, especially if this machine will be publicly accessible!

Changing ssh host keys can be accomplished by doing the following:

root@kali:~ rm /etc/ssh/ssh_host_*
root@kali:~ dpkg-reconfigure openssh-server
root@kali:~ service ssh restart
That’s it, you are now free to enjoy Kali Linux on your Raspberry Pi.

One thought on “Install Kali Linux on a Raspberry Pi

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s