Skip to content

Instantly share code, notes, and snippets.

@Depicus
Last active February 3, 2023 07:35
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Depicus/b6e1dd5f7a9cae42cd5918102a9298c6 to your computer and use it in GitHub Desktop.
Save Depicus/b6e1dd5f7a9cae42cd5918102a9298c6 to your computer and use it in GitHub Desktop.
Download image from https://www.raspberrypi.org/downloads/raspbian/
Create filesysstem with https://www.balena.io/etcher/
Create a file called SSH in the root of the drive
Create a file called wpa_supplicant.conf in the root and add the following
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant
update_config=1
network={
ssid="myNet"
scan_ssid=1
psk="password"
}
Login with ssh pi@192.168.x.x and the password Raspberry
Configure with raspi-config
Compile with gcc wolf.c -o wolf
Run with ./wolf
Add a file in /etc/init.d called wolf and add the content from https://raw.githubusercontent.com/Depicus/WoLF/master/wolf-service
Make sure you change the path of the wolf file to match your location
sudo chmod +x /etc/init.d/wolf
sudo update-rc.d wolf defaults
sudo service wolf start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment