Skip to content

Conversation

@azoxlpf
Copy link

@azoxlpf azoxlpf commented Jan 11, 2026

Summary

This PR adds the -socks option to enable single SMB connection reuse across all pipes. This is required when using psexecsvc through SOCKS proxies (e.g., from ntlmrelayx).

SOCKS mode (-socks):

  • All pipes share a single SMB connection from the initial RPC transport
  • Pipes are connected sequentially to avoid conflicts
  • Output is read synchronously after each command with optimized timings

Note: The interactive shell in SOCKS mode may not be as fluid as in normal mode due to connection sharing limitations, but this implementation provides the best possible experience given the constraints.

Screenshots

Ntlmrelayx socks :

1

Psexecsvc -socks :

2

@Dfte
Copy link
Collaborator

Dfte commented Jan 28, 2026

Thank you for the really good PR my friend ;)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants