Ragnar is a fork of the awesome Bjorn project — a Tamagotchi-like autonomous network scanning, vulnerability assessment, and offensive security tool. It runs on a Raspberry Pi with a 2.13-inch e-Paper HAT, as a headless server on Debian-based systems (AMD64/ARM/ARM64) with Ethernet-first connectivity, or on the WiFi Pineapple Pager with full-color LCD display. On servers with 8GB+ RAM, Ragnar unlocks advanced capabilities including real-time traffic analysis and enhanced vulnerability scanning.
[!IMPORTANT] For educational and authorized testing purposes only.
wget https://raw.githubusercontent.com/PierreGode/Ragnar/main/install_ragnar.sh
sudo chmod +x install_ragnar.sh && sudo ./install_ragnar.sh
# On Raspberry Pi: choose between e-Paper HAT, server/headless, or Pineapple Pager deployment.
# On other hardware: choose between server install or Pineapple Pager deployment.
# It may take a while as many packages and modules will be installed. Reboot when it finishes.
For detailed information see the Install Guide. See Release Notes for what's new.
Access Ragnar's dashboard at http://<ragnar-ip>:8000
WiFi Configuration Portal — When Ragnar can't connect to a known network, it creates a WiFi hotspot:
1. Connect to WiFi network Ragnar (password: ragnarconnect)
2. Navigate to http://192.168.4.1:8000
3. Configure your WiFi credentials via the mobile-friendly interface
4. Ragnar will automatically retry known WiFi after some time if the AP is unused
5. Once configured, Ragnar exits AP mode and connects to your network
The portal supports network scanning with signal strength, manual entry for hidden SSIDs, known network management, and one-tap reconnection.
web will be down during wardrive without ap or wifi connection.
RuSense — Camera-Free Surveillance — Turns ordinary 2.4 GHz WiFi into a no-camera sensor: ESP32 nodes read Channel State Information (CSI) to report presence, motion, people-count, and — with a trained model — coarse pose and resting vital signs (breathing / heart rate). Works in the dark and through walls, with security & health modes, a calibration wizard, browser flashing, and a multi-node offline mesh. See RuSense
Network Tools — A built-in network engineer's toolbox in the web UI. Diagnostics: ping, traceroute, MTR, WHOIS, internet speed test, DNS Doctor (resolver / DNSSEC checks), Path-MTU / black-hole probe, captive-portal check, and LAN throughput via iperf3 (client + built-in server). Switch & L2: switch discovery via LLDP / CDPv1v2 / EDP / FDP / SONMP with PoE detection, ARP host scanning, and Locate Port (blinks a switch port so you can find the cable). Interfaces: per-interface link speed/duplex/auto-neg, DHCP-vs-static and VLAN detail, DNS/gateway network identity, and per-interface public IP / ISP-ASN lookup (ISP/WAN detection) for multi-WAN setups. Missing CLI tools install with one click. Co-authored by Solarflere. See Network Tools Guide
Wardriving with GPS recovery — Logs WiFi networks, BLE devices, and cell towers with GPS positions while driving. Exports to WiGLE CSV / KML. Most wardrivers log observations with GPS-at-scan-time and discard the rest; Ragnar logs a GPS breadcrumb track during the session and runs a post-pass that backfills missing positions for any observation seen within 5 minutes of a real GPS point. The interpolation is speed-aware — when endpoint speeds differ (slowing for a tunnel, accelerating out the far side), it uses constant-acceleration math instead of constant-velocity, shifting positions toward whichever endpoint the device actually spent more time near. See Wardriving Guide
Network Scanning — Identifies live hosts and open ports
ragnar user in the Ragnar folder (sudo available), off by default, and gated by login — enable it in Config → Web Terminal only on trusted networks./api/kill) to wipe all databases, logs, and data. See Kill Switchdata/logs/nmap.logragnarRecommendation: Edit ~/.config/labwc/autostart and comment out /usr/bin/lwrespawn /usr/bin/wf-panel-pi & to free up resources, or run sudo pkill wf-panel-pi temporarily.
pager_lib/ (or sourced from PAGERCTL payload)The installer auto-detects your platform and configures everything:
For the full installation walkthrough see Install Guide.
When deployed on systems with 8GB+ RAM, Ragnar automatically unlocks advanced security capabilities.
Fresh installs: The main installer detects 8GB+ RAM and installs advanced tools automatically.
Existing installs: Run the advanced tools installer separately:
bash cd /home/ragnar/Ragnar sudo ./scripts/install_advanced_tools.sh sudo systemctl restart ragnar
Ragnar auto-detects available tools and enables corresponding features in the web interface.
RuSense turns ordinary 2.4 GHz WiFi into a no-camera surveillance system for home, office, and anywhere a lens is unwelcome. ESP32 sensor nodes read WiFi Channel State Information (CSI) — the tiny distortions a moving body imprints on radio waves — and a bundled sensing engine reports presence, motion, people-count, and (with a trained model) coarse pose and resting vital signs. No images are ever captured; it works in the dark and through walls.
sudo ./scripts/install_sensing.sh (runs as ragnar-sensing.service).http://<ragnar-ip>:8000.Powered by RuView (by ruvnet). Full details: RuSense Guide.
A bundled helper script plus dashboard controls make swapping between Ragnar and Pwnagotchi painless:
Run the installer:
bash
cd /home/ragnar/Ragnar
sudo ./scripts/install_pwnagotchi.sh
The script clones pwnagotchiworking into /opt/pwnagotchi, installs dependencies, writes /etc/pwnagotchi/config.toml, and drops a disabled pwnagotchi.service. Re-running is fast — it skips already-installed packages.
Open the web UI → Config tab → Pwnagotchi Bridge → click Switch to Pwnagotchi.
Requirements: - USB WiFi adapter (wlan1) with monitor mode support - Waveshare 2.13" e-Paper HAT V4 for the pwnagotchi face display
Pwnagotchi web UI: http://<same-ip>:8080 (credentials: ragnar / ragnar)
What the installer configures:
- Monitor mode scripts (/usr/bin/monstart, /usr/bin/monstop)
- e-Paper display type (waveshare213_v4) and rotation
- Web UI on port 8080, Pwngrid disabled
- RSA keys, log directories, bettercap integration
Swapping via PiSugar 3 button:
| Button Action | While Ragnar is running | While Pwnagotchi is running |
|---|---|---|
| Single tap | Toggle manual mode | — |
| Double tap | Switch to Pwnagotchi | Switch to Ragnar |
| Long press | Switch to Pwnagotchi | Switch to Ragnar |
A 10-second cooldown prevents accidental double triggers. If PiSugar is not connected, the listener is silently disabled.
Static IP recommended: When switching modes, WiFi may briefly reconnect with a different DHCP IP. Set a static IP:
sudo nmcli con mod "YOUR_WIFI_SSID" ipv4.method manual \
ipv4.addresses "192.168.1.211/24" \
ipv4.gateway "192.168.1.1" \
ipv4.dns "192.168.1.1"
sudo nmcli con up "YOUR_WIFI_SSID"
Or set a DHCP reservation on your router. This only affects wlan0 — the monitor interface (wlan1/mon0) is not changed.
**Service rec
$ claude mcp add Ragnar \
-- python -m otcore.mcp_server <graph>