Skip to main content

A Pentester's Powershell Client.

Project description

Devious-WinRM

A Pentester's Powershell Client.

The help screen for Devious-WinRM, showing a variety of flags and options.

Description / Purpose

This tool allows one to access servers running WinRM or Powershell Remoting, with additional tools for capture the flag / pentesting. I created this project to fix a few grievances I have with existing tools (such as the amazing Evil-WinRM) and to contribute to the open-source hacking community.

Under the hood, Devious-WinRM is not directly based on WinRM. It is instead built on the PowerShell Remoting Protocol, which in turn uses WinRM. PSRP was chosen as it seems to require less user permissions than WinRM, at least in a rudementary Active Directory environment.

Features / Planned

  • No-config Kerberos auth
  • Make it pretty
  • Pass the hash support
  • Pass the ticket support
  • File upload/download
  • Syntax highlighting
  • Ctrl+C command interupt
  • Remote path completion
  • Certificate auth
  • SSL auth
  • Logging
  • In-Memory .NET/Powershell loader
  • Maybe: Local logon token upgrader via RunasCs

Installation

On Linux, Kerberos needs to be installed: sudo apt install gcc python3-dev libkrb5-dev krb5-pkinit

The recommended installation method is with uv. Check out their docs for how to install it, then run:

uv tool install devious-winrm --prerelease=allow

Alternatively, use pipx or pip:

pipx install devious-winrm

pip install devious-winrm

Credits

  • Evil-WinRM - This goes without saying, but Evil-WinRM is an incredible tool. It was the primary inspiration for this project.
  • pypsrp - A tremendously well-featured library for Powershell Remote in Python. Super friendly developer as well!
  • evil-winrm-py - Aditya and I had the same idea at almost the exact same time. I would be remissed if I didn't mention his project as well.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devious_winrm-1.0.1.tar.gz (293.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devious_winrm-1.0.1-py2.py3-none-any.whl (28.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file devious_winrm-1.0.1.tar.gz.

File metadata

  • Download URL: devious_winrm-1.0.1.tar.gz
  • Upload date:
  • Size: 293.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for devious_winrm-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4221b82ce83a8139ca3ea2ff34301ac76759da8040815031f49ef7b9e04f22fc
MD5 9e988ce4b7f66be820ee83b69d573c77
BLAKE2b-256 ffe31d2872e97244156dda8a98f3f02839a9f1255a39e4e644cc5716857a641e

See more details on using hashes here.

File details

Details for the file devious_winrm-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for devious_winrm-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da5f28400ec74f9b9185ae82e8c182133a6dd6ad8a8c492e2d41aaea5b4b0dd9
MD5 80c519424ccf8af611ea944cf4025c54
BLAKE2b-256 ac5d1b2db8f23c28d78aa84637c451c3984be9cf3944c46bf51e34449b41c9dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page