Skip to content

Commit 101775a

Browse files
committed
Bring rapid7#6545 up to date with upstream-master
2 parents c0a8b01 + 82cec68 commit 101775a

File tree

3,280 files changed

+17203
-10677
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,280 files changed

+17203
-10677
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## Steps to reproduce
2+
3+
How'd you do it?
4+
5+
1. ...
6+
2. ...
7+
8+
This section should also tell us any relevant information about the
9+
environment; for example, if an exploit that used to work is failing,
10+
tell us the victim operating system and service versions.
11+
12+
## Expected behavior
13+
14+
What should happen?
15+
16+
## Current behavior
17+
18+
What happens instead?
19+
20+
You might also want to check the last ~1k lines of
21+
`/opt/metasploit/apps/pro/engine/config/logs/framework.log` or
22+
`~/.msf4/logs/framework.log` for relevant stack traces
23+
24+
25+
## System stuff
26+
27+
### Metasploit version
28+
29+
Get this with the `version` command in msfconsole (or `git log -1 --pretty=oneline` for a source install).
30+
31+
### I installed Metasploit with:
32+
- [ ] Kali package via apt
33+
- [ ] Omnibus installer (nightly)
34+
- [ ] Commercial/Community installer (from http://www.rapid7.com/products/metasploit/download.jsp)
35+
- [ ] Source install (please specify ruby version)
36+
37+
### OS
38+
39+
What OS are you running Metasploit on?
40+
41+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
Tell us what this change does. If you're fixing a bug, please mention
3+
the github issue number.
4+
5+
## Verification
6+
7+
List the steps needed to make sure this thing works
8+
9+
- [ ] Start `msfconsole`
10+
- [ ] `use exploit/windows/smb/ms08_067_netapi`
11+
- [ ] ...
12+
- [ ] **Verify** the thing does what it should
13+
- [ ] **Verify** the thing does not do what it should not
14+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ external/source/exploits/**/Release
6868
# Avoid checking in Meterpreter binaries. These are supplied upstream by
6969
# the metasploit-payloads gem.
7070
data/meterpreter/*.dll
71+
data/meterpreter/*.php
72+
data/meterpreter/*.py
7173
data/meterpreter/*.bin
7274
data/meterpreter/*.jar
7375
data/meterpreter/*.lso

.mailmap

Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
bcook-r7 <bcook-r7@github> <[email protected]>
2-
bcook-r7 <bcook-r7@github> Brent Cook <[email protected]>
3-
bturner-r7 <bturner-r7@github> Brandon Turner <[email protected]>
4-
cdoughty-r7 <cdoughty-r7@github> Chris Doughty <[email protected]>
5-
dheiland-r7 <dheiland-r7@github> Deral Heiland <[email protected]>
6-
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
7-
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
8-
dmaloney-r7 <dmaloney-r7@github> dmaloney-r7 <[email protected]>
9-
dmohanty-r7 <dmohanty-r7@github> Dev Mohanty <[email protected]>
10-
dmohanty-r7 <dmohanty-r7@github> Dev Mohanty <[email protected]>
11-
dmohanty-r7 <dmohanty-r7@github> dmohanty-r7 <[email protected]>
12-
dmohanty-r7 <dmohanty-r7@github> dmohanty-r7 <[email protected]>
13-
ecarey-r7 <ecarey-r7@github> Erran Carey <[email protected]>
14-
farias-r7 <farias-r7@github> Fernando Arias <[email protected]>
15-
gmikeska-r7 <gmikeska-r7@github> Greg Mikeska <[email protected]>
16-
gmikeska-r7 <gmikeska-r7@github> Gregory Mikeska <[email protected]>
17-
hdm <hdm@github> HD Moore <[email protected]>
18-
hdm <hdm@github> HD Moore <[email protected]>
19-
hdm <hdm@github> HD Moore <[email protected]>
20-
jhart-r7 <jhart-r7@github> Jon Hart <[email protected]>
21-
jlee-r7 <jlee-r7@github> <[email protected]> # aka egypt
22-
jlee-r7 <jlee-r7@github> <[email protected]>
23-
kgray-r7 <kgray-r7@github> Kyle Gray <[email protected]>
24-
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
25-
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[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> darkbushido <[email protected]>
29-
lsato-r7 <lsato-r7@github> Louis Sato <[email protected]>
1+
acammack-r7 <acammack-r7@github> Adam Cammack <[email protected]>
2+
bcook-r7 <bcook-r7@github> <[email protected]>
3+
bcook-r7 <bcook-r7@github> Brent Cook <[email protected]>
4+
bturner-r7 <bturner-r7@github> Brandon Turner <[email protected]>
5+
bpatterson-r7 <bpatterson-r7@github> Brian Patterson <[email protected]>
6+
cdoughty-r7 <cdoughty-r7@github> Chris Doughty <[email protected]>
7+
dheiland-r7 <dheiland-r7@github> Deral Heiland <[email protected]>
8+
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
9+
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
10+
dmaloney-r7 <dmaloney-r7@github> dmaloney-r7 <[email protected]>
11+
dmohanty-r7 <dmohanty-r7@github> Dev Mohanty <[email protected]>
12+
dmohanty-r7 <dmohanty-r7@github> Dev Mohanty <[email protected]>
13+
dmohanty-r7 <dmohanty-r7@github> dmohanty-r7 <[email protected]>
14+
dmohanty-r7 <dmohanty-r7@github> dmohanty-r7 <[email protected]>
15+
ecarey-r7 <ecarey-r7@github> Erran Carey <[email protected]>
16+
farias-r7 <farias-r7@github> Fernando Arias <[email protected]>
17+
gmikeska-r7 <gmikeska-r7@github> Greg Mikeska <[email protected]>
18+
gmikeska-r7 <gmikeska-r7@github> Gregory Mikeska <[email protected]>
19+
jhart-r7 <jhart-r7@github> Jon Hart <[email protected]>
20+
jlee-r7 <jlee-r7@github> <[email protected]> # aka egypt
21+
jlee-r7 <jlee-r7@github> <[email protected]>
22+
kgray-r7 <kgray-r7@github> Kyle Gray <[email protected]>
23+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
24+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
25+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
26+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
27+
lsanchez-r7 <lsanchez-r7@github> darkbushido <[email protected]>
28+
lsato-r7 <lsato-r7@github> Louis Sato <[email protected]>
3029
pdeardorff-r7 <pdeardorff-r7@github> Paul Deardorff <[email protected]>
3130
pdeardorff-r7 <pdeardorff-r7@github> pdeardorff-r7 <[email protected]>
32-
sgonzalez-r7 <sgonzalez-r7@github> Sonny Gonzalez <[email protected]>
33-
shuckins-r7 <shuckins-r7@github> Samuel Huckins <[email protected]>
34-
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
35-
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
36-
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
37-
wchen-r7 <wchen-r7@github> <[email protected]> # aka sinn3r
38-
wchen-r7 <wchen-r7@github> <[email protected]>
39-
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
40-
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
41-
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
42-
wvu-r7 <wvu-r7@github> wvu-r7 <[email protected]>
31+
sgonzalez-r7 <sgonzalez-r7@github> Sonny Gonzalez <[email protected]>
32+
shuckins-r7 <shuckins-r7@github> Samuel Huckins <[email protected]>
33+
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
34+
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
35+
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
36+
wchen-r7 <wchen-r7@github> <[email protected]> # aka sinn3r
37+
wchen-r7 <wchen-r7@github> <[email protected]>
38+
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
39+
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
40+
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
41+
wvu-r7 <wvu-r7@github> wvu-r7 <[email protected]>
42+
wwebb-r7 <wwebb-r7@github> William Webb <[email protected]>
4343

4444
# Above this line are current Rapid7 employees. Below this paragraph are
4545
# volunteers, former employees, and potential Rapid7 employees who, at
@@ -83,6 +83,9 @@ g0tmi1k <g0tmi1k@github> <[email protected]>
8383
g0tmi1k <g0tmi1k@github> <[email protected]>
8484
h0ng10 <h0ng10@github> h0ng10 <[email protected]>
8585
h0ng10 <h0ng10@github> Hans-Martin Münch <[email protected]>
86+
hdm <hdm@github> HD Moore <[email protected]>
87+
hdm <hdm@github> HD Moore <[email protected]>
88+
hdm <hdm@github> HD Moore <[email protected]>
8689
jabra <jabra@github> Josh Abraham <[email protected]>
8790
jabra <jabra@github> Joshua Abraham <[email protected]>
8891
jcran <jcran@github> <[email protected]>
@@ -111,6 +114,7 @@ m-1-k-3 <m-1-k-3@github> Michael Messner <[email protected]>
111114
Meatballs1 <Meatballs1@github> <[email protected]>
112115
Meatballs1 <Meatballs1@github> <[email protected]>
113116
mubix <mubix@github> Rob Fuller <[email protected]>
117+
net-ninja <[email protected]> Steven Seeley <[email protected]>
114118
nevdull77 <nevdull77@github> Patrik Karlsson <[email protected]>
115119
nmonkee <nmonkee@github> nmonkee <[email protected]>
116120
nullbind <nullbind@github> nullbind <[email protected]>

.travis.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1+
sudo: false
2+
group: stable
13
bundler_args: --without coverage development pcap
24
cache: bundler
5+
addons:
6+
postgresql: '9.3'
7+
apt:
8+
packages:
9+
- libpcap-dev
10+
- graphviz
11+
language: ruby
12+
rvm:
13+
- '2.1.8'
14+
315
env:
416
- RAKE_TASKS="cucumber cucumber:boot" CREATE_BINSTUBS=true
517
- RAKE_TASKS=spec SPEC_OPTS="--tag content"
618
- RAKE_TASKS=spec SPEC_OPTS="--tag ~content"
719

8-
language: ruby
920
matrix:
1021
fast_finish: true
1122
before_install:
@@ -23,9 +34,6 @@ before_script:
2334
script:
2435
# fail build if db/schema.rb update is not committed
2536
- git diff --exit-code db/schema.rb && bundle exec rake $RAKE_TASKS
26-
sudo: false
27-
rvm:
28-
- '2.1.8'
2937

3038
notifications:
3139
irc: "irc.freenode.org#msfnotify"
@@ -37,10 +45,4 @@ git:
3745
branches:
3846
except:
3947
- gh-pages
40-
- metakitty
41-
42-
addons:
43-
postgresql: '9.3'
44-
apt:
45-
packages:
46-
- libpcap-dev
48+
- metakitty

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ and Metasploit's [Common Coding Mistakes].
3737
* **Do** follow the [50/72 rule] for Git commit messages.
3838
* **Don't** use the default merge messages when merging from other branches.
3939
* **Do** create a [topic branch] to work on instead of working directly on `master`.
40+
* **Do** license your code as BSD 3-clause, BSD 2-clause, or MIT.
4041

4142
### Pull Requests
4243

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ group :development do
1818
gem 'yard'
1919
# for development and testing purposes
2020
gem 'pry'
21+
# module documentation
22+
gem 'octokit', '~> 4.0'
23+
# rails-upgrade staging gems
2124
end
2225

2326
group :development, :test do

Gemfile.lock

Lines changed: 38 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
metasploit-framework (4.11.10)
4+
metasploit-framework (4.11.20)
55
actionpack (>= 4.0.9, < 4.1.0)
66
activerecord (>= 4.0.9, < 4.1.0)
77
activesupport (>= 4.0.9, < 4.1.0)
@@ -10,21 +10,24 @@ PATH
1010
jsobfu (~> 0.4.1)
1111
json
1212
metasm (~> 1.0.2)
13-
metasploit-concern (= 1.0.0)
14-
metasploit-credential (= 1.0.1)
15-
metasploit-model (= 1.0.0)
16-
metasploit-payloads (= 1.0.23)
17-
metasploit_data_models (= 1.2.10)
13+
metasploit-concern
14+
metasploit-credential (= 1.1.0)
15+
metasploit-model (= 1.1.0)
16+
metasploit-payloads (= 1.1.4)
17+
metasploit_data_models (= 1.3.0)
1818
msgpack
1919
network_interface (~> 0.0.1)
2020
nokogiri
21+
octokit
2122
openssl-ccm (= 1.2.1)
2223
packetfu (= 1.1.11)
24+
patch_finder (>= 1.0.2)
2325
pcaprub
2426
pg (>= 0.11)
2527
railties
2628
rb-readline-r7
2729
recog (= 2.0.14)
30+
redcarpet
2831
robots
2932
rubyzip (~> 1.1)
3033
sqlite3
@@ -57,14 +60,15 @@ GEM
5760
multi_json (~> 1.3)
5861
thread_safe (~> 0.1)
5962
tzinfo (~> 0.3.37)
63+
addressable (2.3.8)
6064
arel (4.0.2)
61-
arel-helpers (2.1.1)
62-
activerecord (= 4.0.13)
65+
arel-helpers (2.2.0)
66+
activerecord (>= 3.1.0, < 5)
6367
aruba (0.6.2)
6468
childprocess (>= 0.3.6)
6569
cucumber (>= 1.1.1)
6670
rspec-expectations (>= 2.7.0)
67-
bcrypt (3.1.10)
71+
bcrypt (3.1.11)
6872
builder (3.1.4)
6973
capybara (2.4.4)
7074
mime-types (>= 1.16)
@@ -95,6 +99,8 @@ GEM
9599
factory_girl_rails (4.5.0)
96100
factory_girl (~> 4.5.0)
97101
railties (>= 3.0.0)
102+
faraday (0.9.2)
103+
multipart-post (>= 1.2, < 3)
98104
ffi (1.9.8)
99105
filesize (0.1.1)
100106
fivemat (1.3.2)
@@ -108,29 +114,29 @@ GEM
108114
mail (2.6.3)
109115
mime-types (>= 1.16, < 3)
110116
metasm (1.0.2)
111-
metasploit-concern (1.0.0)
117+
metasploit-concern (1.1.0)
112118
activerecord (>= 4.0.9, < 4.1.0)
113119
activesupport (>= 4.0.9, < 4.1.0)
114120
railties (>= 4.0.9, < 4.1.0)
115-
metasploit-credential (1.0.1)
116-
metasploit-concern (~> 1.0)
117-
metasploit-model (~> 1.0)
118-
metasploit_data_models (~> 1.0)
121+
metasploit-credential (1.1.0)
122+
metasploit-concern (~> 1.1)
123+
metasploit-model (~> 1.1)
124+
metasploit_data_models (~> 1.3)
119125
pg
120126
railties
121127
rubyntlm
122128
rubyzip (~> 1.1)
123-
metasploit-model (1.0.0)
129+
metasploit-model (1.1.0)
124130
activemodel (>= 4.0.9, < 4.1.0)
125131
activesupport (>= 4.0.9, < 4.1.0)
126132
railties (>= 4.0.9, < 4.1.0)
127-
metasploit-payloads (1.0.23)
128-
metasploit_data_models (1.2.10)
133+
metasploit-payloads (1.1.4)
134+
metasploit_data_models (1.3.0)
129135
activerecord (>= 4.0.9, < 4.1.0)
130136
activesupport (>= 4.0.9, < 4.1.0)
131137
arel-helpers
132-
metasploit-concern (~> 1.0)
133-
metasploit-model (~> 1.0)
138+
metasploit-concern (~> 1.1)
139+
metasploit-model (~> 1.1)
134140
pg
135141
postgres_ext
136142
railties (>= 4.0.9, < 4.1.0)
@@ -139,20 +145,24 @@ GEM
139145
mime-types (2.6.1)
140146
mini_portile2 (2.0.0)
141147
minitest (4.7.5)
142-
msgpack (0.7.1)
148+
msgpack (0.7.4)
143149
multi_json (1.11.2)
144150
multi_test (0.1.2)
151+
multipart-post (2.0.0)
145152
network_interface (0.0.1)
146153
nokogiri (1.6.7.2)
147154
mini_portile2 (~> 2.0.0.rc2)
155+
octokit (4.2.0)
156+
sawyer (~> 0.6.0, >= 0.5.3)
148157
openssl-ccm (1.2.1)
149158
packetfu (1.1.11)
150159
network_interface (~> 0.0)
151160
pcaprub (~> 0.12)
152-
pcaprub (0.12.0)
161+
patch_finder (1.0.2)
162+
pcaprub (0.12.1)
153163
pg (0.18.4)
154164
pg_array_parser (0.0.9)
155-
postgres_ext (2.4.1)
165+
postgres_ext (3.0.0)
156166
activerecord (>= 4.0.0)
157167
arel (>= 4.0.1)
158168
pg_array_parser (~> 0.0.9)
@@ -200,8 +210,11 @@ GEM
200210
rspec-mocks (~> 3.3.0)
201211
rspec-support (~> 3.3.0)
202212
rspec-support (3.3.0)
203-
rubyntlm (0.5.2)
204-
rubyzip (1.1.7)
213+
rubyntlm (0.6.0)
214+
rubyzip (1.2.0)
215+
sawyer (0.6.0)
216+
addressable (~> 2.3.5)
217+
faraday (~> 0.8, < 0.10)
205218
shoulda-matchers (2.8.0)
206219
activesupport (>= 3.0.0)
207220
simplecov (0.9.2)
@@ -238,6 +251,7 @@ DEPENDENCIES
238251
factory_girl_rails (~> 4.5.0)
239252
fivemat (~> 1.3.1)
240253
metasploit-framework!
254+
octokit (~> 4.0)
241255
pry
242256
rake (>= 10.0.0)
243257
redcarpet

0 commit comments

Comments
 (0)