Skip to content

Instantly share code, notes, and snippets.

@Soulsender
Last active March 10, 2023 20:36
Show Gist options
  • Save Soulsender/dd436ed767d650960932ef9b55e2fe0c to your computer and use it in GitHub Desktop.
Save Soulsender/dd436ed767d650960932ef9b55e2fe0c to your computer and use it in GitHub Desktop.
A list of commands used in the gps wardriving video. THESE WILL BE DIFFERENT FOR YOU BASED ON THINGS LIKE YOUR INTERFACE NAME AND IP ADDRESS.
GETTING THE IP
arp-scan --interface=wlan0 --localnet
nmap -sN 192.168.0.1/24
SSH
ssh username@192.168.0.1
INSTALLING TOOLS
sudo apt update
sudo apt install hostapd dnsmasq gpsd gpsd-clients netcat git raspberrypi-kernel-headers
wget -O - https://www.kismetwireless.net/repos/kismet-release.gpg.key | sudo apt-key add -
echo 'deb https://www.kismetwireless.net/repos/apt/release/buster buster main' | sudo tee /etc/apt/sources.list.d/kismet.list
sudo apt update
wget http://ftp.us.debian.org/debian/pool/main/p/protobuf/libprotobuf17_3.6.1-4~bpo9+1_arm64.deb
sudo dpkg -i libprotobuf17_3.6.1-4~bpo9+1_arm64.deb
sudo apt install kismet kismet-capture-linux-wifi
CHANGING INTERFACE NAME
ip link
sudo nano /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="yourinterfacemac", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wap0"
CONFIGURING DHCP
localectl status
sudo nano /etc/dhcpcd.conf
interface wap0
static ip_address=192.168.0.1/24
nohook wpa_supplicant
CONFIGURING DNSMASQ
sudo nano /etc/dnsmasq.conf
interface=wap0
dhcp-range=192.168.0.2,192.168.0.20,255.255.255.0,24h
domain=wlan
CONFIGURING HOSTAPD
sudo systemctl unmask hostapd
sudo systemctl enable hostapd
sudo nano /etc/hostapd/hostapd.conf
country_code=US
interface=wap0
ssid=Your Network Name
hw_mode=g
channel=7
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
INSTALLING DRIVERS
git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au/
make
sudo make install
cd
MISC
sudo rfkill unblock wlan
sudo reboot now
ssh user@192.168.0.1
CONFIGURING GPS
nc -ul 9999
sudo nano /etc/kismet/kismet.conf
gps=gpsd:host=localhost,port=2947,reconnect=true
STARTING KISMET & GPSD
sudo kismet -c wlan0
gpsd -D9 -N "udp://*:9999"
USING AS DAEMON
sudo kismet --daemonize -c wlan0
gpsd -D9 "udp://9999"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment