Ridrelay – Quick And Easy Way To Get Domain Usernames While On An Internal Network

Enumerate usernames on a domain where you have no creds by using SMB Relay with low priv. Quick and easy way to get domain usernames while on an internal network.How it worksRidRelay 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 server and waits for an incoming SMB connectionThe incoming credentials are relayed to a specified target, creating a connection with the context of the relayed userQueries 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(For best results, use with Responder)DependenciesPython 2.7 (sorry but impacket doesn’t play nice with 3 🙁 )Impacket v0.9.17 or aboveInstallationpipenv install –twopipenv shell# Optional: Run if installing impacketgit submodule update –init –recursivecd submodules/impacketpython setup.py installcd ../..UsageFirst, 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 quick!Start RidRelay pointing to the target:python ridrelay.py -t 10.0.0.50ORAlso output usernames to filepython ridrelay.py -t 10.0.0.50 -o path_to_output.txtHighly Recommended: Start Responder to trick users to connecting to RidRelayTODO:Add password policy enumerationDynamic relaying based on where incoming creds have admin rightsGetting active sessions???Connect with Bloodhound???Download Ridrelay

Link: http://feedproxy.google.com/~r/PentestTools/~3/uE1MZB_OpLI/ridrelay-quick-and-easy-way-to-get.html