Repository navigation
v1.2.0
What's Changed
New Features
-
!shares- SMB Share Scout: Self-contained share enumeration running entirely inside the remote PowerShell session. Discovers local shares viaWin32_Share, probes ~20 common UNC paths for read/write access, scans ACLs for overly permissive entries (Everyone,Authenticated Users), detects sensitive files in SYSVOL/NETLOGON including GPPcPasswordauto-detection (CVE-2014-1812), and reports open files and active SMB sessions. Supports-qfor quick local-only mode and explicit[HOST..]targeting with AD-based auto-discovery. -
!sessions- Session & Network Snapshot: Active logon session enumeration viaWin32_LogonSession/Win32_LoggedOnUserwith session type classification (Interactive/RDP/Network/Service). Covers RDP client MRU and saved credentials from registry, Kerberos ticket cache (klist) with TGT flagging, established TCP connections with process attribution and external IP detection, listening port inventory with service labels, named pipe exposure with sensitive pipe flagging (lsass,spoolss,samr,epmapper...), and SYSTEM-level scheduled tasks. Supports-qfor logon sessions + RDP MRU only.
Hardening (3584ce5)
run_sync- Memory Cap: Enforced a 1 MB output ceiling on synchronous command accumulation. Streams exceeding the limit are truncated and the runspace is interrupted to prevent OOM from anomalous remote endpoints.!download- Stream Guard:!downloadchunk accumulator now enforces a configurable memory cap (PWNRM_MAX_DL, default 256 MB). Overflow raises aRuntimeErrorand surfaces immediately rather than crashing silently.- SPNEGO/Kerberos - Exception Hardening: Replaced bare
except:clauses in NTLM and Kerberos unwrap routines withexcept Exception:to prevent silent swallowing of fatal decryption failures and RC4 keystream desynchronization. - Session Directory - Windows ACL:
_PWNRM_DIRnow explicitly strips inherited ACEs and grants exclusive(OI)(CI)Frights to the current user viaicaclson Windows, mirroring the existing0o700POSIX enforcement.
Refactor (64da5ba)
- Transport - Request Timeouts: Enforced an explicit
timeout=30across all transport adapters (BasicTransport,ClientCertTransport,SPNEGOTransport,KerberosTransport,CredSSPTransport) to prevent uninterruptible client hangs on unresponsive targets. - Utils - Certificate String Normalization:
get_server_certificate()now strips PEM headers and all whitespace in a singlere.sub()pass, correctly handling cross-platform line endings (\r\n) that the previousstr.replace()approach missed. - Utils -
load_pfx()Windows ACL: PFX temp directory now applies the sameicaclsexclusive-access hardening as_PWNRM_DIR, consistent across platforms.
Full Changelog: v1.1.1...v1.2.0