Skip to content

Commit e93e524

Browse files
committed
Merge branch 'upstream-master' into feature/rdp-scanner
2 parents e5ef737 + 3ad4ff6 commit e93e524

File tree

44 files changed

+1338
-772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1338
-772
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ rvm:
1616
- '2.4.1'
1717

1818
env:
19-
# TODO: restore these tests when the code passes them!
20-
# - CMD='bundle exec rake cucumber cucumber:boot CREATE_BINSTUBS=true'
2119
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
2220
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"'
2321

Gemfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ source 'https://rubygems.org'
33
# spec.add_runtime_dependency '<name>', [<version requirements>]
44
gemspec name: 'metasploit-framework'
55

6+
# These pull in pre-release gems in order to fix specific issues.
7+
# XXX https://github.com/alexdalitz/dnsruby/pull/134
8+
gem 'dnsruby', git: 'https://github.com/alexdalitz/dnsruby'
9+
# XXX https://github.com/ConnorAtherton/rb-readline/commit/fd882edcd145c26681f9971be5f6675c7f6d1970
10+
gem 'rb-readline', git: 'https://github.com/ConnorAtherton/rb-readline'
11+
612
# separate from test as simplecov is not run on travis-ci
713
group :coverage do
814
# code coverage for tests
@@ -37,14 +43,6 @@ group :development, :test do
3743
end
3844

3945
group :test do
40-
# cucumber extension for testing command line applications, like msfconsole
41-
gem 'aruba'
42-
# cucumber + automatic database cleaning with database_cleaner
43-
gem 'cucumber-rails', :require => false
44-
gem 'shoulda-matchers'
4546
# Manipulate Time.now in specs
4647
gem 'timecop'
47-
# Needed to work around a regression between capybara 2.7.1 and xpath 2.1
48-
# XXX remove when capybara is updated to work with xpath 2.1
49-
gem 'xpath', '2.0'
5048
end

Gemfile.lock

Lines changed: 17 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1+
GIT
2+
remote: https://github.com/ConnorAtherton/rb-readline
3+
revision: fd882edcd145c26681f9971be5f6675c7f6d1970
4+
specs:
5+
rb-readline (0.5.4)
6+
7+
GIT
8+
remote: https://github.com/alexdalitz/dnsruby
9+
revision: 09c3890ccfaedb7fd4951f56575d5c53651e0140
10+
specs:
11+
dnsruby (1.60.1)
12+
113
PATH
214
remote: .
315
specs:
4-
metasploit-framework (4.15.0)
16+
metasploit-framework (4.15.2)
517
actionpack (~> 4.2.6)
618
activerecord (~> 4.2.6)
719
activesupport (~> 4.2.6)
@@ -46,7 +58,7 @@ PATH
4658
rex-mime
4759
rex-nop
4860
rex-ole
49-
rex-powershell
61+
rex-powershell (< 0.1.73)
5062
rex-random_identifier
5163
rex-registry
5264
rex-rop_builder
@@ -102,48 +114,13 @@ GEM
102114
arel (6.0.4)
103115
arel-helpers (2.4.0)
104116
activerecord (>= 3.1.0, < 6)
105-
aruba (0.14.2)
106-
childprocess (~> 0.5.6)
107-
contracts (~> 0.9)
108-
cucumber (>= 1.3.19)
109-
ffi (~> 1.9.10)
110-
rspec-expectations (>= 2.99)
111-
thor (~> 0.19)
112117
backports (3.8.0)
113118
bcrypt (3.1.11)
114119
bindata (2.4.0)
115120
bit-struct (0.16)
116121
builder (3.2.3)
117-
capybara (2.14.4)
118-
addressable
119-
mime-types (>= 1.16)
120-
nokogiri (>= 1.3.3)
121-
rack (>= 1.0.0)
122-
rack-test (>= 0.5.4)
123-
xpath (~> 2.0)
124-
childprocess (0.5.9)
125-
ffi (~> 1.0, >= 1.0.11)
126122
coderay (1.1.1)
127-
contracts (0.16.0)
128-
cucumber (2.4.0)
129-
builder (>= 2.1.2)
130-
cucumber-core (~> 1.5.0)
131-
cucumber-wire (~> 0.0.1)
132-
diff-lcs (>= 1.1.3)
133-
gherkin (~> 4.0)
134-
multi_json (>= 1.7.5, < 2.0)
135-
multi_test (>= 0.1.2)
136-
cucumber-core (1.5.0)
137-
gherkin (~> 4.0)
138-
cucumber-rails (1.5.0)
139-
capybara (>= 1.1.2, < 3)
140-
cucumber (>= 1.3.8, < 4)
141-
mime-types (>= 1.17, < 4)
142-
nokogiri (~> 1.5)
143-
railties (>= 4, < 5.2)
144-
cucumber-wire (0.0.1)
145123
diff-lcs (1.3)
146-
dnsruby (1.60.1)
147124
docile (1.1.5)
148125
erubis (2.7.0)
149126
factory_girl (4.8.0)
@@ -153,10 +130,8 @@ GEM
153130
railties (>= 3.0.0)
154131
faraday (0.12.1)
155132
multipart-post (>= 1.2, < 3)
156-
ffi (1.9.18)
157133
filesize (0.1.1)
158134
fivemat (1.3.5)
159-
gherkin (4.1.3)
160135
google-protobuf (3.3.0)
161136
googleauth (0.5.1)
162137
faraday (~> 0.9)
@@ -216,14 +191,10 @@ GEM
216191
recog (~> 2.0)
217192
metasploit_payloads-mettle (0.1.10)
218193
method_source (0.8.2)
219-
mime-types (3.1)
220-
mime-types-data (~> 3.2015)
221-
mime-types-data (3.2016.0521)
222194
mini_portile2 (2.2.0)
223195
minitest (5.10.2)
224196
msgpack (1.1.0)
225197
multi_json (1.12.1)
226-
multi_test (0.1.2)
227198
multipart-post (2.0.0)
228199
nessus_rest (0.1.6)
229200
net-ssh (4.1.0)
@@ -274,7 +245,6 @@ GEM
274245
rake (>= 0.8.7)
275246
thor (>= 0.18.1, < 2.0)
276247
rake (12.0.0)
277-
rb-readline (0.5.4)
278248
recog (2.1.11)
279249
nokogiri
280250
redcarpet (3.4.0)
@@ -358,8 +328,6 @@ GEM
358328
sawyer (0.8.1)
359329
addressable (>= 2.3.5, < 2.6)
360330
faraday (~> 0.8, < 1.0)
361-
shoulda-matchers (3.1.1)
362-
activesupport (>= 4.0.0)
363331
signet (0.7.3)
364332
addressable (~> 2.3)
365333
faraday (~> 0.9)
@@ -386,31 +354,27 @@ GEM
386354
activemodel (>= 4.2.7)
387355
activesupport (>= 4.2.7)
388356
xmlrpc (0.3.0)
389-
xpath (2.0.0)
390-
nokogiri (~> 1.3)
391357
yard (0.9.9)
392358

393359
PLATFORMS
394360
ruby
395361

396362
DEPENDENCIES
397-
aruba
398-
cucumber-rails
363+
dnsruby!
399364
factory_girl_rails
400365
fivemat
401366
metasploit-aggregator
402367
metasploit-framework!
403368
octokit
404369
pry
405370
rake
371+
rb-readline!
406372
redcarpet
407373
rspec-rails
408374
rspec-rerun
409-
shoulda-matchers
410375
simplecov
411376
timecop
412-
xpath (= 2.0)
413377
yard
414378

415379
BUNDLED WITH
416-
1.15.1
380+
1.15.2

LICENSE_GEMS

Lines changed: 37 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,70 @@
11
This file is auto-generated by tools/dev/update_gem_licenses.sh
2-
actionpack, 4.2.8, MIT
3-
actionview, 4.2.8, MIT
4-
activemodel, 4.2.8, MIT
5-
activerecord, 4.2.8, MIT
6-
activesupport, 4.2.8, MIT
2+
Ascii85, 1.0.2, MIT
3+
actionpack, 4.2.9, MIT
4+
actionview, 4.2.9, MIT
5+
activemodel, 4.2.9, MIT
6+
activerecord, 4.2.9, MIT
7+
activesupport, 4.2.9, MIT
78
addressable, 2.5.1, "Apache 2.0"
9+
afm, 0.2.2, MIT
810
arel, 6.0.4, MIT
911
arel-helpers, 2.4.0, unknown
10-
aruba, 0.14.2, MIT
1112
backports, 3.8.0, MIT
1213
bcrypt, 3.1.11, MIT
1314
bindata, 2.4.0, ruby
1415
bit-struct, 0.16, ruby
1516
builder, 3.2.3, MIT
16-
bundler, 1.15.0, MIT
17-
capybara, 2.14.0, MIT
18-
childprocess, 0.5.9, MIT
17+
bundler, 1.15.1, MIT
1918
coderay, 1.1.1, MIT
20-
contracts, 0.16.0, "Simplified BSD"
21-
cucumber, 2.4.0, MIT
22-
cucumber-core, 1.5.0, MIT
23-
cucumber-rails, 1.5.0, MIT
24-
cucumber-wire, 0.0.1, MIT
2519
diff-lcs, 1.3, "MIT, Artistic-2.0, GPL-2.0+"
20+
dnsruby, 1.60.1, "Apache 2.0"
2621
docile, 1.1.5, MIT
2722
erubis, 2.7.0, MIT
2823
factory_girl, 4.8.0, MIT
2924
factory_girl_rails, 4.8.0, MIT
3025
faraday, 0.12.1, MIT
31-
ffi, 1.9.18, "New BSD"
3226
filesize, 0.1.1, MIT
33-
fivemat, 1.3.3, MIT
34-
gherkin, 4.1.3, MIT
27+
fivemat, 1.3.5, MIT
3528
google-protobuf, 3.3.0, "New BSD"
3629
googleauth, 0.5.1, "Apache 2.0"
37-
grpc, 1.3.4, "New BSD"
38-
i18n, 0.8.1, MIT
30+
grpc, 1.4.1, "New BSD"
31+
hashery, 2.1.2, "Simplified BSD"
32+
i18n, 0.8.6, MIT
3933
jsobfu, 0.4.2, "New BSD"
4034
json, 2.1.0, ruby
4135
jwt, 1.5.6, MIT
4236
little-plugger, 1.1.4, MIT
4337
logging, 2.2.2, MIT
4438
loofah, 2.0.3, MIT
45-
memoist, 0.15.0, MIT
39+
memoist, 0.16.0, MIT
4640
metasm, 1.0.3, LGPL
4741
metasploit-aggregator, 0.2.1, "New BSD"
48-
metasploit-concern, 2.0.4, "New BSD"
49-
metasploit-credential, 2.0.9, "New BSD"
50-
metasploit-framework, 4.14.23, "New BSD"
42+
metasploit-concern, 2.0.5, "New BSD"
43+
metasploit-credential, 2.0.10, "New BSD"
44+
metasploit-framework, 4.15.0, "New BSD"
5145
metasploit-model, 2.0.4, "New BSD"
52-
metasploit-payloads, 1.2.29, "3-clause (or ""modified"") BSD"
53-
metasploit_data_models, 2.0.14, "New BSD"
54-
metasploit_payloads-mettle, 0.1.9, "3-clause (or ""modified"") BSD"
46+
metasploit-payloads, 1.2.37, "3-clause (or ""modified"") BSD"
47+
metasploit_data_models, 2.0.15, "New BSD"
48+
metasploit_payloads-mettle, 0.1.10, "3-clause (or ""modified"") BSD"
5549
method_source, 0.8.2, MIT
56-
mime-types, 3.1, MIT
57-
mime-types-data, 3.2016.0521, MIT
58-
mini_portile2, 2.1.0, MIT
50+
mini_portile2, 2.2.0, MIT
5951
minitest, 5.10.2, MIT
6052
msgpack, 1.1.0, "Apache 2.0"
6153
multi_json, 1.12.1, MIT
62-
multi_test, 0.1.2, MIT
6354
multipart-post, 2.0.0, MIT
6455
nessus_rest, 0.1.6, MIT
6556
net-ssh, 4.1.0, MIT
6657
network_interface, 0.0.1, MIT
67-
nexpose, 6.0.0, BSD
68-
nokogiri, 1.7.2, MIT
58+
nexpose, 6.1.0, BSD
59+
nokogiri, 1.8.0, MIT
6960
octokit, 4.7.0, MIT
7061
openssl-ccm, 1.2.1, MIT
7162
openvas-omp, 0.0.4, MIT
7263
os, 0.9.6, MIT
7364
packetfu, 1.1.13, BSD
7465
patch_finder, 1.0.2, "New BSD"
7566
pcaprub, 0.12.4, LGPL-2.1
67+
pdf-reader, 2.0.0, MIT
7668
pg, 0.20.0, "New BSD"
7769
pg_array_parser, 0.0.9, unknown
7870
postgres_ext, 3.0.0, MIT
@@ -83,14 +75,14 @@ rack-test, 0.6.3, MIT
8375
rails-deprecated_sanitizer, 1.0.3, MIT
8476
rails-dom-testing, 1.0.8, MIT
8577
rails-html-sanitizer, 1.0.3, MIT
86-
railties, 4.2.8, MIT
78+
railties, 4.2.9, MIT
8779
rake, 12.0.0, MIT
8880
rb-readline, 0.5.4, BSD
89-
recog, 2.1.8, unknown
81+
recog, 2.1.11, unknown
9082
redcarpet, 3.4.0, MIT
91-
rex-arch, 0.1.4, "New BSD"
92-
rex-bin_tools, 0.1.3, "New BSD"
93-
rex-core, 0.1.10, "New BSD"
83+
rex-arch, 0.1.9, "New BSD"
84+
rex-bin_tools, 0.1.4, "New BSD"
85+
rex-core, 0.1.11, "New BSD"
9486
rex-encoder, 0.1.4, "New BSD"
9587
rex-exploitation, 0.1.14, "New BSD"
9688
rex-java, 0.1.5, "New BSD"
@@ -101,23 +93,25 @@ rex-powershell, 0.1.72, "New BSD"
10193
rex-random_identifier, 0.1.2, "New BSD"
10294
rex-registry, 0.1.3, "New BSD"
10395
rex-rop_builder, 0.1.3, "New BSD"
104-
rex-socket, 0.1.6, "New BSD"
96+
rex-socket, 0.1.8, "New BSD"
10597
rex-sslscan, 0.1.4, "New BSD"
10698
rex-struct2, 0.1.2, "New BSD"
10799
rex-text, 0.2.15, "New BSD"
108100
rex-zip, 0.1.3, "New BSD"
109101
rkelly-remix, 0.0.7, MIT
110102
robots, 0.10.1, MIT
103+
rspec, 3.6.0, MIT
111104
rspec-core, 3.6.0, MIT
112105
rspec-expectations, 3.6.0, MIT
113106
rspec-mocks, 3.6.0, MIT
114107
rspec-rails, 3.6.0, MIT
108+
rspec-rerun, 1.1.0, MIT
115109
rspec-support, 3.6.0, MIT
116-
ruby_smb, 0.0.17, "New BSD"
110+
ruby-rc4, 0.1.5, MIT
111+
ruby_smb, 0.0.18, "New BSD"
117112
rubyntlm, 0.6.2, MIT
118113
rubyzip, 1.2.1, "Simplified BSD"
119114
sawyer, 0.8.1, MIT
120-
shoulda-matchers, 3.1.1, MIT
121115
signet, 0.7.3, "Apache 2.0"
122116
simplecov, 0.14.1, MIT
123117
simplecov-html, 0.10.1, MIT
@@ -126,10 +120,11 @@ sqlite3, 1.3.13, "New BSD"
126120
sshkey, 1.9.0, MIT
127121
thor, 0.19.4, MIT
128122
thread_safe, 0.3.6, "Apache 2.0"
129-
timecop, 0.8.1, MIT
123+
timecop, 0.9.1, MIT
124+
ttfunk, 1.5.1, "Nonstandard, GPL-2.0, GPL-3.0"
130125
tzinfo, 1.2.3, MIT
131126
tzinfo-data, 1.2017.2, MIT
132127
windows_error, 0.1.2, BSD
128+
xdr, 2.0.0, "Apache 2.0"
133129
xmlrpc, 0.3.0, ruby
134-
xpath, 2.1.0, MIT
135130
yard, 0.9.9, MIT

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ RUN apk update && \
2424
bison \
2525
build-base \
2626
ruby-dev \
27-
libffi-dev\
2827
openssl-dev \
2928
readline-dev \
3029
sqlite-dev \
@@ -35,6 +34,7 @@ RUN apk update && \
3534
yaml-dev \
3635
zlib-dev \
3736
ncurses-dev \
37+
git \
3838
&& echo "gem: --no-ri --no-rdoc" > /etc/gemrc \
3939
&& bundle install --system $BUNDLER_ARGS \
4040
&& apk del .ruby-builddeps \

docker/bin/msfvenom

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@ if [[ -z "$MSF_PATH" ]]; then
1717
MSF_PATH=$(dirname $(dirname $path))
1818
fi
1919

20+
if [[ -n "$MSF_BUILD" ]]; then
21+
docker-compose -f $MSF_PATH/docker-compose.yml build
22+
fi
23+
2024
cd $MSF_PATH
2125
docker-compose run --rm --service-ports ms ./msfvenom "$@"

0 commit comments

Comments
 (0)