evil-winrm 3.4 → 3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +0 -0
- data/evil-winrm.rb +891 -836
- metadata +28 -33
- data/.editorconfig +0 -21
- data/CHANGELOG.md +0 -94
- data/CODE_OF_CONDUCT.md +0 -76
- data/CONTRIBUTING.md +0 -22
- data/Dockerfile +0 -64
- data/Gemfile +0 -3
- data/README.md +0 -530
- data/resources/evil-winrm_logo.png +0 -0
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evil-winrm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '3.
|
4
|
+
version: '3.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CyberVaca
|
@@ -11,48 +11,42 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
|
-
name:
|
17
|
+
name: fileutils
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
20
|
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
23
|
-
- - ">="
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version: 2.3.2
|
22
|
+
version: '1.0'
|
26
23
|
type: :runtime
|
27
24
|
prerelease: false
|
28
25
|
version_requirements: !ruby/object:Gem::Requirement
|
29
26
|
requirements:
|
30
27
|
- - "~>"
|
31
28
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
33
|
-
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 2.3.2
|
29
|
+
version: '1.0'
|
36
30
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
31
|
+
name: logger
|
38
32
|
requirement: !ruby/object:Gem::Requirement
|
39
33
|
requirements:
|
40
34
|
- - "~>"
|
41
35
|
- !ruby/object:Gem::Version
|
42
|
-
version: '1.
|
36
|
+
version: '1.4'
|
43
37
|
- - ">="
|
44
38
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.3
|
39
|
+
version: 1.4.3
|
46
40
|
type: :runtime
|
47
41
|
prerelease: false
|
48
42
|
version_requirements: !ruby/object:Gem::Requirement
|
49
43
|
requirements:
|
50
44
|
- - "~>"
|
51
45
|
- !ruby/object:Gem::Version
|
52
|
-
version: '1.
|
46
|
+
version: '1.4'
|
53
47
|
- - ">="
|
54
48
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.3
|
49
|
+
version: 1.4.3
|
56
50
|
- !ruby/object:Gem::Dependency
|
57
51
|
name: stringio
|
58
52
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,39 +62,45 @@ dependencies:
|
|
68
62
|
- !ruby/object:Gem::Version
|
69
63
|
version: '3.0'
|
70
64
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
65
|
+
name: winrm
|
72
66
|
requirement: !ruby/object:Gem::Requirement
|
73
67
|
requirements:
|
74
68
|
- - "~>"
|
75
69
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
70
|
+
version: '2.3'
|
77
71
|
- - ">="
|
78
72
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
73
|
+
version: 2.3.2
|
80
74
|
type: :runtime
|
81
75
|
prerelease: false
|
82
76
|
version_requirements: !ruby/object:Gem::Requirement
|
83
77
|
requirements:
|
84
78
|
- - "~>"
|
85
79
|
- !ruby/object:Gem::Version
|
86
|
-
version: '
|
80
|
+
version: '2.3'
|
87
81
|
- - ">="
|
88
82
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
83
|
+
version: 2.3.2
|
90
84
|
- !ruby/object:Gem::Dependency
|
91
|
-
name:
|
85
|
+
name: winrm-fs
|
92
86
|
requirement: !ruby/object:Gem::Requirement
|
93
87
|
requirements:
|
94
88
|
- - "~>"
|
95
89
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
90
|
+
version: '1.3'
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.3.2
|
97
94
|
type: :runtime
|
98
95
|
prerelease: false
|
99
96
|
version_requirements: !ruby/object:Gem::Requirement
|
100
97
|
requirements:
|
101
98
|
- - "~>"
|
102
99
|
- !ruby/object:Gem::Version
|
103
|
-
version: '1.
|
100
|
+
version: '1.3'
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.3.2
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: bundler
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,24 +123,19 @@ executables:
|
|
123
123
|
extensions: []
|
124
124
|
extra_rdoc_files: []
|
125
125
|
files:
|
126
|
-
- ".editorconfig"
|
127
|
-
- CHANGELOG.md
|
128
|
-
- CODE_OF_CONDUCT.md
|
129
|
-
- CONTRIBUTING.md
|
130
|
-
- Dockerfile
|
131
|
-
- Gemfile
|
132
126
|
- LICENSE
|
133
|
-
- README.md
|
134
127
|
- bin/evil-winrm
|
135
128
|
- evil-winrm.rb
|
136
|
-
- resources/evil-winrm_logo.png
|
137
129
|
homepage: https://github.com/Hackplayers/evil-winrm#readme
|
138
130
|
licenses:
|
139
131
|
- LGPL-3.0
|
140
132
|
metadata:
|
133
|
+
yard.run: yard
|
134
|
+
changelog_uri: https://github.com/Hackplayers/evil-winrm/blob/master/CHANGELOG.md
|
135
|
+
documentation_uri: https://rubydoc.info/gems/evil-winrm
|
141
136
|
homepage_uri: https://github.com/Hackplayers/evil-winrm#readme
|
142
137
|
source_code_uri: https://github.com/Hackplayers/evil-winrm
|
143
|
-
|
138
|
+
rubygems_mfa_required: 'true'
|
144
139
|
post_install_message: Happy hacking! :)
|
145
140
|
rdoc_options: []
|
146
141
|
require_paths:
|
data/.editorconfig
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
#EditorConfig: http://editorconfig.org
|
2
|
-
|
3
|
-
root = true
|
4
|
-
|
5
|
-
[*]
|
6
|
-
charset = utf-8
|
7
|
-
end_of_line = lf
|
8
|
-
insert_final_newline = true
|
9
|
-
|
10
|
-
[*.{rb,md}]
|
11
|
-
indent_style = space
|
12
|
-
indent_size = 4
|
13
|
-
trim_trailing_whitespace = true
|
14
|
-
|
15
|
-
[Gemfile]
|
16
|
-
indent_style = space
|
17
|
-
indent_size = 4
|
18
|
-
|
19
|
-
[Dockerfile]
|
20
|
-
indent_style = space
|
21
|
-
indent_size = 4
|
data/CHANGELOG.md
DELETED
@@ -1,94 +0,0 @@
|
|
1
|
-
### 3.4
|
2
|
-
- Added CI files to be used in Github actions for Docker automated building
|
3
|
-
- Improvements on dynamic AMSI bypass
|
4
|
-
- Added gemspec file to repo for gem building
|
5
|
-
|
6
|
-
### 3.3
|
7
|
-
- Fixed missing output messages for Invoke-Binary
|
8
|
-
- Extracted AMSI bypass from menu to avoid menu problems due to M$ AV signatures
|
9
|
-
- Dynamic AMSI bypass implemented to avoid AV signatures
|
10
|
-
|
11
|
-
### 3.2
|
12
|
-
- Fixed minor duplicated code problem
|
13
|
-
- Dockerfile improvements
|
14
|
-
- AMSI bypass update
|
15
|
-
|
16
|
-
### 3.1
|
17
|
-
- Version released just to quick fix ruby dependencies on gem
|
18
|
-
|
19
|
-
### 3.0
|
20
|
-
- Remote files/directories autocomplete feature
|
21
|
-
- Added option to log commands and outputs to a log file (Thanks to Borch Cañavate)
|
22
|
-
|
23
|
-
### 2.4
|
24
|
-
- File permission access error now handled in exception to avoid losing connection
|
25
|
-
- Improvements on bundler installation method
|
26
|
-
- Added spn (Service Principal Names) option param for kerberos auth to set some different than default HTTP
|
27
|
-
- Fixed prompt colors (ANSI)
|
28
|
-
|
29
|
-
### 2.3
|
30
|
-
- Fixed Invoke-Binary arguments
|
31
|
-
- Service function improved, now show privileges over the services
|
32
|
-
|
33
|
-
### 2.2
|
34
|
-
- Added progress bar for file uploads/downloads
|
35
|
-
- New ascii art on menu
|
36
|
-
- Name of Dll loader refactored
|
37
|
-
- Help added to Invoke-Binary
|
38
|
-
- Fixed Invoke-Binary to accept any number of arguments separated by commas
|
39
|
-
|
40
|
-
### 2.1
|
41
|
-
- Fixed required params for certificates auth
|
42
|
-
- Removed trailing spaces for better visualization
|
43
|
-
- Added command line option to disable colors
|
44
|
-
- Improved Windows compatibility
|
45
|
-
- Trap capturing to avoid accidental shell exit on Ctrl+C
|
46
|
-
|
47
|
-
### 2.0
|
48
|
-
- Fix GSSAPI error
|
49
|
-
- Docker support added
|
50
|
-
|
51
|
-
### 1.9
|
52
|
-
- Added AMSI bypass
|
53
|
-
- Fix the ps1 load with large size
|
54
|
-
- Kerberos auth support
|
55
|
-
- Improve upload/download functionality
|
56
|
-
|
57
|
-
### 1.8
|
58
|
-
- Added pass-the-hash feature
|
59
|
-
- Added bundler installation method
|
60
|
-
|
61
|
-
### 1.7
|
62
|
-
- Added x64 compatibility to use Donut payloads
|
63
|
-
|
64
|
-
### 1.6
|
65
|
-
- Added SSL and certificates support
|
66
|
-
- Upload/download messages improved
|
67
|
-
- Updated documentation
|
68
|
-
- Removed scripts and executables dir as mandatory arguments
|
69
|
-
- Added logo
|
70
|
-
|
71
|
-
### 1.5
|
72
|
-
- Refactor to class
|
73
|
-
- Fixed upload/download error
|
74
|
-
- Added help arguments for connection
|
75
|
-
|
76
|
-
### 1.4
|
77
|
-
- Small fixes
|
78
|
-
|
79
|
-
### 1.3
|
80
|
-
- Added colors to shell prompt
|
81
|
-
- Added images to documentation
|
82
|
-
|
83
|
-
### 1.2
|
84
|
-
- Added some validations
|
85
|
-
- Added badges to documentation
|
86
|
-
|
87
|
-
### 1.1
|
88
|
-
- Translation to english
|
89
|
-
- Added first documentation
|
90
|
-
- Added colors for messages
|
91
|
-
- First ruby gem created
|
92
|
-
|
93
|
-
### 1.0
|
94
|
-
- Initial commit
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
9
|
-
level of experience, education, socio-economic status, nationality, personal
|
10
|
-
appearance, race, religion, or sexual identity and orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at oscar.alfonso.diaz@gmail.com. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
72
|
-
|
73
|
-
[homepage]: https://www.contributor-covenant.org
|
74
|
-
|
75
|
-
For answers to common questions about this code of conduct, see
|
76
|
-
https://www.contributor-covenant.org/faq
|
data/CONTRIBUTING.md
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
# Contributing
|
2
|
-
|
3
|
-
Hello, thank you for your interest into contributing to this project. Your help is really appreciated.
|
4
|
-
|
5
|
-
Please note we have a [Code of Conduct], please follow it in all your interactions with the project.
|
6
|
-
|
7
|
-
---
|
8
|
-
|
9
|
-
## Git Workflow Policy
|
10
|
-
|
11
|
-
1. Direct push to [Master] is not allowed.
|
12
|
-
2. Pull Requests to [Master] are not allowed.
|
13
|
-
3. Usually, commits and pull requests should be done on [Dev] branch. If you have any doubt, don't hesitate to ask first.
|
14
|
-
4. Temporary branches may be existing for specific features, be pretty sure that the branch you are going to commit on is the right one. Ask first if you have any doubt.
|
15
|
-
5. Any branch will be finally merged to [Dev], there it will be reviewed and tested deeply before being merged to [Master].
|
16
|
-
6. All merges from [Dev] to [Master] are a new `evil-winrm` release. This merges to [Master] will be performed and reviewed exclusively by the staff.
|
17
|
-
|
18
|
-
---
|
19
|
-
|
20
|
-
[Code of Conduct]: CODE_OF_CONDUCT.md
|
21
|
-
[Master]: https://github.com/Hackplayers/evil-winrm/tree/master
|
22
|
-
[Dev]: https://github.com/Hackplayers/evil-winrm/tree/dev
|
data/Dockerfile
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
# Evil-WinRM Dockerfile
|
2
|
-
|
3
|
-
# Base image
|
4
|
-
FROM ruby:latest
|
5
|
-
|
6
|
-
# Credits & Data
|
7
|
-
LABEL \
|
8
|
-
name="Evil-WinRM" \
|
9
|
-
author="CyberVaca <cybervaca@gmail.com>" \
|
10
|
-
maintainer="OscarAkaElvis <oscar.alfonso.diaz@gmail.com>" \
|
11
|
-
description="The ultimate WinRM shell for hacking/pentesting"
|
12
|
-
|
13
|
-
#Env vars
|
14
|
-
ENV EVILWINRM_URL="https://github.com/Hackplayers/evil-winrm.git"
|
15
|
-
|
16
|
-
# Install dependencies
|
17
|
-
RUN gem install \
|
18
|
-
winrm \
|
19
|
-
winrm-fs \
|
20
|
-
stringio \
|
21
|
-
logger \
|
22
|
-
fileutils
|
23
|
-
|
24
|
-
# Create volume for powershell scripts
|
25
|
-
RUN mkdir /ps1_scripts
|
26
|
-
VOLUME /ps1_scripts
|
27
|
-
|
28
|
-
# Create volume for executable files
|
29
|
-
RUN mkdir /exe_files
|
30
|
-
VOLUME /exe_files
|
31
|
-
|
32
|
-
# Create volume for data (upload/download)
|
33
|
-
RUN mkdir /data
|
34
|
-
VOLUME /data
|
35
|
-
|
36
|
-
# Set workdir
|
37
|
-
WORKDIR /opt/
|
38
|
-
|
39
|
-
#Evil-WinRM install method 1 (only one method can be used, other must be commented)
|
40
|
-
#Install Evil-WinRM (Docker Hub automated build process)
|
41
|
-
RUN mkdir evil-winrm
|
42
|
-
COPY . /opt/evil-winrm
|
43
|
-
|
44
|
-
#Evil-WinRM install method 2 (only one method can be used, other must be commented)
|
45
|
-
#Install Evil-WinRM (manual image build)
|
46
|
-
#Uncomment git clone line and one of the ENV vars to select branch (master->latest, dev->beta)
|
47
|
-
#ENV BRANCH="master"
|
48
|
-
#ENV BRANCH="dev"
|
49
|
-
#RUN git clone -b ${BRANCH} ${EVILWINRM_URL}
|
50
|
-
|
51
|
-
# Make script file executable
|
52
|
-
RUN chmod +x evil-winrm/*.rb
|
53
|
-
|
54
|
-
# Clean and remove useless files
|
55
|
-
RUN rm -rf /opt/evil-winrm/resources > /dev/null 2>&1 && \
|
56
|
-
rm -rf /opt/evil-winrm/.github > /dev/null 2>&1 && \
|
57
|
-
rm -rf /opt/evil-winrm/CONTRIBUTING.md > /dev/null 2>&1 && \
|
58
|
-
rm -rf /opt/evil-winrm/CODE_OF_CONDUCT.md > /dev/null 2>&1 && \
|
59
|
-
rm -rf /opt/evil-winrm/Dockerfile > /dev/null 2>&1 && \
|
60
|
-
rm -rf /opt/evil-winrm/Gemfile* > /dev/null 2>&1 && \
|
61
|
-
rm -rf /tmp/* > /dev/null 2>&1
|
62
|
-
|
63
|
-
# Start command (launching Evil-WinRM)
|
64
|
-
ENTRYPOINT ["/opt/evil-winrm/evil-winrm.rb"]
|
data/Gemfile
DELETED