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.2.tar.gz (293.1 kB view details)

Uploaded Source

Built Distributions

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

devious_winrm-1.0.2-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

devious_winrm-1.0.2-py2.py3-none-any.whl (28.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for devious_winrm-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0c1ddaf259741895fa94dca0a2d3c8b0b1c8c99efe11d6f9c3068cb075980400
MD5 5754aa9b4b43ed41ab732fce0be69e74
BLAKE2b-256 ef92f9268c902748ef25077d49571e88026bb638b88870f8793ce720e53fac16

See more details on using hashes here.

File details

Details for the file devious_winrm-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for devious_winrm-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb7f101987e70bb1b64e42bad9a48f9828c9f054313749e65ebb1482db6efa3d
MD5 e373790bfeb470f80997cae111feb579
BLAKE2b-256 9fbca5e01fd15e8b63cfc9df7e0d4c5fd18a7601a87245d16abea9eca903288b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devious_winrm-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f185018b5efe3231526f82a603a97fe4cb161c01453e03bf378c07b383c13545
MD5 fd14ae3ca5484514593f90a974d83a91
BLAKE2b-256 454ec6fc62cc825fd48c6daf334c6e85c8c4900a56be078a10848bdb083538b4

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