Skip to content

Commit

Permalink
Merge pull request #4 from Hackplayers/dev
Browse files Browse the repository at this point in the history
Dev to master v1.6
  • Loading branch information
OscarAkaElvis authored Aug 15, 2019
2 parents 9d826ce + 105d696 commit 3f56164
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 62 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
### 1.6
- Added SSL and certificates support
- Upload/download messages improved
- Updated documentation
- Removed scripts and executables dir as mandatory arguments
- Added logo

### 1.5
- Refactor to class
- Fixed upload/download error
- Added help arguments for connection

### 1.4
- Small fixes

### 1.3
- Added colors to shell prompt
- Added images to documentation

### 1.2
- Added some validations
- Added badges to documentation

### 1.1
- Translation to english
- Added first documentation
- Added colors for messages
- First ruby gem created

### 1.0
- Initial commit
54 changes: 24 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
# Evil-WinRM [![Version-shield]](evil-winrm.rb) [![Ruby2.3-shield]](https://www.ruby-lang.org/en/news/2015/12/25/ruby-2-3-0-released/) [![Gem-Version]](https://rubygems.org/gems/evil-winrm) [![License-shield]](LICENSE)
The ultimate WinRM shell for hacking/pentesting

```
___ __ __ ____ _
/ _] | || || |
/ [_| | | | | | |
| _] | | | | | |___
| [_| : | | | | |
| |\ / | | | |
|_____| \_/ |____||_____|
__ __ ____ ____ ____ ___ ___
| |__| || || \ | \ | | |
| | | | | | | _ || D )| _ _ |
| | | | | | | | || / | \_/ |
| ` ' | | | | | || \ | | |
\ / | | | | || . \| | |
\_/\_/ |____||__|__||__|\_||___|___|
By: CyberVaca@HackPlayers
```
![Banner](resources/evil-winrm_logo.png)

## Description & Purpose
This shell is the ultimate WinRM shell for hacking/pentesting.
Expand All @@ -44,18 +25,22 @@ purposes by system administrators as well but the most of its features are focus
- Load in memory dll files bypassing some AVs
- Load in memory C# (C Sharp) compiled exe files bypassing some AVs
- Colorization on output messages (can be disabled optionally)
- SSL and certificates support

## Help

```
Usage: evil-winrm -i IP -u USER -s SCRIPTS_PATH -e EXES_PATH [-P PORT] [-p PASS] [-U URL]
Usage: evil-winrm -i IP -u USER [-s SCRIPTS_PATH] [-e EXES_PATH] [-P PORT] [-p PASS] [-U URL] [-S] [-c PUBLIC_KEY_PATH ] [-k PRIVATE_KEY_PATH ]
-S, --ssl Enable SSL
-c, --pub-key PUBLIC_KEY_PATH Local path to public key certificate
-k, --priv-key PRIVATE_KEY_PATH Local path to private key certificate
-s, --scripts PS_SCRIPTS_PATH Powershell scripts local path
-e, --executables EXES_PATH C# executables local path
-i, --ip IP Remote host IP or hostname (required)
-P, --port PORT Remote host port (default 5985)
-U, --url URL Remote url endpoint (default /wsman)
-u, --user USER Username (required)
-p, --password PASS Password
-s, --scripts PS_SCRIPTS_PATH Powershell scripts path (required)
-e, --executables EXES_PATH C# executables path (required)
-U, --url URL Remote url endpoint (default /wsman)
-P, --port PORT Remote host port (default 5985)
-V, --version Show version
-h, --help Display this help message
```
Expand All @@ -81,10 +66,16 @@ To use IPv6, the address must be added to /etc/hosts.
## Documentation

#### Basic commands
- **upload**: local files can be auto-completed using tab key. It is not needed to put a remote_path if the local file is in the same directory as evil-winrm.rb file.
- usage: `upload local_path remote_path`
- **download**: it is not needed to set local_path if the remote file is in the current directory.
- usage: `download remote_path local_path`
- **upload**: local files can be auto-completed using tab key. It is recommended to use absolute path for destination to avoid errors. Otherwise you could get uncontrolled errors due Winrm-fs limitations.
- usage: `upload local_path remote_absolute_path`
- **download**: It is recommended to use absolute paths to avoid errors. Otherwise you could get uncontrolled errors due Winrm-fs limitations.
- usage: `download remote_absolute_path local_path`

__Note about paths (upload/download)__:
If the file to download is in the initial remote dir, absolute path on first parameter can be avoided in order to use simple file name.
Relative paths are not recommended to use and can cause errors on download/upload.
Second argument (destination for upload/download) can be blank and in that case it will be uploaded/downloaded to current local dir or initial (landing dir once connected) remote dir.

- **services**: list all services. No administrator permissions needed.
- **menu**: load the `Invoke-Binary` and `l04d3r-LoadDll` functions that we will explain below. When a ps1 is loaded all its functions will be shown up.

Expand All @@ -110,6 +101,9 @@ To use IPv6, the address must be added to /etc/hosts.
#### Extra features
- To disable colors just modify on code this variable `$colors_enabled`. Set it to false: `$colors_enabled = false`

## Changelog:
Changelog and project changes can be checked here: [CHANGELOG.md](CHANGELOG.md)

## Credits:
Main author:

Expand Down Expand Up @@ -142,7 +136,7 @@ Use it at your own servers and/or with the server owner's permission.
[3v4Si0N]: https://github.com/3v4Si0N/

<!-- Badges URLs -->
[Version-shield]: https://img.shields.io/badge/version-1.5-blue.svg?style=flat-square&colorA=273133&colorB=0093ee "Latest version"
[Version-shield]: https://img.shields.io/badge/version-1.6-blue.svg?style=flat-square&colorA=273133&colorB=0093ee "Latest version"
[Ruby2.3-shield]: https://img.shields.io/badge/ruby-2.3%2B-blue.svg?style=flat-square&colorA=273133&colorB=ff0000 "Ruby 2.3 or later"
[License-shield]: https://img.shields.io/badge/license-LGPL%20v3%2B-blue.svg?style=flat-square&colorA=273133&colorB=bd0000 "LGPL v3+"
[Gem-Version]: https://badge.fury.io/rb/evil-winrm.svg "Ruby gem"
120 changes: 88 additions & 32 deletions evil-winrm.rb

Large diffs are not rendered by default.

Binary file added resources/evil-winrm_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3f56164

Please sign in to comment.