Skip to content

Commit c09796e

Browse files
committed
Merge master
2 parents 53530b3 + 6edc0c8 commit c09796e

File tree

3,815 files changed

+25564
-13427
lines changed

Some content is hidden

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

3,815 files changed

+25564
-13427
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ data/java
9090

9191
# Avoid checking in Meterpreter libs that are built from
9292
# private source. If you're interested in this functionality,
93-
# check out Metasploit Pro: http://metasploit.com/download
93+
# check out Metasploit Pro: https://metasploit.com/download
9494
data/meterpreter/ext_server_pivot.*.dll
9595

9696
# Avoid checking in metakitty, the source for

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ data/java
7878

7979
# Avoid checking in Meterpreter libs that are built from
8080
# private source. If you're interested in this functionality,
81-
# check out Metasploit Pro: http://metasploit.com/download
81+
# check out Metasploit Pro: https://metasploit.com/download
8282
data/meterpreter/ext_server_pivot.*.dll
8383

8484
# Avoid checking in metakitty, the source for
@@ -91,3 +91,4 @@ docker-compose.local*
9191

9292
# Ignore python bytecode
9393
*.pyc
94+
rspec.failures

.rubocop.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,57 @@
88

99
# inherit_from: .rubocop_todo.yml
1010

11+
AllCops:
12+
TargetRubyVersion: 2.2
13+
1114
Metrics/ClassLength:
1215
Description: 'Most Metasploit modules are quite large. This is ok.'
1316
Enabled: true
1417
Exclude:
1518
- 'modules/**/*'
1619

20+
Metrics/AbcSize:
21+
Enabled: false
22+
Description: 'This is often a red-herring'
23+
24+
Metrics/CyclomaticComplexity:
25+
Enabled: false
26+
Description: 'This is often a red-herring'
27+
28+
Metrics/PerceivedComplexity:
29+
Enabled: false
30+
Description: 'This is often a red-herring'
31+
32+
Style/FrozenStringLiteralComment:
33+
Enabled: false
34+
Description: 'We cannot support this yet without a lot of things breaking'
35+
36+
Style/RedundantReturn:
37+
Description: 'This often looks weird when mixed with actual returns, and hurts nothing'
38+
Enabled: false
39+
1740
Style/Documentation:
1841
Enabled: true
1942
Description: 'Most Metasploit modules do not have class documentation.'
2043
Exclude:
2144
- 'modules/**/*'
2245

46+
Layout/IndentHeredoc:
47+
Enabled: false
48+
Description: 'We need to leave this disabled for Ruby 2.2 compat, remove in 2018'
49+
50+
Style/GuardClause:
51+
Enabled: false
52+
Description: 'This often introduces bugs in tested code'
53+
54+
Style/NegatedIf:
55+
Enabled: false
56+
Description: 'This often introduces bugs in tested code'
57+
58+
Style/ConditionalAssignment:
59+
Enabled: false
60+
Description: 'This is confusing for folks coming from other languages'
61+
2362
Style/Encoding:
2463
Enabled: true
2564
Description: 'We prefer binary to UTF-8.'
@@ -53,7 +92,7 @@ Style/NumericLiterals:
5392
Enabled: false
5493
Description: 'This often hurts readability for exploit-ish code.'
5594

56-
Style/SpaceInsideBrackets:
95+
Layout/SpaceInsideBrackets:
5796
Enabled: false
5897
Description: 'Until module template are final, most modules will fail this.'
5998

.travis.yml

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

1818
env:
19-
- CMD=bundle exec rake "cucumber cucumber:boot" CREATE_BINSTUBS=true
20-
- CMD=bundle exec rake spec SPEC_OPTS="--tag content"
21-
- CMD=bundle exec rake spec SPEC_OPTS="--tag ~content"
19+
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
20+
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"'
2221

2322
matrix:
2423
fast_finish: true
@@ -32,14 +31,18 @@ before_install:
3231
- ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
3332
- ls -la ./.git/hooks
3433
- ./.git/hooks/post-merge
34+
# Update the bundler
35+
- gem install bundler
3536
before_script:
3637
- cp config/database.yml.travis config/database.yml
3738
- bundle exec rake --version
3839
- bundle exec rake db:create
3940
- bundle exec rake db:migrate
40-
script:
4141
# fail build if db/schema.rb update is not committed
42-
- git diff --exit-code db/schema.rb && $CMD
42+
- git diff --exit-code db/schema.rb
43+
script:
44+
- echo "${CMD}"
45+
- bash -c "${CMD}"
4346

4447
notifications:
4548
irc: "irc.freenode.org#msfnotify"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ already way ahead of the curve, so keep it up!
119119
[YARD]:http://yardoc.org
120120
[Issues]:https://github.com/rapid7/metasploit-framework/issues
121121
[Freenode IRC channel]:http://webchat.freenode.net/?channels=%23metasploit&uio=d4
122-
[metasploit-hackers]:https://lists.sourceforge.net/lists/listinfo/metasploit-hackers
122+
[metasploit-hackers]:https://groups.google.com/forum/#!forum/metasploit-hackers

Gemfile

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

6+
67
gem 'thin'
78
gem 'sinatra'
8-
gem 'ruby-prof'
9-
gem 'bit-struct', git: 'https://github.com/busterb/bit-struct', branch: 'ruby-2.4'
10-
gem 'method_source', git: 'https://github.com/banister/method_source', branch: 'master'
119

1210
# separate from test as simplecov is not run on travis-ci
1311
group :coverage do
@@ -21,14 +19,13 @@ group :development do
2119
# generating documentation
2220
gem 'yard'
2321
# for development and testing purposes
24-
gem 'pry', git: 'https://github.com/pry/pry', branch: 'master'
22+
gem 'pry'
2523
# module documentation
2624
gem 'octokit'
27-
# metasploit-aggregator as a framework only option for now
2825
# Metasploit::Aggregator external session proxy
29-
gem 'metasploit-aggregator'
3026

31-
#gem 'rex-core', path: '/home/chlee/rapid7/rex-core'
27+
# Disabled for now for crypttlv updates
28+
# gem 'metasploit-aggregator'
3229
end
3330

3431
group :development, :test do
@@ -41,14 +38,10 @@ group :development, :test do
4138
# Define `rake spec`. Must be in development AND test so that its available by default as a rake test when the
4239
# environment is development
4340
gem 'rspec-rails'
41+
gem 'rspec-rerun'
4442
end
4543

4644
group :test do
47-
# cucumber extension for testing command line applications, like msfconsole
48-
gem 'aruba'
49-
# cucumber + automatic database cleaning with database_cleaner
50-
gem 'cucumber-rails', :require => false
51-
gem 'shoulda-matchers'
5245
# Manipulate Time.now in specs
5346
gem 'timecop'
5447
end

0 commit comments

Comments
 (0)