ridrelay 1.1 releases: Enumerate usernames on a domain
RidRelay
A quick and easy way to get domain usernames while on an internal network.
How it works
RidRelay combines the SMB Relay attack, common lsarpc based queries and RID cycling to get a list of domain usernames. It takes these steps:
- Spins up an SMB and HTTP servers and waits for an incoming connection
- The incoming credentials are relayed to a specified target, creating a connection with the context of the relayed user
- Queries are made down the SMB connection to the lsarpc pipe to get the list of domain usernames. This is done by cycling up to 50000 RIDs
- The password policy is extracted through the samr pipe
(For best results, use with Responder)
Installation
git clone https://github.com/skorov/ridrelay.git pipenv install --two pipenv shell# Optional: Run if installing impacket
git submodule update –init –recursive
cd submodules/impacket
python setup.py install
cd ../..
Usage
First, find a target host to relay to. The target must be a member of the domain and MUST have SMB Signin off. CrackMapExec can get this info for you very quickly!
Start RidRelay pointing to the target:
python ridrelay.py -t 10.0.0.50
Copyright (C) 2018 skorov
Source: https://github.com/skorov/