How rogandawes/p4wnp1_aloa works
P4wnP1 A.L.O.A. is a Raspberry Pi–based offensive appliance, configured through a CLI or browser client. Both clients issue gRPC requests to the core service; the service applies settings across USB, HID, WiFi, Bluetooth, networking, and automation, while templates and events support persistence and live state updates. The graph preserves README-documented capabilities even where implementation excerpts are unavailable; those links are cited to the README rather than presented as inspected source calls.
Main entry points: rpc_server.go gRPC server · service.go Service coordinator · SubSysNetworkManager.go Network interfaces · mvuexGlobalState.go Web state and views
Components 23
Configuration clients
- CLI commands
cli_client/cmd_root.go - CLI RPC client
cli_client/rpc_client.go - Web application
web_client/main.go - Web state and views
web_client/mvuexGlobalState.go - Web RPC client
web_client/rpcClient.go
Core control service
- Service process
cmd/P4wnP1_service/P4wnP1_service.go - Service coordinator
service/service.go - gRPC server
service/rpc_server.go
Device capabilities
- USB gadget
service/SubSysUSB.go - HID scripting
hid/controller.go - WiFi
service/wifi.go - Bluetooth
service/bluetooth/controller.go - Network interfaces
service/SubSysNetworkManager.go - DHCP services
service/dhcp.go - GPIO
service/pgpio/p4wnp1gpio.go
State and automation
- Trigger actions
service/SubSysTriggerAction.go - Event manager
service/Event.go - Persistent templates
service/datastore/store.go
Other components
- Operator
- Web browser
- USB host
- BlueZ stack
- Linux networking
Connections 26
- Operator → CLI commands: configures
- CLI commands → CLI RPC client: invokes
- CLI RPC client → gRPC server: calls gRPC
- Web browser → Web application: opens
- Web application → Web state and views: initializes
web_client/main.go - Web state and views → Web RPC client: requests state
- Web RPC client → gRPC server: calls WebSocket gRPC
web_client/rpcClient.go - Service process → Service coordinator: starts
cmd/P4wnP1_service/P4wnP1_service.go - Service coordinator → gRPC server: starts server
service/service.go - gRPC server → USB gadget: configures
- gRPC server → HID scripting: runs scripts
- gRPC server → WiFi: configures
- gRPC server → Bluetooth: configures
- gRPC server → Network interfaces: configures
- Network interfaces → DHCP services: starts DHCP
service/SubSysNetworkManager.go - Network interfaces → Linux networking: configures links
service/SubSysNetworkManager.go - Bluetooth → BlueZ stack: controls stack
- USB host → USB gadget: connects to
- USB gadget → HID scripting: uses HID
service/SubSysUSB.go - Service coordinator → Persistent templates: opens store
service/service.go - gRPC server → Persistent templates: reads and writes
service/rpc_server.go - Service coordinator → Event manager: starts
service/service.go - Service coordinator → Trigger actions: starts listener
service/service.go - Trigger actions → Event manager: reacts to events
- GPIO → Trigger actions: enables physical actions
- Event manager → Web state and views: pushes updates