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

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.0.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.0-py2.py3-none-any.whl (28.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: devious_winrm-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 50813d3bf93b960372180122e25e92a0896efdb6577a9141fef3faf5b3d1899a
MD5 c8ed5df08203267b766ac80b0315f47c
BLAKE2b-256 464b1341f6ca7985bdd83283c372fae89b92a554a1ac7a71c91d1e527830fbc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devious_winrm-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8ee17cddda1bd196a5a9e47755e9a559165353f31115b1e9b830e40ce3d28d78
MD5 8da5395b3ec6a045caa5546ce26f18f0
BLAKE2b-256 d27f193d4fc6ec3aa032a033db8d0c8d102f8ea42134a33eed9d3614b2e4ffdd

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