Skip to content

Commit ba0b270

Browse files
authored
Merge pull request #5 from rapid7/master
merging master #5
2 parents de02b52 + ab63cae commit ba0b270

File tree

773 files changed

+13635
-3071
lines changed

Some content is hidden

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

773 files changed

+13635
-3071
lines changed

.rubocop.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ Style/FrozenStringLiteralComment:
3333
Enabled: false
3434
Description: 'We cannot support this yet without a lot of things breaking'
3535

36+
Style/RedundantReturn:
37+
Description: 'This often looks weird when mixed with actual returns, and hurts nothing'
38+
Enabled: false
39+
3640
Style/Documentation:
3741
Enabled: true
3842
Description: 'Most Metasploit modules do not have class documentation.'
3943
Exclude:
4044
- 'modules/**/*'
4145

42-
Style/IndentHeredoc:
46+
Layout/IndentHeredoc:
4347
Enabled: false
4448
Description: 'We need to leave this disabled for Ruby 2.2 compat, remove in 2018'
4549

@@ -88,7 +92,7 @@ Style/NumericLiterals:
8892
Enabled: false
8993
Description: 'This often hurts readability for exploit-ish code.'
9094

91-
Style/SpaceInsideBrackets:
95+
Layout/SpaceInsideBrackets:
9296
Enabled: false
9397
Description: 'Until module template are final, most modules will fail this.'
9498

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.1
1+
2.4.2

.travis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,24 @@ addons:
1212
language: ruby
1313
rvm:
1414
- '2.2'
15-
- '2.3.4'
16-
- '2.4.1'
15+
- '2.3.5'
16+
- '2.4.2'
1717

1818
env:
1919
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
2020
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag ~content"'
2121

2222
matrix:
2323
fast_finish: true
24+
25+
jobs:
26+
# build docker image
2427
include:
25-
- rvm: ruby-head
26-
env: CMD="docker-compose -f $TRAVIS_BUILD_DIR/docker-compose.yml build"
28+
- env: CMD="docker-compose -f $TRAVIS_BUILD_DIR/docker-compose.yml build" DOCKER="true"
29+
# we do not need any setup
30+
before_install: skip
31+
install: skip
32+
before_script: skip
2733
before_install:
2834
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
2935
- rake --version
@@ -42,7 +48,8 @@ before_script:
4248
- git diff --exit-code db/schema.rb
4349
script:
4450
- echo "${CMD}"
45-
- bash -c "${CMD}"
51+
# we need travis_wait because the Docker build job can take longer than 10 minutes
52+
- if [[ "${DOCKER}" == "true" ]]; then echo "Starting Docker build job"; travis_wait 40 "${CMD}"; else bash -c "${CMD}"; fi
4653

4754
notifications:
4855
irc: "irc.freenode.org#msfnotify"

.yardopts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
--exclude samples/
33
--exclude \.ut\.rb/
44
--exclude \.ts\.rb/
5-
--files CONTRIBUTING.md,COPYING,HACKING,LICENSE
5+
--files CONTRIBUTING.md,COPYING,LICENSE
66
app/**/*.rb
77
lib/msf/**/*.rb
88
lib/metasploit/**/*.rb

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

docker/Dockerfile renamed to Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.4.1-alpine
1+
FROM ruby:2.4.2-alpine
22
MAINTAINER Rapid7
33

44
ARG BUNDLER_ARGS="--jobs=8 --without development test coverage"
@@ -36,14 +36,12 @@ RUN apk update && \
3636
ncurses-dev \
3737
git \
3838
&& echo "gem: --no-ri --no-rdoc" > /etc/gemrc \
39+
&& gem update --system \
40+
&& gem install bundler \
3941
&& bundle install --system $BUNDLER_ARGS \
4042
&& apk del .ruby-builddeps \
4143
&& rm -rf /var/cache/apk/*
4244

43-
# fix for robots gem not readable (known bug)
44-
# https://github.com/rapid7/metasploit-framework/issues/6068
45-
RUN chmod o+r /usr/local/bundle/gems/robots-*/lib/robots.rb
46-
4745
RUN adduser -g msfconsole -D $MSF_USER
4846

4947
RUN /usr/sbin/setcap cap_net_raw,cap_net_bind_service=+eip $(which ruby)

Gemfile

Lines changed: 2 additions & 2 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

0 commit comments

Comments
 (0)