Scanning networks
Find and review Wi-Fi networks in your area.
Discover nearby Wi-Fi networks and gather information about them. You can scan passively without connecting, or connect to a network and explore devices on it.
Prerequisites
- GhostESP flashed device, powered on with a wireless antenna.
Finding nearby networks
On-device UI
- Open Menu → WiFi → Scanning. You should see a menu with scan options.
- Choose Scan Access Points. The device will search for networks. Wait for the scan to finish and see a summary.
- Select List Access Points. You should see each network listed with its name, channel, signal strength, and device manufacturer.
On-device UI — Optional features
- Scan APs Live: Watch new networks appear in real time as they’re discovered.
- Channel Congestion: See how busy the wireless channels are in your area.
Command line
- Open the GhostESP terminal (serial connection or on-device terminal).
- Run
scanapto start a scan. Wait for it to finish and show results. - Run
list -ato see the cached list of networks.
Command line — Optional features
- Run
scanap -liveto watch networks appear as they’re discovered.
Exploring a network
Once you connect to a network, you can discover devices and services on it.
Connect to a network
- Open Menu → WiFi → Connection → Connect to WiFi. Enter the network name and password when prompted.
- Wait for the connection to complete. The terminal will show status updates.
- To disconnect later, go to Menu → WiFi → Connection → Disconnect.
Connect via command line
- Run
connect "SSID" "password"(use quotes if the name or password has spaces). The terminal will show connection progress and confirm when connected. - Run
connectwith no arguments to reconnect to the last network you used. - Run
disconnectto leave the network.
Find devices on the network
- Open Menu → WiFi → Scanning while connected.
- Choose Scan LAN Devices. You should see a list of devices and services on the network.
Find devices via command line
- Run
scanlocalto discover devices and services. You should see hostnames, service types, and ports. - Run
scanarpto find all active devices on the network. You should see IP addresses and device information.
Check for open ports
- From the UI, select a device with Select LAN, then choose Scan Open Ports. You should see which ports are responding on that device.
- From the command line, run
scanports <ip>to check a specific device. You should see open ports listed. Addallto check all ports, orstart-end(like20-1024) for a range. - Run
scanssh <ip>to specifically check if a device has SSH enabled.
Full environment sweep
Scan all wireless activity at once and save results to your SD card.
What it captures
- WiFi Access Points: Name, MAC, channel, frequency, signal strength, security type, cipher, 802.11 mode, WPS status
- WiFi Clients: MAC address and associated AP
- BLE Devices: Flippers, GATT devices, and raw BLE packets
- 802.15.4 Packets: Zigbee/Thread traffic (ESP32-C5 and C6 only)
- GPS Coordinates: Location data for each entry (if GPS module connected)
Run a sweep from the UI
- Open Menu → WiFi → Scanning → Sweep. The device will run through each scan phase automatically.
- Wait for all phases to complete. Progress is shown on screen.
- Find results in
/ghostesp/sweeps/sweep_N.csvon your SD card.
Run a sweep from command line
- Run
sweepto start with default timing (10 seconds per phase). - Customize timing with flags:
sweep -w 15for 15-second WiFi scanssweep -b 20for 20-second BLE scanssweep -w 15 -b 20to set both
- Run
sweep -hto see all options.
CSV output format
Results are saved in a format similar to Kismet/Wigle exports:
Type,Name,MAC,Associated MAC,Channel,Frequency,RSSI,Auth,Cipher,802.11,WPS,Latitude,Longitude,Altitude,First Seen
WiFi AP,MyNetwork,AA:BB:CC:DD:EE:FF,,6,2437,-45,WPA2,CCMP,ax/n/g/b,No,37.774929,-122.419416,10.5,2025-12-09 17:30:00
WiFi Client,,11:22:33:44:55:66,AA:BB:CC:DD:EE:FF,,,,,,,37.774929,-122.419416,10.5,2025-12-09 17:30:00
Troubleshooting
- No networks found: Move closer to wireless routers and try scanning again.
- “You Need to Scan APs First” message: Run a scan before trying to select a network.
- Live scan stops right away: Stop any active Wi-Fi attacks or portals from the menu and try again.
FAQ
- Can I scan while connected to a network? Yes. The device will pause the connection briefly to scan, then resume.
- Where do the device vendor names come from? GhostESP looks up the device’s hardware address in a built-in database to identify the manufacturer.
