Kali Raspberry Pi/Headless Walkthrough
This is a step-by-step walkthrough of connecting to a headless Raspberry Pi running Kali 2.0 by connecting to the pi via a crossover cable.
- 1 laptop/desktop running Mac/Linux/Windoze
- 1 Raspberry Pi
- 1 Cat6 ethernet cable
- 1 mini-usb power cable
Step 1: Ethernet Connection
Plug in the ethernet cable from the Pi to your laptop.
Then plug in the Raspberry Pi power cord.
The Pi should begin with a red light, then switch to red, green, and yellow lights.
Give the Pi and your laptop a minute to communicate. Your computer will assign a link-local IP address in the namespace 169.254.X.Y.
Step 2: IP Address
Open a command prompt on your laptop. Use the ifconfig command (or ipconfig from Windoze) to look at the IP address of each network device. In this case, I have an ethernet port (en0) and a wireless card (en1):
$ ifconfig [...] en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_HWTAGGING> ether q8:pt:z8:zf:fg:t1 inet6 fz80::zzbc:z9ff:fe9f:a6c1%en0 prefixlen 64 scopeid 0x4 inet 169.254.248.5 netmask 0xffff0000 broadcast 169.254.255.255 nd6 options=1<PERFORMNUD> media: autoselect (100baseTX <full-duplex,flow-control>) status: active
The key here is that my computer has automatically picked out the IP address
169.254.248.5 for its own link-local IP address. Pay attention to the THIRD part of the IP address.
Step 3: Hard Code IP Address
Now you can shut down the Pi by unplugging the power cable, and insert the SD card into your laptop.
Edit the boot line by modifying the file
cmdline.txt on the boot partition of the SD card. Add an IP address to the end, that matches (to the THIRD part) the IP address that your laptop automatically picked out for the link-local IP address. In the case above, the IP address space is
169.254.248.X, so I hard-code an IP address in that space for the Pi in
The last number is arbitrary, the only limitation is that it cannot match the IP address of the laptop.
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 rootwait ip=169.254.248.200
Step 4: Ping the Pi
Plug the Pi back in, both to your ethernet port and to power.
Once the Pi has come back online and all lights are flashing, ping the Pi at its hard-coded IP address:
Step 5: SSH to the Pi
Now you should be able to SSH to the Pi:
Step 6: Post-Install
Don't forget the post-install procedure:
Kali Linux"The quieter you become, the more you are able to hear."
Penetration testing Linux distribution.
1 Physical Attacks: Kali/Layer 1 Attacks
2 Data/MAC Attacks: Kali/Layer 2 Attacks
3 Network Attacks: Kali/Layer 3 Attacks
4 Transport Attacks: Kali/Layer 4 Attacks
5 Session Attacks: Kali/Layer 5 Attacks
6 Presentation Attacks: Kali/Layer 6 Attacks
7 Application Attacks: Kali/Layer 7 Attacks
Red Team Blue Team
Kali on Raspberry Pi:
Flags · Template:KaliFlag · e
Raspberry Pia tiny tool for performing extraordinary acts beyond good and evil - with an ARM processor.
Basic Pi Information and Operations:
Organization/Layout of SD Card: Kali Raspberry Pi/SD Card ·
Disable IPV6 on the Raspberry Pi: Disable_IPv6_Pi
Kali Linux on Raspberry Pi:
Debian Raspberry Pi:
Raspberry Pi Circuits:
Raspberry Pi Timelapse Photos:
Flags · Template:PiFlag · e