Ethical hacking is a great way to discover the psychology of a hacker within you. And there’s a better way to build hacking skills than to use one of the first hacking tools, right?
This article will talk about Kali Linux on your Raspberry Pi 3! A Raspberry Pi 3 running Kali Linux for building hacking skills is amazing. This tiny computer is cheap, powerful and very flexible.
In fact, Kali Linux is packed with everything you need to expand your ethical hacking skills. This is how you install Kali Linux into your Raspberry Pi 3.
Learn about Ethical hacking using Kali Linux and Raspberry Pi
- What is Kali Linux?
- What do you need?
Steps to proceed
- Step 1: Install Kali Linux on Raspberry Pi 3
- Step 2: Boot into Kali Linux on Raspberry Pi 3
- Step 3: Install OpenSSH for remote connection
- Step 4: Add your custom Message of the day
- Step 5: Check your SSH login
- Get started with Ethical Hacking
What is Kali Linux?
Kali Linux is a Debian-based Linux distribution. For more information, please refer to the article: Introduction to Kali Linux operating system.
What do you need?
To use Kali Linux and Raspberry Pi for Ethical hacking, you need the following:
- Raspberry Pi 3 (builds are also available for Raspberry Pi 1, 2 and Zero)
- MicroSD Class 10 is 8GB (or larger) with full SD adapter
- Ethernet cable
- HDMI cable
- MicroUSB 5V-2A power supply
- USB keyboard and USB mouse
You need an HDMI cable to connect your Raspberry Pi running Kali Linux to the monitor, to check if everything is set up properly. USB keyboards and USB mice are important for interacting with Kali Linux after installation. When you’re done setting up and running, you can set up a remote connection to access and use Kali, but for now, Ethernet connections and common peripherals are easier to grasp.
Steps to proceed
Step 1: Install Kali Linux on Raspberry Pi 3
Go to the Kali Linux download page, scroll down a bit, find the line RaspberryPi Foundation and click on it. Then select the Kali Linux Raspberry Pi 2 and 3 link (you can use the torrent file if you like). Locate the folder containing Kali Linux, open it, then extract the downloaded Kali Linux file (file extension .XZ) into the same directory.
Next, you need to burn the Kali Linux image to your microSD card. To do that, you need an image recording tool, such as Etcher (you’ll find at etcher.io). There are many tools for creating bootable drives, but in this case, you should use Rufus. Access the page rufus.akeo.ie, then download and install this image recording utility.
Insert the microSD card into your system. Open Rufus. Select the drive letter of the internal microSD card Device. Browse to the location of the Kali Linux image using the button SELECT. Please choose Quick Format, then press Start and wait for the data to be written.
Once done, remove the microSD card and take your Raspberry Pi 3, then move on to the next step!
Step 2: Boot into Kali Linux on Raspberry Pi 3
Insert a microSD card into the Raspberry Pi 3. Insert an HDMI cable and an Ethernet cable, as well as a USB keyboard and a USB mouse. Finally, insert a microUSB cable to power the Raspberry Pi 3.
The boot process does not take too long, but the screen may flicker and be blank at points. The default username is root and password is toor.
Updated Kali Linux
Before diving into the security programs you have, you should check for any updates. The operating system will automatically connect to the Internet with Ethernet cable.
Right-click on the desktop and select Open a new terminal, then enter the following commands:
These commands will update the Kali installer. The update and upgrade process takes a few minutes to complete. This is extremely important. If you want to establish a remote connection with your Kali Raspberry Pi, move on to the next section of the guide.
Step 3: Install OpenSSH for remote connection
You don’t want to plug the Raspberry Pi running Kali Linux into the monitor every time you want to use it. But unfortunately that’s not entirely realistic.
Instead, you can install OpenSSH to allow them to connect and run commands on the remote device. You can complete this step in the tutorial, when the Raspberry Pi is connected to your monitor (so you can see what you’re doing).
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
Next, you need to remove the default encryption key. Because they are the default keys, they represent vulnerabilities that are easy to remove. The following commands create a new directory to put the old keys in, while creating a new set of SSH keys in the process.
mv ssh_host* oldkeys
Now you need to configure SSH credentials. Edit OpenSSH configuration file in nano:
Find the line:
Navigate the configuration data file using your arrow keys or mouse. Press Ctrl + O to save any changes and Ctrl + X to return to the terminal window. If the setting is set to “Yes”, Do not change anything.
You can now check if OpenSSH is working by using the following command:
sudo service ssh restart
update-rc.d -f ssh enable 2 3 4 5
If OpenSSH does not work, start it up with the following command:
sudo service ssh start
Now, check the Internet configuration of Kali Linux Raspberry Pi 3 by entering the following command:
Write down the IP address of your Raspberry Pi 3 because you will need it now. If the command ifconfig If your Raspberry Pi is not displayed, run the following command to make sure that network services are up and running:
sudo apt-get install net-tools
Then run the command ifconfig and copy the IP address of the Raspberry Pi.
Step 4: Add your custom Message of the day
When you log into a Raspberry Pi 3 running Kali Linux with OpenSSH, you will see a “Message of the day”(MOTD). You can edit it to display a personalized message.
You can write a very basic welcome message or illustrate the hacker login with Ascii image, through this editing step. Be creative according to your liking!
When you’re done, use the following command to enter the MOTD custom screen:
Copy and paste your message, then save and exit by pressing Ctrl + O, then press Ctrl + X.
Step 5: Check your SSH login
Finally, you need to check if your SSH login is working or not. To do this, you need an SSH Client. Microsoft has added OpenSSH support to Windows 10 in the Windows 10 April 2018 update, meaning you no longer need a third-party SSH client to connect to an SSH server.
Press Windows + I, then go to Apps> Manage optional features. Scroll down this list and select OpenSSH Client. If it’s not there, scroll up and select Add a feature, locate OpenSSH Client and then press Install. The installation process only takes a bit of time.
Next, press the key Windows + X, then select Command Prompt (Admin) from the source menu. The OpenSSH client is working, so type the following command and add the IP address copied from the Raspberry Pi:
ssh [email protected][địa chỉ IP của bạn]
Press Enter, Then enter your password (remain the toor unless you change it). Your MOTD will welcome you into Kaspberry Linux Raspberry Pi!
Get started with Ethical Hacking
Now that you are up and running with your Kali Linux Raspberry Pi 3, you can start learning more about Ethical Hacking using the numerous tools available in the operating system.
Just remember that you should only practice hacking on home networks, on devices that you own and can legally break into. If not, you could become a hacker breaking the law.
- Study 8 online hacker training programs for only 39 USD
- In addition to white hat hackers and black hat hackers, what are the colors for hackers? Are there genuine jobs for them?
- The “hell” hacker white hat