How To Setup A Raspbian Hacking Station On Raspberry Pi 3B+

image_pdfimage_print

Step 1: Download and run Raspbian Stretch Lite 4.14

1.1 Download Raspbian Stretch lite

1.2 Use Win32DiskImager our a similar application to load the image on the SD card and start the Raspberry

Step 2: Enable SSH For Remote Access

2.1 Enable SSH service

sudo systemctl enable ssh

2.2 Start the ssh service

sudo systemctl start ssh

2.3 Check ssh service status

● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-12-21 15:42:24 GMT; 10min ago
  Process: 482 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
 Main PID: 498 (sshd)
   CGroup: /system.slice/ssh.service
           └─498 /usr/sbin/sshd -D

Dec 21 15:42:23 raspberrypi systemd[1]: Starting OpenBSD Secure Shell server...
Dec 21 15:42:24 raspberrypi sshd[498]: Server listening on 0.0.0.0 port 22.
Dec 21 15:42:24 raspberrypi sshd[498]: Server listening on :: port 22.
Dec 21 15:42:24 raspberrypi systemd[1]: Started OpenBSD Secure Shell server.
Dec 21 15:53:04 raspberrypi sshd[610]: Accepted password for pi from 192.168.10.100 port 16681 ssh2
Dec 21 15:53:04 raspberrypi sshd[610]: pam_unix(sshd:session): session opened for user pi by (uid=0)

Step 3: Change Password

3.1 Change the default password “raspberry”

sudo passwd pi
pi@raspberrypi:~ $ sudo passwd pi
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
pi@raspberrypi:~ $

Step 4: Upgrade And Update The System And Install Pixel desktop

4.1 Upgrade and update Rasbian

sudo su
sudo apt-get update && apt-get upgrade -y

4.2 Update dependence

sudo apt-get dist-upgrade -y

4.3 Install Pixel desktop

sudo apt install raspberrypi-ui-mods

Step 5: Change Hostname

5.1 Edit hostname configuration file and change the name

sudo nano /etc/hostname
# Delete the default name
raspberrypi
# Replace the default name with a generic name
iPhone

Exit & Save

5.2 Edit the hosts configuration file

sudo nano /etc/hosts
# Edit "127.0.1.1       "raspberrypi"
127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.1.1       raspberrypi
127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.1.1       iPhone

Exit & Save

5.3 Reboot the system

sudo reboot

5.4 Confirm name change

pi@iPhone:~ $ hostname
iPhone
pi@iPhone:~ $
pi@iPhone:~ $ hostnamectl
   Static hostname: iPhone
         Icon name: computer
        Machine ID: 6a96a9125dd8459ba16b1515c6970548
           Boot ID: 8d37ad2f0ae94ab58833fe32f40e2817
  Operating System: Raspbian GNU/Linux 9 (stretch)
            Kernel: Linux 4.14.79-v7+
      Architecture: arm
pi@iPhone:~ $

Step 6: Configure WiFi Connection

6.1 Configure the wpa_supplicant configuration file from cli

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
# Go to the bottom of the file and add the following
network={
    ssid="YOUR SSID"
    psk="YOUR PASSWORD"
}

Exit & Save

6.2 Reload the wpa_supplicant.conf configuration file

sudo wpa_cli -i wlan0 reconfigure

6.2 Confirm that you are connected to the WiFi network

sudo ifconfig wlan0
pi@iPhone:~ $ ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
inet 192.168.10.105  netmask 255.255.255.0  broadcast 192.168.10.255
inet6 fe80::a086:50f3:8561:32e  prefixlen 64  scopeid 0x20 	<link>
        ether b8:27:eb:6c:07:bd  txqueuelen 1000  (Ethernet)
RX packets 58  bytes 10796 (10.5 KiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 34  bytes 5763 (5.6 KiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Step 7: Enable VNC For Remote Access to Desktop

7.1 Open terminal and run raspi-config

sudo raspi-config

7.2 Select Option 5 (Interfacing Options)

7.3 Then P3 VNC

7.4 Select yes to enable VNC

7.5 Wait for it to install all the necessary packages,

7.6 Reboot the Raspberry

sudo reboot

7.7 Connect to raspberry from a VNC client

Step 8: Use Katoolin To Install Kali Linux Tools

8.1 Run commands in root privileges

sudo su

8.2 Install git

sudo apt-get install git

8.3 Download Katoolin with git or visit the site

https://github.com/LionSec/katoolin

sudo git clone https://github.com/LionSec/katoolin.git && cp katoolin/katoolin.py /usr/bin/katoolin

8.4 Make the file executable

sudo chmod +x /usr/bin/katoolin

8.5 Run Katoolin, make sure to run it as root

sudo katoolin

Step 9: Add Kali Linux Repositories And Installs Attack Modules

9.1 Add Kali repositories and update the system, navigate thee system by typing “back” or “gohome”

9.2 Install the Kali menus and exit Katoolin

9.3 Edit the sources.list, add entry for Kali repository to make them trusted

sudo nano /etc/apt/sources.list
# Add [trusted=yes] infront deb

deb [trusted=yes] http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
# Kali linux repositories | Added by Katoolin
deb [trusted=yes] http://http.kali.org/kali kali-rolling main contrib non-free

9.4 Start Katoolin and add attack categories, weaponize the Raspberry

Step 10: Install Tools For PMKID WPA2 Attack

10.1 Install dependence

sudo su
sudo apt install libcurl4-openssl-dev libpcap0.8-dev zlib1g-dev libssl-dev


10.2 Download hcxdumptool, hcxtools and hashcat

sudo git clone https://github.com/ZerBea/hcxdumptool.git
sudo git clone https://github.com/ZerBea/hcxtools.git
sudo git clone https://github.com/hashcat/hashcat.git

10.3 Install hcxdumptool

cd hcxdumptool

10.3.a Create the installation 

sudo make

10.3.b Start the installation

sudo make install

10.4.a Install hcxtools

cd ..
cd hcxtools/

10.4.b Create the installation 

sudo make

10.4.c Start the installation

sudo make install

10.5.a Install hashcat

cd ..
cd hashcat

10.5.b Create the installation

sudo make

10.5.c Start the installation

sudo make install
image_pdfimage_print

Donate