Rpcclient
Rpcclient is an open-source command-line tool that provides a client interface for executing MS-RPC (Microsoft Remote Procedure Call) functions. It is part of the Samba suite and allows users to interact with Windows systems through RPC protocols, enabling enumeration and manipulation of Windows resources. Rpcclient is essential for penetration testing Windows networks and Active Directory environments, providing extensive enumeration capabilities without requiring administrative privileges.
Here are the primary uses of Rpcclient:
-
User Enumeration: Rpcclient enumerates domain and local users from Windows systems, providing detailed information including usernames, RIDs, full names, descriptions, and account properties. This information is critical for understanding the user landscape during penetration tests.
-
Group Enumeration: The tool lists domain and local groups along with their members, helping security professionals map organizational structure and identify privilege relationships within Active Directory environments.
-
Share Enumeration: Rpcclient discovers network shares and their properties, revealing accessible resources and potential data repositories on target Windows systems.
-
Domain Information Gathering: The tool retrieves domain controller information, domain trusts, password policies, and other Active Directory metadata essential for understanding the target environment's security posture.
-
SID Enumeration: Rpcclient performs SID (Security Identifier) lookups and RID cycling to enumerate users and groups even when other enumeration methods are restricted by security controls.
-
Printer and Service Enumeration: The tool identifies printers, services, and other Windows resources exposed through RPC interfaces, providing comprehensive visibility into the target system's configuration.
Core Features
- User Enumeration
- Group Enumeration
- Share Enumeration
- Domain Information
- SID/RID Resolution
- Password Policy Retrieval
- Trust Enumeration
- Printer Enumeration
- Service Enumeration
- Null Session Support
- Interactive Shell Mode
- Batch Command Execution
- Multiple Authentication Methods
- LSA Query Support
Data sources
- MS-RPC Protocol
- SAMR (Security Account Manager Remote)
- LSA (Local Security Authority)
- SRVSVC (Server Service)
- NETLOGON Protocol
- Active Directory
- Domain Controllers
- Windows Registry (Remote)
- Security Identifiers (SIDs)