Skip to content

Commit 934af4c

Browse files
author
Matthew Hall
committed
Merge branch 'master' into module-smbfileserver
2 parents 49971a6 + a4c6e42 commit 934af4c

File tree

4,455 files changed

+167936
-90971
lines changed

Some content is hidden

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

4,455 files changed

+167936
-90971
lines changed

.gitignore

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
.bundle
2+
Gemfile.local
3+
Gemfile.local.lock
24
# Rubymine project directory
35
.idea
46
# Sublime Text project directory (not created by ST by default)
57
.sublime-project
68
# RVM control file, keep this to avoid backdooring Metasploit
79
.rvmrc
10+
# Allow for a local choice of (unsupported / semi-supported) ruby versions
11+
# See PR #4136 for usage, but example usage for rvm:
12+
# rvm --create --versions-conf use 2.1.4@metasploit-framework
13+
# Because rbenv doesn't use .versions.conf, to achieve this same functionality, run:
14+
# rbenv shell 2.1.4
15+
.versions.conf
816
# YARD cache directory
917
.yardoc
1018
# Mac OS X files
1119
.DS_Store
1220
# database config for testing
1321
config/database.yml
22+
# target config file for testing
23+
features/support/targets.yml
1424
# simplecov coverage data
1525
coverage
16-
data/meterpreter/ext_server_pivot.x86.dll
17-
data/meterpreter/ext_server_pivot.x64.dll
1826
doc/
1927
external/source/meterpreter/java/bin
2028
external/source/meterpreter/java/build
@@ -48,6 +56,34 @@ tags
4856
*.opensdf
4957
*.user
5058

59+
# Rails log directory
60+
/log
61+
# Rails tmp directory
62+
/tmp
63+
5164
# ignore release/debug folders for exploits
5265
external/source/exploits/**/Debug
5366
external/source/exploits/**/Release
67+
68+
# Avoid checking in Meterpreter binaries. These are supplied upstream by
69+
# the meterpreter_bins gem.
70+
data/meterpreter/elevator.*.dll
71+
data/meterpreter/ext_server_espia.*.dll
72+
data/meterpreter/ext_server_extapi.*.dll
73+
data/meterpreter/ext_server_incognito.*.dll
74+
data/meterpreter/ext_server_kiwi.*.dll
75+
data/meterpreter/ext_server_lanattacks.*.dll
76+
data/meterpreter/ext_server_mimikatz.*.dll
77+
data/meterpreter/ext_server_priv.*.dll
78+
data/meterpreter/ext_server_stdapi.*.dll
79+
data/meterpreter/metsrv.*.dll
80+
data/meterpreter/screenshot.*.dll
81+
82+
# Avoid checking in Meterpreter libs that are built from
83+
# private source. If you're interested in this functionality,
84+
# check out Metasploit Pro: http://metasploit.com/download
85+
data/meterpreter/ext_server_pivot.*.dll
86+
87+
# Avoid checking in metakitty, the source for
88+
# https://rapid7.github.io/metasploit-framework. It's an orphan branch.
89+
/metakitty

.mailmap

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,50 @@
1+
bcook-r7 <bcook-r7@github> Brent Cook <[email protected]>
12
bturner-r7 <bturner-r7@github> Brandon Turner <[email protected]>
3+
cdoughty-r7 <cdoughty-r7@github> Chris Doughty <[email protected]>
4+
dheiland-r7 <dheiland-r7@github> Deral Heiland <[email protected]>
25
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
3-
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]> # aka TheLightCosine
6+
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
7+
dmaloney-r7 <dmaloney-r7@github> dmaloney-r7 <[email protected]>
48
ecarey-r7 <ecarey-r7@github> Erran Carey <[email protected]>
59
farias-r7 <farias-r7@github> Fernando Arias <[email protected]>
610
hmoore-r7 <hmoore-r7@github> HD Moore <[email protected]>
711
hmoore-r7 <hmoore-r7@github> HD Moore <[email protected]>
12+
jhart-r7 <jhart-r7@github> Jon Hart <[email protected]>
813
jlee-r7 <jlee-r7@github> egypt <[email protected]> # aka egypt
914
jlee-r7 <jlee-r7@github> James Lee <[email protected]> # aka egypt
1015
jlee-r7 <jlee-r7@github> James Lee <[email protected]>
11-
joev-r7 <joev-r7@github> joev <[email protected]>
1216
joev-r7 <joev-r7@github> Joe Vennix <[email protected]>
17+
joev-r7 <joev-r7@github> Joe Vennix <[email protected]>
18+
joev-r7 <joev-r7@github> joev <[email protected]>
19+
joev-r7 <joev-r7@github> jvennix-r7 <[email protected]>
20+
joev-r7 <joev-r7@github> jvennix-r7 <[email protected]>
1321
jvazquez-r7 <jvazquez-r7@github> jvazquez-r7 <[email protected]>
1422
jvazquez-r7 <jvazquez-r7@github> jvazquez-r7 <[email protected]>
23+
kgray-r7 <kgray-r7@github> Kyle Gray <[email protected]>
1524
limhoff-r7 <limhoff-r7@github> Luke Imhoff <[email protected]>
25+
lsanchez-r7 <lsanchez-r7@github> darkbushido <[email protected]>
26+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
27+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
28+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
29+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
30+
mbuck-r7 <mbuck-r7@github> Matt Buck <[email protected]>
31+
mbuck-r7 <mbuck-r7@github> Matt Buck <[email protected]>
32+
mschloesser-r7 <mschloesser-r7@github> Mark Schloesser <[email protected]>
33+
mschloesser-r7 <mschloesser-r7@github> mschloesser-r7 <[email protected]>
34+
parzamendi-r7 <parzamendi-r7@github> parzamendi-r7 <[email protected]>
1635
shuckins-r7 <shuckins-r7@github> Samuel Huckins <[email protected]>
1736
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
1837
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
1938
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
39+
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
2040
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
2141
wchen-r7 <wchen-r7@github> sinn3r <[email protected]> # aka sinn3r
2242
wchen-r7 <wchen-r7@github> sinn3r <[email protected]>
2343
wchen-r7 <wchen-r7@github> Wei Chen <[email protected]>
2444
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
2545
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
2646
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
47+
wvu-r7 <wvu-r7@github> wvu-r7 <[email protected]>
2748

2849
# Above this line are current Rapid7 employees. Below this paragraph are
2950
# volunteers, former employees, and potential Rapid7 employees who, at
@@ -33,10 +54,13 @@ wvu-r7 <wvu-r7@github> William Vu <[email protected]>
3354
# let [email protected] know.
3455

3556
bannedit <bannedit@github> David Rude <[email protected]>
36-
Brandon Perry <brandonprry@github> Brandon Perry <[email protected]>
37-
Brandon Perry <brandonprry@github> Brandon Perry <bperry@bperry-rapid7.(none)>
38-
Brian Wallace <bwall@github> (B)rian (Wall)ace <[email protected]>
39-
Brian Wallace <bwall@github> Brian Wallace <[email protected]>
57+
bcoles <bcoles@github> bcoles <[email protected]>
58+
bcoles <bcoles@github> Brendan Coles <[email protected]>
59+
brandonprry <brandonprry@github> Brandon Perry <[email protected]>
60+
brandonprry <brandonprry@github> Brandon Perry <bperry@bperry-rapid7.(none)>
61+
brandonprry <brandonprry@github> Brandon Perry <[email protected]>
62+
bwall <bwall@github> (B)rian (Wall)ace <[email protected]>
63+
bwall <bwall@github> Brian Wallace <[email protected]>
4064
ceballosm <ceballosm@github> Mario Ceballos <[email protected]>
4165
Chao-mu <Chao-Mu@github> Chao Mu <[email protected]>
4266
Chao-mu <Chao-Mu@github> chao-mu <[email protected]>
@@ -58,35 +82,44 @@ jduck <jduck@github> Joshua Drake <[email protected]>
5882
jgor <jgor@github> jgor <[email protected]>
5983
kernelsmith <kernelsmith@github> Joshua Smith <[email protected]>
6084
kernelsmith <kernelsmith@github> kernelsmith <kernelsmith@kernelsmith>
85+
kernelsmith <kernelsmith@github> Joshua Smith <[email protected]>
6186
kost <kost@github> Vlatko Kosturjak <[email protected]>
6287
kris <kris@???> kris <>
6388
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
6489
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
6590
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
91+
m-1-k-3 <m-1-k-3@github> Michael Messner <[email protected]>
6692
Meatballs1 <Meatballs1@github> Ben Campbell <[email protected]>
6793
Meatballs1 <Meatballs1@github> Meatballs <[email protected]>
68-
Meatballs1 <Meatballs1@github> Meatballs1 <[email protected]>
94+
Meatballs1 <Meatballs1@github> Meatballs1 <[email protected]>
6995
mubix <mubix@github> Rob Fuller <[email protected]>
7096
nevdull77 <nevdull77@github> Patrik Karlsson <[email protected]>
71-
nmonkee <nmonkee@github> nmonkee <[email protected]>
97+
nmonkee <nmonkee@github> nmonkee <[email protected]>
7298
nullbind <nullbind@github> nullbind <[email protected]>
99+
nullbind <nullbind@github> Scott Sutherland <[email protected]>
73100
ohdae <ohdae@github> ohdae <[email protected]>
74-
OJ <oj@github> OJ Reeves <[email protected]>
75-
OJ <oj@github> OJ <[email protected]>
101+
oj <oj@github> OJ <[email protected]>
102+
oj <oj@github> OJ Reeves <[email protected]>
76103
r3dy <r3dy@github> Royce Davis <[email protected]>
77104
r3dy <r3dy@github> Royce Davis <[email protected]>
78105
Rick Flores <[email protected]> Rick Flores (nanotechz9l) <[email protected]>
79106
rsmudge <rsmudge@github> Raphael Mudge <[email protected]> # Aka `butane
80107
schierlm <schierlm@github> Michael Schierl <[email protected]> # Aka mihi
81108
scriptjunkie <scriptjunkie@github> Matt Weeks <[email protected]>
109+
scriptjunkie <scriptjunkie@github> scriptjunkie <[email protected]>
82110
skape <skape@???> Matt Miller <[email protected]>
83111
spoonm <spoonm@github> Spoon M <[email protected]>
84112
swtornio <swtornio@github> Steve Tornio <[email protected]>
85113
Tasos Laskos <[email protected]> Tasos Laskos <[email protected]>
114+
timwr <timwr@github> Tim <[email protected]>
115+
timwr <timwr@github> Tim Wright <[email protected]>
116+
TomSellers <TomSellers@github> Tom Sellers <[email protected]>
86117
TrustedSec <[email protected]> trustedsec <[email protected]>
118+
zeroSteiner <zeroSteiner@github> Spencer McIntyre <[email protected]>
87119

88120
# Aliases for utility author names. Since they're fake, typos abound
89121

90-
Tab Assassin <[email protected]> Tabasssassin <[email protected]>
91122
Tab Assassin <[email protected]> Tabassassin <[email protected]>
92123
Tab Assassin <[email protected]> TabAssassin <[email protected]>
124+
Tab Assassin <[email protected]> Tabasssassin <[email protected]>
125+
Tab Assassin <[email protected]> URI Assassin <[email protected]>

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
--color
22
--format Fivemat
3+
--require spec_helper

.rubocop.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# This list was intially created by analyzing the last three months (51
2+
# modules) committed to Metasploit Framework. Many, many older modules
3+
# will have offenses, but this should at least provide a baseline for
4+
# new modules.
5+
#
6+
# Updates to this file should include a 'Description' parameter for any
7+
# explaination needed.
8+
9+
# inherit_from: .rubocop_todo.yml
10+
11+
Metrics/ClassLength:
12+
Description: 'Most Metasploit modules are quite large. This is ok.'
13+
Enabled: true
14+
Exclude:
15+
- 'modules/**/*'
16+
17+
Style/Documentation:
18+
Enabled: true
19+
Description: 'Most Metasploit modules do not have class documentation.'
20+
Exclude:
21+
- 'modules/**/*'
22+
23+
Style/Encoding:
24+
Enabled: true
25+
Description: 'We prefer binary to UTF-8.'
26+
EnforcedStyle: 'when_needed'
27+
28+
Metrics/LineLength:
29+
Description: >-
30+
Metasploit modules often pattern match against very
31+
long strings when identifying targets.
32+
Enabled: true
33+
Max: 180
34+
35+
Metrics/MethodLength:
36+
Enabled: true
37+
Description: >-
38+
While the style guide suggests 10 lines, exploit definitions
39+
often exceed 200 lines.
40+
Max: 300
41+
42+
# Basically everything in metasploit needs binary encoding, not UTF-8.
43+
# Disable this here and enforce it through msftidy
44+
Style/Encoding:
45+
Enabled: false
46+
47+
# %q() is super useful for long strings split over multiple lines and
48+
# is very common in module constructors for things like descriptions
49+
Style/UnneededPercentQ:
50+
Enabled: false
51+
52+
Style/NumericLiterals:
53+
Enabled: false
54+
Description: 'This often hurts readability for exploit-ish code.'
55+
56+
Style/SpaceInsideBrackets:
57+
Enabled: false
58+
Description: 'Until module template are final, most modules will fail this.'
59+
60+
Style/StringLiterals:
61+
Enabled: false
62+
Description: 'Single vs double quote fights are largely unproductive.'
63+
64+
Style/WordArray:
65+
Enabled: false
66+
Description: 'Metasploit prefers consistent use of []'
67+
68+
Style/RedundantBegin:
69+
Exclude:
70+
# this pattern is very common and somewhat unavoidable
71+
# def run_host(ip)
72+
# begin
73+
# ...
74+
# rescue ...
75+
# ...
76+
# ensure
77+
# disconnect
78+
# end
79+
# end
80+
- 'modules/**/*'
81+
82+
Documentation:
83+
Exclude:
84+
- 'modules/**/*'

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.3-p484
1+
2.1.5

.simplecov

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ SimpleCov.configure do
3939
# Other library groups
4040
#
4141

42-
add_group 'Fastlib', 'lib/fastlib'
4342
add_group 'Metasm', 'lib/metasm'
4443
add_group 'PacketFu', 'lib/packetfu'
4544
add_group 'Rex', 'lib/rex'

.travis.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,41 @@
1+
bundler_args: --without coverage development pcap
2+
cache: bundler
3+
env:
4+
- RAKE_TASKS="cucumber cucumber:boot"
5+
- RAKE_TASKS=spec SPEC_OPTS="--tag content"
6+
- RAKE_TASKS=spec SPEC_OPTS="--tag ~content"
7+
18
language: ruby
2-
env: MSF_SPOTCHECK_RECENT=1
9+
matrix:
10+
fast_finish: true
311
before_install:
12+
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
413
- rake --version
5-
- sudo apt-get update -qq
6-
- sudo apt-get install -qq libpcap-dev
14+
# Fail build if msftidy is not successful
15+
- ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
16+
- ls -la ./.git/hooks
17+
- ./.git/hooks/post-merge
718
before_script:
8-
- ./tools/msftidy.rb
919
- cp config/database.yml.travis config/database.yml
1020
- bundle exec rake --version
1121
- bundle exec rake db:create
1222
- bundle exec rake db:migrate
13-
23+
script:
24+
# fail build if db/schema.rb update is not committed
25+
- git diff --exit-code && bundle exec rake $RAKE_TASKS
26+
sudo: false
1427
rvm:
15-
#- '1.8.7'
1628
- '1.9.3'
29+
- '2.1'
1730

1831
notifications:
1932
irc: "irc.freenode.org#msfnotify"
2033

2134
git:
2235
depth: 5
36+
37+
# Blacklist certain branches from triggering travis builds
38+
branches:
39+
except:
40+
- gh-pages
41+
- metakitty

.yardopts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
--exclude \.ut\.rb/
44
--exclude \.ts\.rb/
55
--files CONTRIBUTING.md,COPYING,HACKING,LICENSE
6+
app/**/*.rb
67
lib/msf/**/*.rb
8+
lib/metasploit/**/*.rb
79
lib/rex/**/*.rb
10+
plugins/**/*.rb

0 commit comments

Comments
 (0)