JuicyPotato

Walk-through

Congratulations! You've popped a shell on a windows machine. amazing. great stuff.

![](/img/Pasted image 20240508000620.png)

Setup a meterpreter session from here. Ref [[When do i...]] ! You can check if this is viable exploit path if you run post/multi/recon/local_exploit_suggester

 8   exploit/windows/local/ms16_075_reflection                      Yes                      The target appears to be vulnerable.
 9   exploit/windows/local/ms16_075_reflection_juicy                Yes                      The target appears to be vulnerable.

Once you have a meterpreter session, use windows/local/ms16_075_reflection

This module will abuse the SeImperonsate privilege commonly found in services due to the requirement to impersonate a client upon authentication. As such it is possible to impersonate the SYSTEM account and relay its NTLM hash to RPC via DCOM. The DLL will perform a MiTM attack at which intercepts the hash and relay responses from RPC to be able to establish a handle to a new SYSTEM token. Some caveats : Set your target option to match the architecture of your Meterpreter session, else it will inject the wrong architecture DLL into the process of a separate architecture. Additionally, after you have established a session, you must use incognito to imperonsate the SYSTEM Token.