Skip to content

SMB / MSRPC / NTLM

Back to the Command Index

This category covers SMB sessions, NTLM tokens, the Endpoint Mapper, and relay. The CLI normally sees only SMBConnection, while the underlying smb.SMB / smb3.SMB3 hold the dialect and signing key.

SimpleSMBServer supports SMB 2.0.2, 2.1, and 3.1.1. When adding relay support, keep the four boundaries of inbound server, outbound client, attack module, and target state distinct.

CommandSummary
DumpNTLMInfo.pyNegotiates NTLM through SMB or RPC and displays challenge information, SMB settings, time, and related details.
Get-GPPPassword.pyFinds Group Policy Preferences XML locally or on SMB shares, then extracts and decrypts cpassword.
attrib.pyQueries or changes DOS/NTFS attributes of files and directories over SMB.
filetime.pyQueries or changes creation, access, write, and change times for files and directories over SMB.
getArch.pyInfers whether a target host is 32-bit or 64-bit from a connection to its RPC Endpoint Mapper.
karmaSMB.pyStarts a test SMB server that returns a payload based on the share or file name requested by a client.
ntlmrelayx.pyRelays received NTLM authentication to selected targets and runs the corresponding attack module. Supports multiple inbound and outbound protocols.
rpcdump.pyQueries the Endpoint Mapper and lists the RPC interfaces and binding information exposed by a target host.
rpcmap.pyProbes a specified DCE/RPC endpoint for available UUIDs, versions, and opnums through management interfaces or discovery.
sambaPipe.pyPlaces a .so on a share and opens a named pipe to test Samba’s external pipe module loading.
smbclient.pyProvides an interactive shell for SMB shares, directories, files, and ACLs. Also supports batch execution from an input file.
smbserver.pyShares a local directory over SMB. Supports SMB1 and SMB 2.0.2/2.1/3.1.1, NTLM/Kerberos authentication, and read-only settings.
rdp_check.pyChecks whether a specified account can authenticate through RDP/CredSSP.