A device that you could have as part of your ethical hacking security toolbox is an attack platform. The Raspberry Pi is a great IoT platform that allows you to build purpose built tools on a student’s budget! Here are the links to purchase the hardware: (only one is required)
The Raspberry Pi Zero Wireless with header:
https://www.adafruit.com/product/3708?gclid=EAIaIQobChMIv47BvMmh7gIVoQiICR0EmQVdEAQYAiABEgKtMPD_BwE (Links to an external site.)
Raspberry Pi Zero Wireless without headers:
https://www.adafruit.com/product/3400?gclid=EAIaIQobChMIv47BvMmh7gIVoQiICR0EmQVdEAQYASABEgLzkPD_BwE (Links to an external site.)
There is also a USB-A Add-on board (optional, but makes the Raspberry Pi resemble a USB drive: https://www.ebay.com/itm/USB-Adapter-Board-BadUSB-Addon-Converter-Board-for-Raspberry-Pi-Zero-1-3-Zero-W-/133134754220 (Links to an external site.), https://www.amazon.com/gp/product/B077W69CD1/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1 (Links to an external site.), or https://smile.amazon.com/dp/B07NKNBZYG/ref=nav_timeline_asin?_encoding=UTF8&psc=1 (Links to an external site.). The Raspberry Pi will still work if you use a USB-A to microUSB cable.
You will also need a microSD in order to run the software on the Raspberry Pi. In order to load the software on the microSD card, you will need a reader for the microSD card on the computer.
Step 1:
Download the latest version of the Raspberry Pi OS (formally called Raspbian) from Raspberry Pi Foundation’s website: https://www.raspberrypi.org/software/ (Links to an external site.) you will want to install the lite version as the desktop version includes the GUI, which will be slow on the Raspberry Pi Zero W.
If you want to use the Raspberry Pi installer, you can more than do that. It will combine Step 1 and Step 2.
Step 2:
Load the operating system software on the microSD. There are various programs to load the image on the microSD card. The video that I provide shows how to flash the image onto the card from the UNIX command line.
Step 3:
Update configuration files for the Raspberry Pi OS:
Setup WiFi Configuration
Create a new blank plain text file called wpa_supplicant.conf in the boot partition of the microSD card
Enter the following text into the file.
country=us
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid=”YourNetworkSSID”
psk=”YourNetworkPasscode”
}
Add the line : dtoverlay=dwc2 to the end of the config.txt file.
Insert modules-load=dwc2,g_ether into cmdline.txt between rootwait and quiet.
Create an empty file called ssh in the same folder where cmdline.txt and config.txt reside. This will allow you to connect to the Raspberry Pi Zero W via SSH after the computer boots.
Remove and insert the microSD card from your computer into the Raspberry Pi and boot up the Raspberry Pi.
The Raspberry Pi will boot up in headless mode and you can connect to the Raspberry Pi using your favorite SSH tool. You will need to find the address of your Raspberry Pi and remove in using the command ssh pi@ipaddress. Initially the password is raspberry and you should change that immediately.
Ensure that the Raspberry Pi is truly updated by using the command sudo apt update && sudo apt upgrade -y.
Submitting the report
This is a simple write up about your experience with this lab. Place a screenshot of the finished updates from the terminal connected to the Raspberry Pi.
Last Completed Projects
| topic title | academic level | Writer | delivered |
|---|
