8000 GitHub - h3g0c1v/rpciv: This tool serves as a user-friendly interface for RPCClient, enabling interaction with the RPC service on Windows systems. It allows you to connect to remote servers and run commands to enumerate users, groups, domains, and system configurations.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ rpciv Public

This tool serves as a user-friendly interface for RPCClient, enabling interaction with the RPC service on Windows systems. It allows you to connect to remote servers and run commands to enumerate users, groups, domains, and system configurations.

Notifications You must be signed in to change notification settings

h3g0c1v/rpciv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

RPCIV (Tool to interact with RPC)

This interactive tool acts as a user-friendly interface for RPCClient, a command-line client used to interact with the RPC (Remote Procedure Call) service on Windows systems. Through this tool, you can connect to a remote server and execute predefined commands to enumerate users, groups, domains, and system configurations in an organized manner.

Important

It is necessary to have RPCClient installed on the system for the tool to function properly.


Table of Contents

  1. Description
  2. Requirements
  3. Installation
  4. Usage
  5. Contributions

Description

The use of RPCClient can be a bit overwhelming, which is why I decided to create this tool. It consolidates the most commonly used commands when enumerating the RPC protocol, and through an interactive prompt, you can execute different commands via RPC. The tool essentially uses rpcclient to return the results, however, thanks to the intuitive commands in rpciv, you avoid having to memorize numerous commands. It even improves efficiency, as it automates many series of commands that we would normally need to execute to obtain the same results.

The main purpose that led me to create this tool was to learn how to use rpcclient more professionally. At the moment, it includes some of its main functions, but it will be updated over time with additional commands that may be useful.


Requirements

The only requirement to use this tool is to have rpcclient installed.

sudo apt install smbclient -y && rpcclient --version

Installation

Installation steps:

  1. Clone this repository:

    git clone https://github.com/h3g0c1v/rpciv
  2. Access the directory:

    cd rpciv
  3. Run the tool:

    ./rpciv.sh -h

Once all the previous steps are completed, we should see the tool's help panel.


Usage

To display the main help panel of the tool, we will run it with -h.

./rpciv.sh -h

image

To connect to the RPC service, we will need to specify:

  • To perform a null session, we will use -n:

    ./rpciv.sh -n
  • In case of having credentials, we will specify the username (-u) and the password (-p):

    ./rpciv.sh -u USERNAME -p PASSWORD

If we connect with a null session, the prompt will show that we are logged in as ANONYMOUS LOGON:

image

When we connect as a user, we will see the username in our prompt:

image

Command Panel

When we are connected to the tool, we can see the help panel with the help command.

image

In this way, you can list all the available commands in the tool. These commands are designed to be very intuitive and easy to remember.

Clear and Exit

Of course, typical commands like clear to clear the screen and exit to exit the program exist and can be used.

Who am I

With whoami, we will list the name of the user we are logged in as.

image

Changing the Prompt

The type of prompt shown is configurable, and you can choose from the available options with list prompts.

image

Each one is identified by a number seen on the left side of each prompt. If we want to change it, we simply specify the corresponding number with prompt.

image

Listing Available Users and Groups

To execute the enumdomusers command, this tool has show users or s u to list the available users in the domain.

image

And if we want to list the groups like enumdomgroups, we have show groups or s g.

image

Listing User and Group Descriptions

To see the descriptions of users, we can list them with show users description or s u d. This command only shows users that have a description, so those without one will not be displayed.

image

Similarly, we can do the same with groups using show groups description or s g d.

image

Viewing Group Members

To see the members of a specific group, we will run show group members or s g m followed by the desired group. For example, if we want to see the members of the Domain Admins group, we would execute the command as follows:

image

Obtaining a User's SID

For many types of attacks, it is necessary to know the SID of the user we are targeting, so I added the command show user sid or s u s, where we will specify the username whose SID we want to query.

image

Viewing Domain Information

Sometimes, it's also interesting to know domain information like its name, SID, and trust relationships. For this, we have two commands:

  • show domain info or s d i --> Lists information like the domain name and its SID.
  • show trusted domains or s t d --> Shows the trust relationships configured for the domain.

An example of executing both commands could be as follows:

image

In this case, we can see that the domain is HTB, its corresponding SID, and that it has no trust relationships.

Note

If there had been any trust relationship with another domain, it would have been displayed.


Contributions

I am excited to receive any contributions! If you would like to contribute or share your ideas, feel free to contact me through my LinkedIn.


About

This tool serves as a user-friendly interface for RPCClient, enabling interaction with the RPC service on Windows systems. It allows you to connect to remote servers and run commands to enumerate users, groups, domains, and system configurations.

Topics

Resources

Stars

Watchers

Forks

Languages

0