Skip to content

Commit 2969da3

Browse files
committed
Merge branch 'upstream-master' into feature/cisco-smi-scanner
2 parents e52e9c1 + 031f487 commit 2969da3

File tree

3,582 files changed

+12643
-9813
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,582 files changed

+12643
-9813
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: 1 addition & 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

.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: 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

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: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ group :development do
1818
gem 'pry'
1919
# module documentation
2020
gem 'octokit'
21-
# metasploit-aggregator as a framework only option for now
2221
# Metasploit::Aggregator external session proxy
23-
gem 'metasploit-aggregator'
22+
# Disabled for now for crypttlv updates
23+
# gem 'metasploit-aggregator'
2424
end
2525

2626
group :development, :test do
@@ -37,14 +37,6 @@ group :development, :test do
3737
end
3838

3939
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'
4540
# Manipulate Time.now in specs
4641
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'
5042
end

0 commit comments

Comments
 (0)