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
  • In-Memory .NET loader
  • In-Memory Powershell loader
  • Certificate auth
  • SSL auth
  • Logging
  • 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.1.1.tar.gz (29.6 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.1.1-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for devious_winrm-1.1.1.tar.gz
Algorithm Hash digest
SHA256 bf093fba3277a9e3ae69f5c5d204eb696d02630e0c53b374c02803fa337a959b
MD5 0c369ad95f2a739e1f63d9bc62fe0db2
BLAKE2b-256 db98d89e4a5d9d966ac6c0bb5e47fd5c74645378846956af3109ab1ba871d672

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for devious_winrm-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6219b009f1c0bfb3bd28d9a592b8a799078130e13e6ee18ba278df5b3f18fdec
MD5 a62250aacd63a7e34dde6432fcb119b8
BLAKE2b-256 fdbc7e57b42945d6d67c12e1411686093b00d9069ec2e2a21df71ae176e7d93e

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