mirror of
https://github.com/sresarehumantoo/wsmancer.git
synced 2026-11-24 05:49:16 +01:00
2f1dbda6e1
An interactive WinRM shell for offensive Windows work, speaking the
PowerShell Remoting Protocol end to end. Command results come back as typed
objects (structured JSON on demand), and it authenticates against stock,
locked-down listeners: NTLM and Kerberos with WinRM message sealing that is
integrity-checked in both directions, pass-the-hash, and certificate auth.
Highlights:
- -o json structured output; -x one-shot and -x - batch/session mode over
one connection, built for automation as well as a prompt
- context-aware Tab completion (local/remote paths, the target's own cmdlet
names, and parameters/values via the target's TabExpansion2), ghost text
- a session that recovers a dropped connection, and detects a shell the
target has forgotten
- the full evil-winrm post-ex set: -s scripts + menu, services,
invoke-binary, donut-loader, bypass-4msi
- SOCKS5 pivoting, TLS verification (--ca-cert / --accept-fingerprint /
--insecure), client certs / mutual TLS
Every claim is live-verified against a real WinRM target; see
docs/verification.md. A Go port of Hackplayers/evil-winrm (LGPL-3.0), with all
20 of its flags and every post-ex command; PSRP transport builds on a patched
smnsjas/go-psrp (MIT), vendored under go-psrp-fork/.
22 lines
746 B
Cheetah
22 lines
746 B
Cheetah
# Template. scripts/get-tickets.sh renders this into lab/krb5.conf with the
|
|
# realm and KDC of the box you are actually testing against; verify-matrix.sh
|
|
# reads the rendered copy. Nothing here is edited by hand, and no lab's realm is
|
|
# ever committed.
|
|
#
|
|
# Three placeholders, spelled with at-signs around each name (they are not
|
|
# written out here, or rendering would substitute this comment too): REALM is
|
|
# the realm upper-case, realm is the same lower-case, and KDC is the KDC as a
|
|
# name or an address.
|
|
[libdefaults]
|
|
default_realm = @REALM@
|
|
dns_lookup_kdc = false
|
|
dns_lookup_realm = false
|
|
[realms]
|
|
@REALM@ = {
|
|
kdc = @KDC@
|
|
admin_server = @KDC@
|
|
}
|
|
[domain_realm]
|
|
.@realm@ = @REALM@
|
|
@realm@ = @REALM@
|