How To Setup A Kali Linux Hacking Station On Raspberry Pi 3 Model B+

Step 1: Download and Install Kali Linux Image

1.1 Download Kali Linux official Raspberry Pi image

1.2 Extract the image from the zip file to a local folder

1.3 Use Win32DiskImager our a similar application to load the image on the SD card

1.4 Insert the SD card and start the Raspberry Pi

Step 2: Connect to Kali Linux With SSH

2.1 Connect the Raspberry Pi to the LAN

2.2 Use your favorite network scanner to get the Raspberry’s IP address

2.3 Use Putty to connect to the Kali Linux

2.4 Use default credentials root for login and toor for the password

Step 3: Configure Kali Linux

3.1 Change root password

sudo passwd root
root@kali:/# passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@kali:/#

3.2.a Update installed packages

sudo apt-get update -y

3.2.b Upgrade installed packages

sudo apt-get upgrade -y

3.2.c Update dependencies

sudo apt-get dist-upgrade -y

Step 4: Enable Auto login Lightdm

4.1 Display default Display Manager

sudo cat /etc/X11/default-display-manager
root@kali:~# cat /etc/X11/default-display-manager
/usr/sbin/lightdm
root@kali:~# 

4.2.a Edit configuration file for lightdm

sudo nano /etc/lightdm/lightdm.conf

4.2.b Delete the comment characters (“#”) and change the autologin user to be “root”.

    autologin-user=root
    autologin-user-timeout=0

Exit & Save

4.3.a Edit editing the PAM configuration file for lightdm

sudo nano /etc/pam.d/lightdm-autologin

4.3.b Comment out “#” the line below

# Allow access without authentication
auth      required pam_succeed_if.so user != root quiet_success
# Allow access without authentication
##auth      required pam_succeed_if.so user != root quiet_success

Exit & Save

4.3.c Turn off power savings options and lock screen options from the desktop

4.4.a Reboot Kali Linux,

sudo reboot

4.4.b Confirm that auto login is successful

Step 5: Setup Vino VNC server

5.1.a Install the Vino VNC serve

sudo apt-get install vino -y 

5.2.a Download and run the script below to fix installation, edit the script and change the password

sudo git clone https://gist.github.com/jasonadsit/3a836c60f010bf655f82a99064341993

# Download and unpack the script and run the commands bellow

sudo cd 3a836c60f010bf655f82a99064341993
sudo nano fix-kali-vnc.sh
sudo chmod +x fix-kali-vnc.sh
sudo ./fix-kali-vnc.sh

The Scrip will reboot the server

5.2.b Script will create a auto start file for VINO “vino-server.desktop”

## You can find the file in the directory bellow

sudo /root/.config/autostart/vino-server.desktop

5.2.b Display listing sockets (Vino port is 5900)

sudo netstat -tupln
root@kali:~# sudo netstat -tupln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      454/sshd
tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      555/vino-server
tcp6       0      0 :::22                   :::*                    LISTEN      454/sshd
tcp6       0      0 :::5900                 :::*                    LISTEN      555/vino-server
udp        0      0 0.0.0.0:68              0.0.0.0:*                           402/dhclient

5.3.a Edit the desktop resolution on start, open the “boot” directory and edit the “config.txt” file

cd /boot/

sudo nano config.txt

5.3.b Uncomment the framebuffer_width and the framebuffer_height parameter and set the resolution you want

framebuffer_width=1900

## framebuffer_height
##     Console framebuffer height in pixels. Default is display height minus
##     overscan.
##
framebuffer_height=1024

Exit & Save

5.3.c Reboot the Pi

5.3.d Confirm that the VNC server is working, use VNC client to remote logi

Step 6: Configure WiFi Connection

6.1.a Edit network/interfaces configuration file

sudo /etc/network/interfaces
# Add the code bellow. (Remove quotes)

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "YourNetworkName"
wpa-psk "YourPassword"

Exit & Save

6.1.b Reboot

sudo reboot

Optional 1 : Install WiFi Pumpkin Rouge AP

1.1.a Install dependencies

sudo apt install -y python-pip
sudo pip install service_identity
sudo pip install scapy_http
sudo apt install mitmproxy

1.2.a Download WiFi-Pumpkin

sudo git clone https://github.com/P0cL4bs/WiFi-Pumpkin.git

1.2.b Open WiFi Pumpkin directory

cd WiFi-Pumpkin/

1.2.c Add permission to the installer file

sudo chmod +x installer.sh

1.2.d Run the installer script

sudo ./installer.sh --install

1.3.a Run the WiFi-Pumpkin application

sudo wifi-pumpkin

Optional 2: Install Bully

https://github.com/aanarchyy/bully

2.1.a Install Pixiewps dependence

sudo apt-get -y install build-essential libpcap-dev aircrack-ng pixiewps

2.2.a Download Bully

sudo git clone https://github.com/aanarchyy/bully

2.2.b Build the application

cd bully*/
cd src/
sudo make

2.2.c Install bully

sudo make install

Optional 3: Install Full Kali Linux ‘Image

3.1.a The process can take up to 6 hours and you need a 32 gb SD car

sudo apt-get install kali-linux-full

Donate