TCPK.bat
→
powershell -STA -File Start-TCPKGui.ps1
→
Import-Module TCPK
→
WinForms GUI (15 tabs)
Start-TcpkAgentic
→
Import-Module TCPK
→
TcpListener :random-port
→
Loopback SPA (13 tabs)
Start-TcpkMcpServer.ps1
→
Import-Module TCPK
→
stdin/stdout JSON-RPC 2.0
→
11 tools
CLI: Import-Module .\TCPK
→
Invoke-TcpkAudit -Target ...
All 4 surfaces share the same module -- TCPK.psm1 loads Classes/ then Private/ then Public/ (sorted by path). 260 public functions are exported.
TCPK.bat
→
powershell -STA
→
Import-Module TCPK
→
Build WinForms UI
↓
[Run Audit] clicked
→
Start-Job { Invoke-TcpkAudit @params 6>&1 | ForEach-Object {...} }
↓
Job ForEach-Object
→
InformationRecord TCPKFND\t...
→
"LOG\t..." + "FND\t..."
↓
Poll every 150ms (Receive-Job)
→
^LOG\t -> Write-LogLine (log pane)
→
^FND\t -> Add-Finding (live table)
↓
Job completes
→
$lvFindings.Items.Clear()
→
Load findings.json + CVSS enrich
→
Final sorted table
GUI Tabs (15)
Dashboard KPI cards
Findings live table
Recon / Target profile
DLL Mitigation matrix
DLL Signing certs
DLL Decompile Cecil
Exploit / CVE plan
SBOM components
Hex PE overlay
Strings extraction
Intercept proxy
Process Mon live
Asar Electron
Logs / Runtime
Report preview
DLL Decompilation tab triggers Mono.Cecil: Get-TcpkCecilAssembly -> type/method browser -> Get-TcpkMethodIl for IL disassembly + C# decompilation view.
_Decompile.ps1Mono.Cecil bridge (21 functions)
_Finding.ps1New-TcpkFinding factory + CVSS vector
_Cvss40.ps1FIRST.org CVSS v4.0 score engine
_Attack.ps1MITRE ATT&CK technique mapping
_Tasvs.ps1OWASP TASVS v1.8 control mapping
_Identity.ps1App identity terms + name matching
_Expand.ps1Target unwrap (MSI/ZIP/MSIX)
_Intel.ps1Intel report generation
_ExploitGate.ps1Enable/Assert exploit bucket
_PeReader.ps1PE header parser + hardening
_Llm.ps1LLM backend (Ollama/cloud)
_Agentic.ps1Loopback SPA server + API
_WebUi.ps1Web panel HTML builder
_Recon.ps1Endpoint classification + profile
_Js.ps1JS comment stripper
_Xlsx.ps1New-TcpkXlsx Excel builder
_VerifyHint.ps1How-to-verify per RuleId
_SecretRecovery.ps1DPAPI / credential decrypt
_Intercept.ps1HTTP proxy interception
_Entropy.ps1Shannon entropy calculator
_Log.ps1Write-TcpkLog structured logger
_Sweep.ps1Multi-target audit orchestration
_Coverage.ps1Check coverage tracking
_Msix.ps1MSIX manifest parser
+ 27 more: _Agent, _Bypass, _Checklist, _CredVault, _Data, _EcosystemCve, _EnsureDir, _Eol, _HtmlEsc, _Kev, _Launch, _Liveness, _Logger, _ManagedCve, _MemRead, _Nvd, _Osv, _Platform, _Process, _Progress, _Sbom, _SingleFile, _Strings, _TokenInfo, _UriSink, _Version, _WinCrypto