Skip to content

Commit 32eb1e9

Browse files
authored
Merge pull request #1 from bwatters-r7/prep-8509
bypassuac_injection_winsxs updates and documents
2 parents 23831e6 + ffa29de commit 32eb1e9

File tree

3,849 files changed

+31263
-14857
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,849 files changed

+31263
-14857
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

.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: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +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:
19-
# TODO: restore these tests when the code passes them!
20-
# - CMD='bundle exec rake cucumber cucumber:boot CREATE_BINSTUBS=true'
21-
- CMD='bundle exec rake spec SPEC_OPTS="--tag content"'
22-
- 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"'
2321

2422
matrix:
2523
fast_finish: true
24+
25+
jobs:
26+
# build docker image
2627
include:
27-
- rvm: ruby-head
28-
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
2933
before_install:
3034
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
3135
- rake --version
@@ -44,7 +48,8 @@ before_script:
4448
- git diff --exit-code db/schema.rb
4549
script:
4650
- echo "${CMD}"
47-
- 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
4853

4954
notifications:
5055
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: 4 additions & 6 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"
@@ -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,15 +34,14 @@ RUN apk update && \
3534
yaml-dev \
3635
zlib-dev \
3736
ncurses-dev \
37+
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: 3 additions & 7 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
@@ -33,14 +33,10 @@ group :development, :test do
3333
# Define `rake spec`. Must be in development AND test so that its available by default as a rake test when the
3434
# environment is development
3535
gem 'rspec-rails'
36+
gem 'rspec-rerun'
3637
end
3738

3839
group :test do
39-
# cucumber extension for testing command line applications, like msfconsole
40-
gem 'aruba'
41-
# cucumber + automatic database cleaning with database_cleaner
42-
gem 'cucumber-rails', :require => false
43-
gem 'shoulda-matchers'
4440
# Manipulate Time.now in specs
4541
gem 'timecop'
4642
end

0 commit comments

Comments
 (0)