rpcclient -U "" 192.168.1.10Connects to the target RPC service using a null session without authentication.
Samba’s MS-RPC client. Queries domain users, groups, password policies and SIDs over SMB, often with a null or low-privilege session.
sudo apt install smbclientrpcclient -U "" 192.168.1.10Connects to the target RPC service using a null session without authentication.
rpcclient -U "" -N 192.168.1.10Connects using a null session and explicitly suppresses the password prompt.
rpcclient -U "%" 192.168.1.10Attempts to connect with a blank username and blank password shorthand.
rpcclient -U "user" 192.168.1.10Connects specifying a username and prompts interactively for the password.
Example
rpcclient -U "administrator" 192.168.1.10rpcclient -U "user%password" 192.168.1.10Connects using a username and password provided inline for automation.
Example
rpcclient -U "admin%Password123" 192.168.1.10rpcclient -W WORKGROUP -U "user%pass" 192.168.1.10Authenticates to a specific workgroup or domain controller.
Example
rpcclient -W CORP -U "jsmith%Summer2023" 10.10.10.5rpcclient -k 192.168.1.10Uses Kerberos authentication instead of NTLM (requires valid ticket).
Example
rpcclient -k dc.example.localrpcclient --pw-nt-hash "hash" -U "user" 192.168.1.10Performs a Pass-the-Hash attack by authenticating with an NT hash.
Example
rpcclient --pw-nt-hash "aad3b435b51404eeaad3b435b51404ee:8846f7eaee8fb117ad06bdd830b7586c" -U "Administrator" 192.168.1.10rpcclient -I 192.168.1.10 target_netbios_nameForces the destination IP address while resolving a specific NetBIOS name.
Example
rpcclient -I 192.168.1.10 FILESERVER01rpcclient -p 445 192.168.1.10Connects explicitly over SMB port 445 (TCP).
rpcclient -p 139 192.168.1.10Connects explicitly over NetBIOS Session port 139 (TCP).
rpcclient -c "command" 192.168.1.10Executes a single RPC command non-interactively and exits.
Example
rpcclient -U "" -N -c "srvinfo" 192.168.1.10rpcclient -c "cmd1; cmd2" 192.168.1.10Executes multiple RPC commands in sequence separated by semicolons.
Example
rpcclient -U "" -N -c "srvinfo; netshareenum" 192.168.1.10rpcclient -c "srvinfo" 192.168.1.10Retrieves basic server information including OS version and server type.
Example
rpcclient -U "" -N -c "srvinfo" 192.168.1.10rpcclient -c "srvinfo 101" 192.168.1.10Retrieves Level 101 server information for detailed versioning.
Example
rpcclient -U "" -N -c "srvinfo 101" 192.168.1.10rpcclient -c "netsessenum" 192.168.1.10Lists active sessions established by users on the target machine.
Example
rpcclient -U "admin%pass" -c "netsessenum" 192.168.1.10rpcclient -c "netfileenum" 192.168.1.10Lists files currently opened by remote users.
Example
rpcclient -U "admin%pass" -c "netfileenum" 192.168.1.10rpcclient -c "netdiskenum" 192.168.1.10Enumerates physical disk drives associated with shares.
Example
rpcclient -U "admin%pass" -c "netdiskenum" 192.168.1.10rpcclient -c "dsroledominfo" 192.168.1.10Displays the role of the server within the domain (e.g., PDC, Backup, Member).
Example
rpcclient -U "" -N -c "dsroledominfo" 192.168.1.10rpcclient -c "lsaquery" 192.168.1.10Queries the LSA policy handle to retrieve the Domain SID and Name.
Example
rpcclient -U "" -N -c "lsaquery" 192.168.1.10rpcclient -c "lookupnames username" 192.168.1.10Resolves a username to its corresponding SID (Security Identifier).
Example
rpcclient -U "" -N -c "lookupnames administrator" 192.168.1.10rpcclient -c "lookupsids SID" 192.168.1.10Resolves a specific SID back to its username or group name.
Example
rpcclient -U "" -N -c "lookupsids S-1-5-21-12345-67890-500" 192.168.1.10rpcclient -c "enumprivs" 192.168.1.10Enumerates all privileges supported by the system's LSA.
Example
rpcclient -U "" -N -c "enumprivs" 192.168.1.10rpcclient -c "enumtrusts" 192.168.1.10Lists trusted domains and their SIDs.
Example
rpcclient -U "" -N -c "enumtrusts" 192.168.1.10rpcclient -c "enumacctrights" 192.168.1.10Enumerates privileges assigned to accounts.
Example
rpcclient -U "" -N -c "enumacctrights" 192.168.1.10rpcclient -c "getusername" 192.168.1.10Returns the username of the current authenticated session context.
Example
rpcclient -U "" -N -c "getusername" 192.168.1.10rpcclient -c "enumdomusers" 192.168.1.10Lists all domain users with their RIDs.
Example
rpcclient -U "" -N -c "enumdomusers" 192.168.1.10rpcclient -c "querydispinfo" 192.168.1.10Lists users with full names and descriptions (often works when enumdomusers fails).
Example
rpcclient -U "" -N -c "querydispinfo" 192.168.1.10rpcclient -c "querydispinfo2" 192.168.1.10Alternative query info level 2 for user enumeration.
Example
rpcclient -U "" -N -c "querydispinfo2" 192.168.1.10rpcclient -c "querydispinfo3" 192.168.1.10Alternative query info level 3 for user enumeration.
Example
rpcclient -U "" -N -c "querydispinfo3" 192.168.1.10rpcclient -c "enumdomgroups" 192.168.1.10Lists all global domain groups and their RIDs.
Example
rpcclient -U "" -N -c "enumdomgroups" 192.168.1.10rpcclient -c "enumalsgroups domain" 192.168.1.10Enumerates alias (local) groups, often used with 'builtin' to find Administrators.
Example
rpcclient -U "" -N -c "enumalsgroups builtin" 192.168.1.10rpcclient -c "queryuser RID" 192.168.1.10Retrieves detailed account information (logon time, expiration, path) for a user RID.
Example
rpcclient -U "" -N -c "queryuser 500" 192.168.1.10rpcclient -c "queryusergroups RID" 192.168.1.10Lists the groups that a specific user RID belongs to.
Example
rpcclient -U "" -N -c "queryusergroups 500" 192.168.1.10rpcclient -c "queryuseraliases BuiltinRID DomainSID" 192.168.1.10Queries which aliases a specific user SID belongs to.
Example
rpcclient -U "" -N -c "queryuseraliases 544 S-1-5-21-12345" 192.168.1.10rpcclient -c "querygroup RID" 192.168.1.10Retrieves detailed information about a specific global group.
Example
rpcclient -U "" -N -c "querygroup 512" 192.168.1.10rpcclient -c "querygroupmem RID" 192.168.1.10Lists the members (RIDs) of a specific global domain group.
Example
rpcclient -U "" -N -c "querygroupmem 512" 192.168.1.10rpcclient -c "queryaliasmem RID" 192.168.1.10Lists the members of a local alias group (e.g., RID 544 for Administrators).
Example
rpcclient -U "" -N -c "queryaliasmem 544" 192.168.1.10rpcclient -c "queryaliasinfo RID" 192.168.1.10Retrieves information about a specific alias group.
Example
rpcclient -U "" -N -c "queryaliasinfo 544" 192.168.1.10rpcclient -c "getdompwinfo" 192.168.1.10Retrieves the domain password policy (complexity, min length, history).
Example
rpcclient -U "" -N -c "getdompwinfo" 192.168.1.10rpcclient -c "getusrdompwinfo RID" 192.168.1.10Retrieves password policy information specific to a user RID.
Example
rpcclient -U "" -N -c "getusrdompwinfo 500" 192.168.1.10rpcclient -c "enumprinters" 192.168.1.10Enumerates printers installed on the remote system.
Example
rpcclient -U "" -N -c "enumprinters" 192.168.1.10rpcclient -c "enumports" 192.168.1.10Enumerates printer ports.
Example
rpcclient -U "" -N -c "enumports" 192.168.1.10rpcclient -c "enumdrivers" 192.168.1.10Enumerates installed printer drivers.
Example
rpcclient -U "" -N -c "enumdrivers" 192.168.1.10rpcclient -c "enumjobs" 192.168.1.10Enumerates current print jobs in the queue.
Example
rpcclient -U "" -N -c "enumjobs" 192.168.1.10rpcclient -c "getprinter PrinterName" 192.168.1.10Retrieves specific configuration details for a named printer.
Example
rpcclient -U "" -N -c "getprinter 'Microsoft XPS Document Writer'" 192.168.1.10rpcclient -c "dfsquery" 192.168.1.10Queries Distributed File System (DFS) information.
Example
rpcclient -U "" -N -c "dfsquery" 192.168.1.10rpcclient -c "enumservices" 192.168.1.10Enumerates services running on the remote host (requires specific access).
Example
rpcclient -U "" -N -c "enumservices" 192.168.1.10rpcclient -c "querydominfo" 192.168.1.10Queries general domain information.
Example
rpcclient -U "" -N -c "querydominfo" 192.168.1.10rpcclient -c "dsenumdomtrusts" 192.168.1.10Enumerates domain trusts using Directory Service RPC calls.
Example
rpcclient -U "" -N -c "dsenumdomtrusts" 192.168.1.10rpcclient -c "createdomuser username" 192.168.1.10Creates a new domain user (requires administrative privileges).
Example
rpcclient -U "admin%pass" -c "createdomuser hacker" 192.168.1.10rpcclient -c "deletedomuser username" 192.168.1.10Deletes a domain user (requires administrative privileges).
Example
rpcclient -U "admin%pass" -c "deletedomuser hacker" 192.168.1.10rpcclient -c "adddomgroupmem GroupRID UserRID" 192.168.1.10Adds a user RID to a domain group RID (requires privileges).
Example
rpcclient -U "admin%pass" -c "adddomgroupmem 512 1001" 192.168.1.10rpcclient -c "deldomgroupmem GroupRID UserRID" 192.168.1.10Removes a user RID from a domain group RID (requires privileges).
Example
rpcclient -U "admin%pass" -c "deldomgroupmem 512 1001" 192.168.1.10rpcclient -c "setuserinfo2 RID 24 'password'" 192.168.1.10Resets a user's password directly via RPC (Info level 24).
Example
rpcclient -U "admin%pass" -c "setuserinfo2 1001 24 'P@ssw0rd!'" 192.168.1.10rpcclient -c "lookupsids S-1-5-21-X-X-500; lookupsids S-1-5-21-X-X-501" 192.168.1.10Manual RID cycling example checking common RIDs 500 and 501.
Example
rpcclient -U "" -N -c "lookupsids S-1-5-21-123-456-500; lookupsids S-1-5-21-123-456-501" 192.168.1.10rpcclient -c "samlogon username" 192.168.1.10Attempts a SAM logon to test account validity.
Example
rpcclient -U "" -N -c "samlogon administrator" 192.168.1.10rpcclient -c "nettime" 192.168.1.10Queries the remote server's system time.
Example
rpcclient -U "" -N -c "nettime" 192.168.1.10rpcclient -c "shutdown" 192.168.1.10Attempts to shut down the remote server via RPC (rarely works, dangerous).
Example
rpcclient -U "admin%pass" -c "shutdown" 192.168.1.10rpcclient -c "querydispinfo" 192.168.1.10 | grep "Name:"Example of piping rpcclient output for clean user list extraction.
Example
rpcclient -U "" -N -c "querydispinfo" 192.168.1.10 | grep "Name:"rpcclient -c "getprimarydomain" 192.168.1.10Retrieves the primary domain name of the target.
Example
rpcclient -U "" -N -c "getprimarydomain" 192.168.1.10rpcclient -s /etc/samba/smb.conf 192.168.1.10Uses a custom Samba configuration file for the client connection.
Example
rpcclient -s /tmp/custom_smb.conf -U "" 192.168.1.10rpcclient -t 10 -U "" 192.168.1.10Sets the connection timeout to 10 seconds.
rpcclient -c "getremotetod" 192.168.1.10Gets the Time of Day (TOD) from the remote server.
Example
rpcclient -U "" -N -c "getremotetod" 192.168.1.10rpcclient -c "lsaquerysecobj" 192.168.1.10Queries LSA security objects.
Example
rpcclient -U "" -N -c "lsaquerysecobj" 192.168.1.10rpcclient -c "createdomgroup GroupName" 192.168.1.10Creates a new domain group (requires privileges).
Example
rpcclient -U "admin%pass" -c "createdomgroup NewGroup" 192.168.1.10rpcclient -c "deletedomgroup GroupName" 192.168.1.10Deletes a domain group (requires privileges).
Example
rpcclient -U "admin%pass" -c "deletedomgroup NewGroup" 192.168.1.10rpcclient -c "createalias AliasName" 192.168.1.10Creates a new alias (local group) on the target.
Example
rpcclient -U "admin%pass" -c "createalias LocalAdmin2" 192.168.1.10rpcclient -c "deletealias AliasName" 192.168.1.10Deletes an alias (local group) from the target.
Example
rpcclient -U "admin%pass" -c "deletealias LocalAdmin2" 192.168.1.10rpcclient -c "addaliasmem AliasRID UserSID" 192.168.1.10Adds a user to a local alias group (e.g. adding a user to Administrators).
Example
rpcclient -U "admin%pass" -c "addaliasmem 544 S-1-5-21-12345-1001" 192.168.1.10rpcclient -c "delaliasmem AliasRID UserSID" 192.168.1.10Removes a user from a local alias group.
Example
rpcclient -U "admin%pass" -c "delaliasmem 544 S-1-5-21-12345-1001" 192.168.1.10rpcclient -c "epmapper" 192.168.1.10Enumerates endpoints from the Endpoint Mapper (EPM).
Example
rpcclient -U "" -N -c "epmapper" 192.168.1.10rpcclient -c "enummonitor" 192.168.1.10Enumerates print monitors.
Example
rpcclient -U "" -N -c "enummonitor" 192.168.1.10rpcclient -c "enumforms" 192.168.1.10Enumerates printer forms.
Example
rpcclient -U "" -N -c "enumforms" 192.168.1.10rpcclient -c "queryservice ServiceName" 192.168.1.10Queries the status and config of a specific service.
Example
rpcclient -U "admin%pass" -c "queryservice Spooler" 192.168.1.10rpcclient -c "stopservice ServiceName" 192.168.1.10Stops a remote service (requires Admin).
Example
rpcclient -U "admin%pass" -c "stopservice Spooler" 192.168.1.10rpcclient -c "startservice ServiceName" 192.168.1.10Starts a remote service (requires Admin).
Example
rpcclient -U "admin%pass" -c "startservice Spooler" 192.168.1.10rpcclient -c "dfsgetinfo Share" 192.168.1.10Gets info about a DFS share.
Example
rpcclient -U "" -N -c "dfsgetinfo \\server\share" 192.168.1.10rpcclient -c "lsaaddacctrights SID Right" 192.168.1.10Grants a specific privilege/right to a SID.
Example
rpcclient -U "admin%pass" -c "lsaaddacctrights S-1-5-21-1234 SeShutdownPrivilege" 192.168.1.10rpcclient -c "lsaremoveacctrights SID Right" 192.168.1.10Revokes a specific privilege/right from a SID.
Example
rpcclient -U "admin%pass" -c "lsaremoveacctrights S-1-5-21-1234 SeShutdownPrivilege" 192.168.1.10rpcclient -c "lsalookupprivvalue Privilege" 192.168.1.10Looks up the LUID value for a named privilege.
Example
rpcclient -U "" -N -c "lsalookupprivvalue SeShutdownPrivilege" 192.168.1.10rpcclient -c "enumkey KeyHandle" 192.168.1.10Enumerates registry keys from an open handle (advanced, requires openkey).
Example
rpcclient -U "admin%pass" -c "enumkey 10" 192.168.1.10rpcclient -c "netr_ServerGetInfo" 192.168.1.10Raw RPC call to get server info (similar to srvinfo but via netr).
Example
rpcclient -U "" -N -c "netr_ServerGetInfo" 192.168.1.10rpcclient -c "getdompwinfo" 192.168.1.10Validation: Checks if the password policy is too weak (e.g., no complexity).
Example
rpcclient -U "" -N -c "getdompwinfo" 192.168.1.10rpcclient -c "enumdomusers" 192.168.1.10Validation: Checks if Null Session allows dumping the entire user list.
Example
rpcclient -U "" -N -c "enumdomusers" 192.168.1.10rpcclient -c "querydominfo; enumdomusers; enumdomgroups" 192.168.1.10Runs a rapid triage sequence to get domain info, users, and groups in one go.
Example
rpcclient -U "" -N -c "querydominfo; enumdomusers; enumdomgroups" 192.168.1.10rpcclient -U "user" 192.168.1.10Drops into the interactive rpcclient shell for manual exploration.
Example
rpcclient -U "administrator" 192.168.1.10rpcclient -c "getdriver DriverName" 192.168.1.10Gets info about a specific printer driver.
Example
rpcclient -U "" -N -c "getdriver 'HP LaserJet'" 192.168.1.10rpcclient -c "dfsnumber" 192.168.1.10Returns the number of DFS shares available.
Example
rpcclient -U "" -N -c "dfsnumber" 192.168.1.10rpcclient -c "fss_is_path_supported SharePath" 192.168.1.10Checks if a share supports Shadow Copy (FSRVP).
Example
rpcclient -U "admin%pass" -c "fss_is_path_supported \\server\share" 192.168.1.10rpcclient -c "netsessenum; netfileenum" 192.168.1.10Snapshots active sessions and open files to identify suspicious activity.
Example
rpcclient -U "admin%pass" -c "netsessenum; netfileenum" 192.168.1.10A wrapper around Samba tools that enumerates users, groups, shares, password policy and OS details from Windows and Samba hosts.
An FTP-like client for SMB/CIFS shares: list shares, browse, upload and download files, with or without credentials.
The OpenLDAP query client. Dumps users, groups, computers and attributes from LDAP and Active Directory with precise filters.