protorix

The Raspberry pi is a small, credit card-sized computer that can be used to break into laptops, clone wifi networks and can be used for many automation purposes. Raspberry pi along with kali Linux will give you portable testing tools that you can take anywhere.

Kali Linux is a Debian based Linux distribution that is primarily used for penetration testing. It comes along with a lot of pre-installed tools digital forensics, research, penetration, malware analysis, reverse engineering, and more. In this guide, you’ll learn how to install kali Linux in raspberry pi.

What You’ll Need to Install Kali Linux in Raspberry Pi

  • Raspberry Pi 3
  • 8GB (or larger) microSD
  • HDMI cable
  • 5V micro USB power supply
  • A USB keyboard and USB mouse

Step 1: Download and flash kali Linux

Head on to the Re4son’s website and download the Sticky Finger’s pre-installed kali-pi image. Flash the image into the sd card using the command line.

dd bs=1m if=locationofimage of=/dev/sdb

Step 2:Boot into kali linux

Insert the SD card into raspberry pi and connect the HDMI cable from pi to monitor as well as the USB keyboard and USB mouse. Power up the raspberry pi using the MicroUSB cable. Once kali Linux loads you’ll be on the login screen. The default username is root and toor for a password. After booting up into kali Linux connect to the Internet using wifi and do a full system update.

apt-get update

apt-get upgrade

apt-get dist-upgrade

You can change the default root password by typing

Passwd root

Step 3:Install openSSH

You can install the SSH server in raspberry pi and boot into it remotely without a monitor.

Enter the following commands in the terminal to install the OpenSSH server:

apt-get install openssh-server

update-rc.d -f ssh remove

update-rc.d -f ssh defaults

Change the default ssh keys and reconfigure the server:

cd /etc/ssh/

dpkg-reconfigure openssh-server

nano /etc/ssh/sshd_config

Configure the SSH login information in the nano editor that opens.

Change this line :

PermitRootLogin without-password

To this:

PermitRootLogin yes

Save the changes and exit the editor.

Restart the ssh server using the following commands:

sudo service ssh restart

update-rc.d -f ssh enable 2 3 4 5

Step 4: Test SSH login

Now check if the OpenSSH service is up and running using the following command.

sudo service ssh status

If it’s not running , start it using the following command:

sudo service ssh start

You can remotely login to the raspberry pi using the ip address of the wifi network in pi.

Subscribe to our Newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *