We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e06677 commit 382821aCopy full SHA for 382821a
1 file changed
nxc/helpers/rpc.py
@@ -1,16 +1,12 @@
1
+# DCE/RPC over SMB/TCP using the NXC connection's creds; reuse SMB when already
2
+# logged in so Kerberos delegation (e.g. S4U2Proxy ST) applies to pipe RPC too.
3
import contextlib
4
5
from impacket.dcerpc.v5 import transport
6
from impacket.dcerpc.v5.rpcrt import RPC_C_AUTHN_GSS_NEGOTIATE
7
8
9
class NXCRPCConnection:
- """Centralised DCE/RPC connection factory for NetExec.
-
10
- Reuses the existing SMB session when available so that delegated
11
- Service Tickets (S4U2Proxy) are automatically inherited.
12
- """
13
14
def __init__(self, connection, force_tcp=False):
15
self.connection = connection
16
self.force_tcp = force_tcp
0 commit comments