mirror of
https://github.com/jfjallid/go-smb
synced 2026-06-08 15:02:50 +00:00
cb9f559549
Add the relay/ package: listen for inbound SMB or HTTP NTLM authentications, forward them to one or more upstream targets (SMB, HTTP/S, LDAP/S), pool the resulting authenticated sessions, and optionally expose the pool to local tools through a SOCKS5 proxy. Provides RelayServer (long-running multi-target listener with a session pool, post-auth actions and optional fake-server handoff) and RelayClient (one-shot listener returning a single authenticated *smb.Connection), replacing the retired in-package smb.NewRelayConnection. Add the smb.Connection hooks the relay drives: MarkAuthenticated promotes a manually-driven SessionSetup to authenticated state, and SendRawPDU forwards an opaque SMB2 PDU on a pooled connection (re-stamping MessageID and applying signing/encryption).