Skip to content

Commit dd5c638

Browse files
committed
Merge remote-tracking branch 'upstream/master' into extapi_service_post
2 parents d2bc0ba + 1f4d62a commit dd5c638

File tree

3,840 files changed

+84041
-38647
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,840 files changed

+84041
-38647
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,20 @@ Gemfile.local.lock
77
.sublime-project
88
# RVM control file, keep this to avoid backdooring Metasploit
99
.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
1016
# YARD cache directory
1117
.yardoc
1218
# Mac OS X files
1319
.DS_Store
1420
# database config for testing
1521
config/database.yml
22+
# target config file for testing
23+
features/support/targets.yml
1624
# simplecov coverage data
1725
coverage
1826
doc/
@@ -50,6 +58,8 @@ tags
5058

5159
# Rails log directory
5260
/log
61+
# Rails tmp directory
62+
/tmp
5363

5464
# ignore release/debug folders for exploits
5565
external/source/exploits/**/Debug
@@ -73,3 +83,7 @@ data/meterpreter/screenshot.*.dll
7383
# private source. If you're interested in this functionality,
7484
# check out Metasploit Pro: http://metasploit.com/download
7585
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 & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +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]>
20-
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
2139
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
40+
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
2241
wchen-r7 <wchen-r7@github> sinn3r <[email protected]> # aka sinn3r
2342
wchen-r7 <wchen-r7@github> sinn3r <[email protected]>
2443
wchen-r7 <wchen-r7@github> Wei Chen <[email protected]>
2544
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
2645
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
2746
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
47+
wvu-r7 <wvu-r7@github> wvu-r7 <[email protected]>
2848

2949
# Above this line are current Rapid7 employees. Below this paragraph are
3050
# volunteers, former employees, and potential Rapid7 employees who, at
@@ -34,10 +54,13 @@ wvu-r7 <wvu-r7@github> William Vu <[email protected]>
3454
# let [email protected] know.
3555

3656
bannedit <bannedit@github> David Rude <[email protected]>
37-
Brandon Perry <brandonprry@github> Brandon Perry <[email protected]>
38-
Brandon Perry <brandonprry@github> Brandon Perry <bperry@bperry-rapid7.(none)>
39-
Brian Wallace <bwall@github> (B)rian (Wall)ace <[email protected]>
40-
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]>
4164
ceballosm <ceballosm@github> Mario Ceballos <[email protected]>
4265
Chao-mu <Chao-Mu@github> Chao Mu <[email protected]>
4366
Chao-mu <Chao-Mu@github> chao-mu <[email protected]>
@@ -59,35 +82,44 @@ jduck <jduck@github> Joshua Drake <[email protected]>
5982
jgor <jgor@github> jgor <[email protected]>
6083
kernelsmith <kernelsmith@github> Joshua Smith <[email protected]>
6184
kernelsmith <kernelsmith@github> kernelsmith <kernelsmith@kernelsmith>
85+
kernelsmith <kernelsmith@github> Joshua Smith <[email protected]>
6286
kost <kost@github> Vlatko Kosturjak <[email protected]>
6387
kris <kris@???> kris <>
6488
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
6589
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
6690
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]>
6792
Meatballs1 <Meatballs1@github> Ben Campbell <[email protected]>
6893
Meatballs1 <Meatballs1@github> Meatballs <[email protected]>
69-
Meatballs1 <Meatballs1@github> Meatballs1 <[email protected]>
94+
Meatballs1 <Meatballs1@github> Meatballs1 <[email protected]>
7095
mubix <mubix@github> Rob Fuller <[email protected]>
7196
nevdull77 <nevdull77@github> Patrik Karlsson <[email protected]>
72-
nmonkee <nmonkee@github> nmonkee <[email protected]>
97+
nmonkee <nmonkee@github> nmonkee <[email protected]>
7398
nullbind <nullbind@github> nullbind <[email protected]>
99+
nullbind <nullbind@github> Scott Sutherland <[email protected]>
74100
ohdae <ohdae@github> ohdae <[email protected]>
75-
OJ <oj@github> OJ Reeves <[email protected]>
76-
OJ <oj@github> OJ <[email protected]>
101+
oj <oj@github> OJ <[email protected]>
102+
oj <oj@github> OJ Reeves <[email protected]>
77103
r3dy <r3dy@github> Royce Davis <[email protected]>
78104
r3dy <r3dy@github> Royce Davis <[email protected]>
79105
Rick Flores <[email protected]> Rick Flores (nanotechz9l) <[email protected]>
80106
rsmudge <rsmudge@github> Raphael Mudge <[email protected]> # Aka `butane
81107
schierlm <schierlm@github> Michael Schierl <[email protected]> # Aka mihi
82108
scriptjunkie <scriptjunkie@github> Matt Weeks <[email protected]>
109+
scriptjunkie <scriptjunkie@github> scriptjunkie <[email protected]>
83110
skape <skape@???> Matt Miller <[email protected]>
84111
spoonm <spoonm@github> Spoon M <[email protected]>
85112
swtornio <swtornio@github> Steve Tornio <[email protected]>
86113
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]>
87117
TrustedSec <[email protected]> trustedsec <[email protected]>
118+
zeroSteiner <zeroSteiner@github> Spencer McIntyre <[email protected]>
88119

89120
# Aliases for utility author names. Since they're fake, typos abound
90121

91-
Tab Assassin <[email protected]> Tabasssassin <[email protected]>
92122
Tab Assassin <[email protected]> Tabassassin <[email protected]>
93123
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: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# inherit_from: .rubocop_todo.yml
1010

11-
Style/ClassLength:
11+
Metrics/ClassLength:
1212
Description: 'Most Metasploit modules are quite large. This is ok.'
1313
Enabled: true
1414
Exclude:
@@ -25,20 +25,30 @@ Style/Encoding:
2525
Description: 'We prefer binary to UTF-8.'
2626
EnforcedStyle: 'when_needed'
2727

28-
Style/LineLength:
28+
Metrics/LineLength:
2929
Description: >-
3030
Metasploit modules often pattern match against very
3131
long strings when identifying targets.
3232
Enabled: true
3333
Max: 180
3434

35-
Style/MethodLength:
35+
Metrics/MethodLength:
3636
Enabled: true
3737
Description: >-
3838
While the style guide suggests 10 lines, exploit definitions
3939
often exceed 200 lines.
4040
Max: 300
4141

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+
4252
Style/NumericLiterals:
4353
Enabled: false
4454
Description: 'This often hurts readability for exploit-ish code.'
@@ -53,4 +63,22 @@ Style/StringLiterals:
5363

5464
Style/WordArray:
5565
Enabled: false
56-
Description: 'Metasploit prefers consistent use of []'
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-p547
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: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
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
9+
matrix:
10+
fast_finish: true
211
before_install:
12+
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
313
- rake --version
4-
- sudo apt-get update -qq
5-
- sudo apt-get install -qq libpcap-dev
614
# Uncomment when we have fewer shipping msftidy warnings.
715
# Merge committers will still be checking, just not autofailing.
8-
# See https://dev.metasploit.com/redmine/issues/8498
916
# - ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
1017
# - ls -la ./.git/hooks
1118
# - ./.git/hooks/post-merge
@@ -14,13 +21,22 @@ before_script:
1421
- bundle exec rake --version
1522
- bundle exec rake db:create
1623
- bundle exec rake db:migrate
17-
24+
script:
25+
# fail build if db/schema.rb update is not committed
26+
- git diff --exit-code && bundle exec rake $RAKE_TASKS
27+
sudo: false
1828
rvm:
19-
#- '1.8.7'
2029
- '1.9.3'
30+
- '2.1'
2131

2232
notifications:
2333
irc: "irc.freenode.org#msfnotify"
2434

2535
git:
2636
depth: 5
37+
38+
# Blacklist certain branches from triggering travis builds
39+
branches:
40+
except:
41+
- gh-pages
42+
- metakitty

CONTRIBUTING.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
Thanks for your interest in making Metasploit -- and therefore, the
44
world -- a better place!
55

6-
Are you about to report a bug? If so, please use our [Redmine Bug
7-
Tracker](https://dev.metasploit.com/redmine/projects/framework). An
8-
account is required but it only takes a minute or two.
6+
Are you about to report a bug? Sorry to hear it.
97

10-
Are you about to report a security vulnerability in Metasploit?
11-
If so, please take a look at Rapid's [Vulnerability
12-
Disclosure Policy](https://www.rapid7.com/disclosure.jsp) policy.
8+
Here's our [Issue tracker](https://github.com/rapid7/metasploit-framework/issues).
9+
Please try to be as specific as you can about your problem, include steps
10+
to reproduce (cut and paste from your console output if it's helpful), and
11+
what you were expecting to happen.
12+
13+
Are you about to report a security vulnerability in Metasploit itself?
14+
How ironic! Please take a look at Rapid7's [Vulnerability
15+
Disclosure Policy](https://www.rapid7.com/disclosure.jsp), and send
16+
your report to [email protected] using [our PGP key](http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2380F85B8AD4DB8D).
1317

1418
Are you about to contribute some new functionality, a bug fix, or a new
1519
Metasploit module? If so, read on...
@@ -33,8 +37,10 @@ and Metasploit's [Common Coding Mistakes](https://github.com/rapid7/metasploit-f
3337
## Code Contributions
3438

3539
* **Do** stick to the [Ruby style guide](https://github.com/bbatsov/ruby-style-guide).
36-
* *Do* get [Rubocop](https://rubygems.org/search?query=rubocop) relatively quiet against the code you are adding or modifying.
40+
* **Do** get [Rubocop](https://rubygems.org/search?query=rubocop) relatively quiet against the code you are adding or modifying.
3741
* **Do** follow the [50/72 rule](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) for Git commit messages.
42+
* **Don't** use the default merge messages when merging from other
43+
branches.
3844
* **Do** create a [topic branch](http://git-scm.com/book/en/Git-Branching-Branching-Workflows#Topic-Branches) to work on instead of working directly on `master`.
3945

4046
### Pull Requests
@@ -51,7 +57,7 @@ Pull requests [#2940](https://github.com/rapid7/metasploit-framework/pull/2940)
5157
#### New Modules
5258

5359
* **Do** run `tools/msftidy.rb` against your module and fix any errors or warnings that come up. Even better would be to set up `msftidy.rb` as a [pre-commit hook](https://github.com/rapid7/metasploit-framework/blob/master/tools/dev/pre-commit-hook.rb).
54-
* **Do** use the [many module mixin APIs](https://dev.metasploit.com/api/). Wheel improvements are welcome; wheel reinventions, not so much.
60+
* **Do** use the [many module mixin APIs](https://rapid7.github.io/metasploit-framework/api/). Wheel improvements are welcome; wheel reinventions, not so much.
5561
* **Don't** include more than one module per pull request.
5662

5763
#### Library Code
@@ -64,18 +70,14 @@ Pull requests [#2940](https://github.com/rapid7/metasploit-framework/pull/2940)
6470
#### Bug Fixes
6571

6672
* **Do** include reproduction steps in the form of verification steps.
67-
* **Do** include a link to the corresponding [Redmine](https://dev.metasploit.com/redmine/projects/framework) issue in the format of `SeeRM #1234` in your commit description.
73+
* **Do** include a link to any corresponding [Issue](https://github.com/rapid7/metasploit-framework/issues) in the format of `See #1234` in your commit description.
6874

6975
## Bug Reports
7076

7177
* **Do** report vulnerabilities in Rapid7 software directly to [email protected].
72-
* **Do** create a Redmine account and report your non-vulnerability bugs there.
7378
* **Do** write a detailed description of your bug and use a descriptive title.
7479
* **Do** include reproduction steps, stack traces, and anything else that might help us verify and fix your bug.
7580
* **Don't** file duplicate reports - search for your bug before filing a new report.
76-
* **Don't** report a bug on GitHub. Use [Redmine](https://dev.metasploit.com/redmine/projects/framework) instead.
77-
78-
Redmine issues [#8762](https://dev.metasploit.com/redmine/issues/8762) and [#8764](https://dev.metasploit.com/redmine/issues/8764) are a couple good examples to follow.
7981

8082
If you need some more guidance, talk to the main body of open
8183
source contributors over on the [Freenode IRC channel](http://webchat.freenode.net/?channels=%23metasploit&uio=d4)

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2006-2013, Rapid7, Inc.
1+
Copyright (C) 2006-2015, Rapid7, Inc.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification,

0 commit comments

Comments
 (0)