How probiusofficial/pivothub works
PivotHub is a local FastAPI/SQLite control panel for authorized, multi-layer network labs. The operator’s main workflow is to register or discover hosts, manage shell sessions, probe reachability, deploy and verify proxy links, then track credentials, flags and activity or export a review. The graph also preserves the documented reconnaissance, database, plugin and privilege-escalation capabilities. Relationships are limited to those shown in excerpts or stated in the README; several broader API and service branches are represented by their existing directories because their implementation was not sampled.
Main entry points: shells.py Shell API · api Domain APIs · db.py SQLite state · links.py Link API
Components 21
Application control
- HTTP app
pivothub/app.py - Shell API
pivothub/api/shells.py - Host API
pivothub/api/hosts.py - Link API
pivothub/api/links.py - Domain APIs
pivothub/api - Live updates
pivothub/ws/manager.py - API contracts
pivothub/schemas/common.py
Host sessions
- Session contract
pivothub/session/base.py - Session drivers
pivothub/session
Pivot operations
- Reachability probes
pivothub/service/probe.py - File staging
pivothub/service/filestage.py - Proxy adapters
pivothub/adapters/chisel.py - Relay planning
pivothub/service/relay.py - Remote databases
pivothub/service/dbclient.py - Recon services
pivothub/service/recon.py - Domain services
pivothub/service
Project state
- SQLite state
pivothub/db.py - Domain models
pivothub/models - Local network info
pivothub/localinfo.py
Other components
- Operator
- Lab hosts
Connections 28
- Operator → HTTP app: uses panel
README.md - HTTP app → Shell API: routes requests
pivothub/app.py - HTTP app → Live updates: hosts updates
pivothub/app.py - Shell API → Session contract: executes through
pivothub/api/shells.py - Session drivers → Session contract: implements
pivothub/session/__init__.py - Shell API → SQLite state: reads and writes
pivothub/api/shells.py - Shell API → Live updates: pushes events
pivothub/api/shells.py - Host API → SQLite state: reads and writes
pivothub/api/hosts.py - Host API → Live updates: pushes events
pivothub/api/hosts.py - Link API → Proxy adapters: deploys through
pivothub/api/links.py - Link API → Session contract: uses sessions
pivothub/api/links.py - Link API → Relay planning: plans relays
pivothub/api/links.py - Link API → SQLite state: records links
pivothub/api/links.py - Shell API → Reachability probes: runs probes
pivothub/api/shells.py - Shell API → File staging: stages downloads
pivothub/api/shells.py - File staging → Lab hosts: serves staged files
pivothub/service/filestage.py - Proxy adapters → Lab hosts: deploys tunnel client
pivothub/adapters/chisel.py - Reachability probes → Session contract: executes probes
pivothub/service/probe.py - Domain APIs → Domain services: uses services
pivothub/api/shells.py - Domain APIs → SQLite state: persists project data
pivothub/api/shells.py - Domain APIs → API contracts: uses contracts
pivothub/api/shells.py - SQLite state → Domain models: maps records
pivothub/db.py - SQLite state → Local network info: seeds local host
pivothub/db.py - Shell API → API contracts: uses contracts
pivothub/api/shells.py - Link API → API contracts: uses contracts
pivothub/api/links.py - Domain APIs → Remote databases: supports DB panel
README.md - Domain APIs → Recon services: supports reconnaissance
README.md - Domain APIs → Domain services: supports plugins and review
README.md