githubEdit

Microsoft Remote Procedure Call (MSRPC)

Port: 135

1) Nmap scan

nmap -p 135 --script msrpc-enum IP

2) Impacket-rpcdump enumeration

impacket-rpcdump IP -p 135

3) RPC over HTTP services enumeration

 nmap -p 593 --script http-rpc-epmap IP  

4) Rpcclient

Connect with a null session

rpcclient -U "" -N IP

Connect to the target and list available shares

rpcclient -U "" -N IP -c "srvinfo"

List all available users

rpcclient -U "" -N IP -c "enumdomusers"

Domain groups enumeration

Query user information

Rpcclient commands

List Users

Get User Details

Get User Groups

Get User SID

Get User Aliases

List Groups

Get Members of Alias

List Domains

Obtain Domain SID

Get Domain Information

5) Brute force User/Password/SID

Nmap

Netexec

Lookup SID with Brute force (requires valid credentials and domain name)

6) Additional SID information

Find SID by Name

Find more SIDs

Check RID Cycle for more SIDs

7) Set User Info (Change Password)

The setuserinfo function in rpcclient is used to modify user account information on a remote Windows system. The level parameter indicates the detail of information to modify or retrieve:

To change a user's password, use setuserinfo2 with a level of 23. This level includes basic attributes and adds password management functionality. The setuserinfo function typically does not handle password changes directly; setuserinfo2 is preferred for this purpose.

Last updated