MCPcopy Create free account
hub / github.com/PierreGode/Ragnar

github.com/PierreGode/Ragnar @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
6,937 symbols 24,714 edges 257 files ⚖ MIT 2,536 documented · 37% ● updated 5d agoos-v1.12.0 · 2026-11-19★ 990

Browse by type

⨍ Functions 6,046◇ Types & classes 587↳ Endpoints 304
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Ragnar image

ko-fi GitHub stars Python Status License: MIT Discord

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, on the M5Stack CardputerZero (a Pi CM0 with a built-in 1.9" LCD and keyboard), 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 enhanced vulnerability scanning and parallel scanning.

[!IMPORTANT] For educational and authorized testing purposes only.

This README is a map, not a manual — each feature gets a couple of sentences and a link to its full guide in docs/. Start with the documentation index if you'd rather browse.


Quick Install

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 e-Paper HAT, TFT LCD, server/headless, Pineapple Pager, or Docker container.
# On other hardware: choose server install, Pineapple Pager, or Docker container.
# It may take a while as many packages and modules will be installed. Reboot when it finishes.

Prefer containers? Run the headless web UI on any Linux host with docker compose up -d --build, then open http://:8000. Pi-only hardware (e-Paper, GPS, SDR, Wi-Fi monitor mode) isn't available in a container — see the Docker Guide.

Don't want to run the installer at all? Flash Ragnar OS — a prebuilt Raspberry Pi image with Ragnar already installed and enabled. Write it with Raspberry Pi Imager, boot, open the web UI. For an offensive/red-team build with onboard-Wi-Fi monitor mode and the full toolset, flash Ragnar OS Ulfberht (built on a Kali ARM base). For the M5Stack CardputerZero there is its own image, with the screen and keyboard working from the first boot.

More: Install Guide · Ragnar OS image · Ragnar OS Ulfberht · Releasing OS images · AP Mode / getting on a network · Updating Ragnar · Releases (per-PR log) · Release Notes.


🌐 Web Interface

Access Ragnar's dashboard at http://<ragnar-ip>:8000 — real-time discovery and vulnerability scanning, a multi-source threat-intel dashboard, file management, system monitoring, and hardware profile auto-detection (Pi Zero 2W, Pi 4, Pi 5).

WiFi Configuration Portal — when Ragnar can't reach a known network it raises a hotspot: connect to WiFi Ragnar (password ragnarconnect), open http://192.168.4.1:8000, and enter your credentials via the mobile-friendly portal. It supports scanning with signal strength, hidden-SSID entry, known-network management, and one-tap reconnection, then exits AP mode once configured. (The web UI is down during a wardrive with no AP or WiFi connection.)


🌟 Features

Every feature below has a full guide in docs/. Short version here, details behind the link.

Core scanning & offense

  • Network scanning, vulnerability assessment & attacks — the autonomous scan-and-act loop : host/port discovery (with a per-host Ignore blacklist), an IP Range Scan that sweeps a CIDR or start-end range and lists the live hosts (DNS/NetBIOS name, MAC + vendor, response time; Angry IP Scanner style), Nmap-based vulnerability assessment. Every nmap run is logged. See Scanning & Actions.
  • Distro-aware CVE check — opt-in: reads the Debian/Ubuntu patch level from the service banner (OpenSSH 9.2p1 Debian 2+deb12u10) and checks the distro security tracker, so CVEs the distro already fixed are tagged and hidden instead of burying the ones that are really open. See Scanning & Actions.
  • Advanced vulnerability scanning — the Adv Scan tab: Nuclei, Nikto, SQLMap, WhatWeb and Nmap vuln scripts run on any board with nmap; OWASP ZAP and parallel scanning need 8GB+ RAM. RAM-gated scanners are delegated to a capable mesh peer instead of dead-ending. See Advanced Vulnerability Scanning.
  • Multi-source threat intelligence — real-time fusion from CISA KEV, NVD CVE, AlienVault OTX, and MITRE, used to prioritize findings. See Scanning & Actions.
  • AI-powered analysis — security summaries, vulnerability prioritization and remediation advice, with support for self-hosted / OpenAI-compatible endpoints (Ollama, LocalAI, vLLM, LM Studio) so inference can stay on your hardware. Includes a dashboard chat assistant that answers from docs/, reads your results, and starts scans once you approve them. See AI Integration.
  • Four languages — the web UI and every AI answer in English, Spanish, French or German, switched live from Config > System. See Languages.
  • Traffic analysis — live tcpdump capture with top-talkers, protocol mix, DNS logging, and detection of port scans, DNS tunnelling and C2 beacons; also drives passive host discovery. Detection-only; runs on any board (Pi Zero 2W included). See Traffic Analysis.

Network defense & authority verification

  • Authority Verification across the stack — is the claimed root bridge / gateway / DNS resolver / DHCP server / routing neighbour / SMB server genuine or an impostor? A network engineer's toolbox (Diagnostics — every module sorted by OSI layer, L7 to L1 — and Interfaces) plus a detection-only passive watcher suite spanning L2→L7 (STP/DTP/CDP/VTP/MRP/LACP/BFD/PTP/SR-MPLS/IPsec-IKE/DNS-Watch/FHRP/OSPF/EIGRP/IS-IS/BGP/SMB/Relay/RPC/LDAP/SSH/Telnet/IGMP-MLD/NDP/ICMP/NTP/SNMP/TLS/Cert — most dual-stack IPv4+IPv6, with cross-protocol D(HE)at / SWEET32 crypto-attack coverage), passive vendor CVE guards (Cisco, Juniper, Arista, Comware, MikroTik, Aruba, APC / Schneider NMC Ripple20, Vertiv Liebert power cards, and a Dell OS10 daemon), a scheduled Network Integrity Monitor, and IPv6 RA Guard. Co-authored by Solarflere. Full details in the Authority Verification Guide; how each module is tested for accuracy is in Testing Tiers.
  • Watchtower — unifies the standalone watcher daemons into one normalized, deduped alert feed with a single push-notification path. See Watchtower.
  • Push Notifications — alerts delivered via Pushover and/or Slack (incoming webhook). See Push Notifications.
  • Asset Inventory & SIEM forwarding — turns the flat hosts table into a change-aware inventory (new device / IP move / OUI change / offline, with owner/criticality/authorized tags and rogue-device signatures), lets you permanently ignore noisy devices, and ships every alert to syslog/CEF/LEEF, Splunk HEC, Elasticsearch/OpenSearch, or a JSON/Slack webhook. Host liveness unions an arp-scan sweep on the LAN interface (wired or wireless) with the kernel neighbour table, so a single missed broadcast never flaps the whole target list Offline. See Asset Inventory and SIEM Forwarding.
  • Incident correlation — fuses the alert stream into named cross-site attack-chain incidents. See Incident Correlation.

Wireless & RF

  • WiFi Spectrum Analyzer — a passive tri-band (2.4/5/6 GHz, up to Wi-Fi 7) RF troubleshooter: interactive spectrum graph, per-AP inspector, interference/DFS flags, coverage rings, a walk-around heatmap, printable survey report, plus Bluetooth, Zigbee and BLE Watch (nRF-sniffer advertising + clone/spoof/flood flags) overlays and a HackRF true-RF waterfall. See WiFi Analyzer and the RoomScan floor-plan tracer.
  • Sub-GHz RF instrument (RTL-SDR / HackRF / ESP-SDR) — a real spectrum analyser in the browser: real-time IQ waterfall with adjustable display range, wheel/drag zoom, markers with Δ and peak search, band-plan labels and signal identification, dBm calibration, noise-print subtraction, limit lines with pass/fail alerts into Watchtower, unattended band surveys with reports, RSSI direction finding across mesh units, mesh/LPWAN band overlays (Z-Wave, Meshtastic, MeshCore, LoRaWAN, Wi-Fi HaLow, Zigbee Suzi), CSV/SigMF export and a listen bar (FM/NFM/AM/SSB/CW). An ESP-SDR node — any ESP32 flashed with the ESP-SDR firmware — adds a third live panel over USB (on-chip FFT spectra, ~2.2–2.7 GHz on an ESP32-S3), no dedicated SDR hardware needed; its TCXO-less crystal is trimmed by having a nearby HackRF briefly transmit a known pilot tone the ESP locks onto (sub-ppm, spur-proof). See RF Waterfall, the capability guide and SDR / Sub-GHz. Detectors (peak/RMS/avg), the RTL-SDR centre spike hidden by offset tuning, overload and image checks, mask-triggered capture with a pre-trigger buffer, ACPR/spur/harmonic measurements, geotagged SigMF recordings, an on-box Signal Analyzer that opens any recording for spectrogram/measurement/demod/decode plus a whole-capture Spectrum Survey (occupancy heatmap + a measured carrier inventory with duty cycle, burst count, SNR and CSV/annotation export), and the whole instrument is scriptable over HTTP (API). A self-healing watcher recovers a stuck or silent dongle by power-cycling its USB port and resuming the sweep, and says so plainly when the dongle, cable or port is at fault.
  • Meshtastic mesh — read a USB Meshtastic node (node DB, positions, messages, send over LoRa) and/or the public MQTT Internet feed with no node, on a node list and a full-screen map; a Region picker narrows the MQTT feed to one region (EU, US, ANZ, …) or a custom topic. The node list filters/sorts the roster and each node has actions — message it, focus it on the map, and trace route to see the LoRa hops (the jumps) with per-link SNR. See SDR / Sub-GHz.
  • WiFi Defense (802.11 WIDS) — passive wireless intrusion detection: deauth/disassoc & beacon floods, rogue APs / evil twins, KARMA/MANA, Wi-Fi Pineapple / PineAP-family rogue APs (Mark VII/Enterprise/Pager), and a client-isolation observer, with a printable WIDS incident report. The continuous monitor is receive-only; an opt-in PineAP active-probe test is the one action that transmits, and only when you run it. Its daemon sibling wifiwatch extends this to the WPA handshake layer (PMKID, downgrade, PNL leakage). See WiFi Defense.
  • BLE Watch (Bluetooth Low Energy monitor) — the BLE counterpart to the WIDS: passive, detection-only, driven by an external nRF51 / nRF52 sniffer (Adafruit Bluefruit LE Sniffer, nRF52840 dongle), found by the firmware answering on the port, so a look-alike Bluefruit LE Friend, or an nRF52840 dongle still on Nordic's Connectivity firmware, is named with the fix rather than silently ignored. Live capture uses the bundled Nordic nRF Sniffer extcap, so there is nothing extra to install. Flags advertising-layer impersonation (device & beacon clones, two radios sharing one address), beacon spoofing and GATT service masquerade, advertising floods and BLE-spam tooling (Flipper / "Sour Apple" / Fast-Pair / Swift-Pair), and the connection-layer abuse the sniffer can see when it follows a link (CONNECT_IND races, version swaps, Just-Works pairing downgrade, forced re-pair). Device-gated in the web UI; HIGH/CRITICAL findings reach Watchtower. See blewatch.
  • Wardriving with GPS recovery — logs WiFi/BLE/cell with GPS positions, exports WiGLE CSV / KML and a printable A–F security-graded survey, uploads sessions (manually or automatically once back online) to WiGLE, WDGWars and Wardrift, and backfills missing positions with speed-aware interpolation. No GPS receiver? The Ragnar Mobile app can feed the phone's GPS to the unit during a drive. Battery-less u-blox pucks get an assisted start (last-known position, NTP time and their own saved almanac/ephemeris) so a cold boot fixes like a warm one. Solo drives on a Piglet come in over USB: plug it in and every finished drive on its SD card is [pulled a

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 3,466
Function 2,580
Class 587
Route 304

Languages

Python75%
TypeScript25%
C++1%

Modules by API surface

webapp_modern.py795 symbols
web/scripts/ragnar_modern.js691 symbols
web/scripts/ragnar_modern.min.js616 symbols
pager_lib/pyasn1/type/univ.py264 symbols
network_diagnostics.py119 symbols
pager_lib/smb/smb_structs.py118 symbols
advanced_vuln_scanner.py118 symbols
pager_lib/smb/base.py115 symbols
pager_lib/getmac/getmac.py105 symbols
wardriving.py100 symbols
wifi_manager.py82 symbols
pager_lib/smb/smb2_structs.py82 symbols

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add Ragnar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page