How andrvv/gapcast works
Gapcast is a Linux 802.11 scanner, analyzer, and packet injector. Users launch it with interface, channel, filter, capture, or restore options; the runtime prepares the interface, captures and analyzes packets, and presents network data. Its other documented capabilities include deep scanning with distance estimates, an injection table, and an Evil Twin captive portal. The main control flow and packet processing are visible in excerpts; portal integration and some feature details are documented only in the README, so those links rely on that evidence.
Main entry points: gapcast.go Gapcast runtime · RadarRSSI.go Distance estimation · models Portal templates · monitorchoice.go Monitor mode
Components 17
Runtime and scanning
- Gapcast runtime
gapcast.go - Runtime utilities
libs/libs.go - Checks and validation
libs/checker.go - Live capture
gapcast.go - PCAP restore and save
gapcast.go
Analysis and radar
- Device analysis
gapcast.go - Deep scanning
gapcast.go - Distance estimation
libs/RadarRSSI/RadarRSSI.go - Radio parsing
libs/RadarRSSI/libs/radiotap.go
Injection and portal
- Injection table
gapcast.go - 802.11 packet crafting
libs/injpacket/packets.go - Portal templates
EvilTwin/models - Credential capture
EvilTwin/models/GoogleLogIn/html/post2.php
Interface support
- Monitor mode
libs/mon/monitorchoice.go - Driver commands
libs/mon/chipset/chipset.go
Other components
- Operator
- Wireless interface
Connections 18
- Operator → Gapcast runtime: starts with options
README.md - Gapcast runtime → Runtime utilities: uses utilities
gapcast.go - Gapcast runtime → Checks and validation: checks inputs
gapcast.go - Gapcast runtime → Monitor mode: prepares interface
- Monitor mode → Driver commands: selects commands
libs/mon/monitorchoice.go - Driver commands → Wireless interface: configures mode
libs/mon/chipset/chipset.go - Gapcast runtime → Live capture: runs scan
gapcast.go - Live capture → Device analysis: updates device data
gapcast.go - Live capture → PCAP restore and save: writes packets
gapcast.go - Gapcast runtime → PCAP restore and save: loads saved capture
gapcast.go - Gapcast runtime → Deep scanning: runs target scan
gapcast.go - Deep scanning → Distance estimation: estimates distance
gapcast.go - Distance estimation → Radio parsing: parses radiotap
libs/RadarRSSI/RadarRSSI.go - Operator → Injection table: selects attack
README.md - Gapcast runtime → Injection table: handles injection
gapcast.go - Injection table → 802.11 packet crafting: crafts frames
- Injection table → Portal templates: starts Evil Twin
README.md - Portal templates → Credential capture: submits credentials
README.md