In this tutorial, I will show you how to make a portable hacking station using Raspberry Pi 3. For your convenience and easy understanding and troubleshooting, I will be dividing this whole tutorial into 2 parts (both in this same project itself).
In the first part, I will teach you how to install Kali Linux and do basic setups on Raspberry Pi 3; and in the second part, I will show you how you can access the shell of Pi from your phone and use it as a wireless hacking station.
Things Needed
For this project, You will need a Raspberry Pi 3, a micro SD card greater than 8GB and a 5V power source to power up the Pi.
Part 1This is step-by-step explained Part 1 video.First you will have to download Kali Linux image for Raspberry pi 3.
Next, you have to write the image on the SD card. Connect the SD card to your computer using a micro SD card adapter. For formatting the card and writing the image, you will have to use 2 specific software. Otherwise it may not work. For formatting, use SDFormatter and for writing the image use Win32 Disk Imager.
First start SDFormatter, choose the correct drive, go to options, and make the changes as shown in the video, change the volume label and click format. Once it is completed, start win32diskimager, choose the correct drive, select the image and click write. It will take some time.
Once its finished you have to remove the SD card and carefully insert it into the micro SD card slot of Raspberry Pi. Connect the keyboard, mouse and monitor to the Pi. Once everything is done, power up the Pi. If everything you have done till now is correct, Pi will start to boot up. It will ask for username and password.
- Default username is '
root
' - Default password is '
toor
'
Click on "use default config
". Now connect to internet, add correct repositories in sources file as shown in the video. Just add those lines in the source file and execute 'apt-get update
' and 'apt-get upgrade'
in the terminal.
Expand the partition using gparted. Install gparted. Now open gparted, select the partition, click resize and drag the bar to the right end. Click apply. Now check the block memory allocation again. All 29 GB is in use. Now you can install whatever software you want and use Raspberry Pi as a normal PC.
Part 2This is step-by-step explained Part 2 video.
We are starting from the point, where we stopped in the last step.
Now, we have to install raspi-config in our Kali Linux OS. Go ahead and download. Go to the directory, unzip the file, change the permission of the file and install it.
Just try to open it. Sometimes when you open raspi-config, the error as shown in the video may occur. We can simply solve this issue by manually mounting the boot partition. Create a user 'pi
' and secure the account with a password.
Open raspi-config, go to boot options. What we want is our Pi to automatically login as a user when we power on the Pi. In the boot option, we can create an autologin for a user 'pi
' by selecting the 4th option. This will make the Pi automatically login to the desktop as user 'pi' every time we start the Pi. Select finish and reboot.
If what we have done is correct, the Pi will automatically login as the user 'pi
' when it boots up. Since it is a new user, we have to do some initial setups. Click "use default config
". Check the username. Open up the terminal and type 'whoami
'.
Next we have to create a hotspot in our mobile phone. Take your phone; go to tethering and portable hotspot. Give it a name, a password and turn on WiFi hotspot. This WiFi network will be visible in your Pi. Now select that network; enter the password and connect to that network.
A very important thing is that, you should only connect to your WiFi network using your inbuilt WiFi with broadcom chipset only. Go to network manager, general tab and tick the first two options so that it will automatically get connected to this WiFi whenever it is available. Now, let's check the IP address.
On your phone, download and install any ssh app. I am using juice ssh. Create a connection and give it a name, check the IP address and create a username 'root
' with password 'toor
'. Then connect it. We will get the shell of Raspberry Pi in our mobile. Now you can give any command through your phone to our Raspberry Pi.
Everything is working so now you can just shutdown the Pi and disconnect the monitor keyboard and mouse. Now, whenever I power up the Pi, it will boot up, automatically login as 'pi
' user and connect to our WiFi network if it is available.
Now connect your TP link USB WiFi adapter and power bank to the Pi, and wait for it to boot up.
You should always use 2 interfaces for this purpose because, for attacking WiFi networks, you have to change the mode of interface from managed to monitor mode. This will terminate the connection of that interface to any network connected to it. So I used the built-in WiFi adapter to connect it with the mobile and TP link adapter for attacks. After 5 minutes, try to connect it using Juice SSH. If it gets connection, CONGRATS. It's done!
Design your own PCBs for your Project!I used Altium designer to draw the circuit and design the PCB. It is a powerful tool that can be used to design and create our own PCBs for our project as well as complex and multi-layer PCBs for industrial use.
If you are a DIY Electronic enthusiast, I bet this is gonna be really useful for you guys. I have been using it for the past 3-4 years and let me tell you guys, this is amazing! You can download the Free Trial of Altium PCB Designer from here.
PCB Design Tutorial using AltiumCheck out the below video to start designing your own PCBs in Minutes!
You can run any command in the mobile and it will be executed in the Pi. You can keep everything inside your bag, walk around and do whatever you want and no one will be suspicious. If you have any trouble building it up, just let me know in the comments.
Thank You!
Comments