Skip to content

Commit 382821a

Browse files
committed
module header comment, drop class docstring
1 parent 2e06677 commit 382821a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

nxc/helpers/rpc.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
13
import contextlib
24

35
from impacket.dcerpc.v5 import transport
46
from impacket.dcerpc.v5.rpcrt import RPC_C_AUTHN_GSS_NEGOTIATE
57

68

79
class NXCRPCConnection:
8-
"""Centralised DCE/RPC connection factory for NetExec.
9-
10-
Reuses the existing SMB session when available so that delegated
11-
Service Tickets (S4U2Proxy) are automatically inherited.
12-
"""
13-
1410
def __init__(self, connection, force_tcp=False):
1511
self.connection = connection
1612
self.force_tcp = force_tcp

0 commit comments

Comments
 (0)