How styayur/wutnet works
WHUT-Net is a single-file PowerShell authenticator for the WHUT captive portal. Its principal workflow probes connectivity, discovers and validates the portal, establishes a cookie/CSRF session, checks account state, verifies the trusted network profile, submits the DPAPI-protected credential when needed, and verifies recovery. Setup, diagnostics, status, and scheduled automatic login are additional user-facing capabilities. All implementation nodes point to the sole source file; relationships are based on the README’s documented workflow and capabilities because no source excerpts were provided.
Main entry points: whut-net.ps1 Command handling
Components 22
Commands and setup
- Command handling
whut-net.ps1 - Account setup
whut-net.ps1 - Local configuration
whut-net.ps1
Portal discovery
- Internet probe
whut-net.ps1 - Portal discovery
whut-net.ps1 - Host/path validation
whut-net.ps1 - nasId extraction
whut-net.ps1 - API base discovery
whut-net.ps1
Authentication
- CSRF/cookie session
whut-net.ps1 - Account status check
whut-net.ps1 - Trusted profile check
whut-net.ps1 - DPAPI credential
whut-net.ps1 - Portal login
whut-net.ps1 - Recovery verification
whut-net.ps1
Automation and operations
- Scheduled task setup
whut-net.ps1 - Bounded local logging
whut-net.ps1 - Diagnostics
whut-net.ps1 - Uninstall cleanup
whut-net.ps1
Other components
- Windows user
- Task Scheduler
- Internet service
- WHUT portal
Connections 28
- Windows user → Command handling: runs command
README.md - Command handling → Account setup: dispatches setup
README.md - Account setup → Local configuration: saves settings
README.md - Account setup → DPAPI credential: protects password
README.md - Command handling → Internet probe: checks connectivity
README.md - Internet probe → Internet service: probes access
README.md - Internet probe → Portal discovery: discovers when captive
README.md - Portal discovery → WHUT portal: locates portal
README.md - Portal discovery → Host/path validation: validates destination
README.md - Host/path validation → nasId extraction: permits extraction
README.md - nasId extraction → API base discovery: enables API discovery
README.md - API base discovery → CSRF/cookie session: configures session
README.md - CSRF/cookie session → Account status check: checks account
README.md - Account status check → Trusted profile check: checks offline access
README.md - Trusted profile check → DPAPI credential: allows credential use
README.md - DPAPI credential → Portal login: supplies password
README.md - Portal login → WHUT portal: posts authentication
README.md - Portal login → Recovery verification: checks recovery
README.md - Recovery verification → Account status check: rechecks account
README.md - Recovery verification → Internet service: verifies access
README.md - Command handling → Diagnostics: dispatches diagnostics
README.md - Windows user → Scheduled task setup: requests installation
README.md - Scheduled task setup → Task Scheduler: registers task
README.md - Task Scheduler → Command handling: invokes auto
README.md - Command handling → Bounded local logging: writes bounded log
README.md - Windows user → Uninstall cleanup: requests uninstall
README.md - Uninstall cleanup → Task Scheduler: removes task
README.md - Uninstall cleanup → Local configuration: removes local state
README.md