Skip to content

Commit 8f466cf

Browse files
author
Pedro Ribeiro
committed
Merge pull request #12 from rapid7/master
a
2 parents eb33ece + 553030b commit 8f466cf

File tree

528 files changed

+25997
-7246
lines changed

Some content is hidden

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

528 files changed

+25997
-7246
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,7 @@ data/meterpreter/screenshot.*.dll
8383
# private source. If you're interested in this functionality,
8484
# check out Metasploit Pro: http://metasploit.com/download
8585
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: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,40 @@
1+
bcook-r7 <bcook-r7@github> Brent Cook <[email protected]>
12
bturner-r7 <bturner-r7@github> Brandon Turner <[email protected]>
3+
dheiland-r7 <dheiland-r7@github> Deral Heiland <[email protected]>
4+
dmaloney-r7 <dmaloney-r7@github> David Maloney <[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> dmaloney-r7 <[email protected]>
47
ecarey-r7 <ecarey-r7@github> Erran Carey <[email protected]>
58
farias-r7 <farias-r7@github> Fernando Arias <[email protected]>
69
hmoore-r7 <hmoore-r7@github> HD Moore <[email protected]>
710
hmoore-r7 <hmoore-r7@github> HD Moore <[email protected]>
8-
jlee-r7 <jlee-r7@github> egypt <[email protected]> # aka egypt
9-
jlee-r7 <jlee-r7@github> James Lee <[email protected]> # aka egypt
11+
jhart-r7 <jhart-r7@github> Jon Hart <[email protected]>
1012
jlee-r7 <jlee-r7@github> James Lee <[email protected]>
11-
joev-r7 <joev-r7@github> joev <[email protected]>
13+
jlee-r7 <jlee-r7@github> James Lee <[email protected]> # aka egypt
14+
jlee-r7 <jlee-r7@github> egypt <[email protected]> # aka egypt
1215
joev-r7 <joev-r7@github> Joe Vennix <[email protected]>
16+
joev-r7 <joev-r7@github> joev <[email protected]>
1317
jvazquez-r7 <jvazquez-r7@github> jvazquez-r7 <[email protected]>
1418
jvazquez-r7 <jvazquez-r7@github> jvazquez-r7 <[email protected]>
1519
limhoff-r7 <limhoff-r7@github> Luke Imhoff <[email protected]>
20+
lsanchez-r7 <lsanchez-r7@github> Lance Sanchez <[email protected]>
21+
lsanchez-r7 <lsanchez-r7@github> darkbushido <[email protected]>
22+
mbuck-r7 <mbuck-r7@github> Matt Buck <[email protected]>
23+
mbuck-r7 <mbuck-r7@github> Matt Buck <[email protected]>
24+
parzamendi-r7 <parzamendi-r7@github> parzamendi-r7 <[email protected]>
1625
shuckins-r7 <shuckins-r7@github> Samuel Huckins <[email protected]>
1726
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
1827
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
1928
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
2029
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
2130
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
31+
wchen-r7 <wchen-r7@github> Wei Chen <[email protected]>
2232
wchen-r7 <wchen-r7@github> sinn3r <[email protected]> # aka sinn3r
2333
wchen-r7 <wchen-r7@github> sinn3r <[email protected]>
24-
wchen-r7 <wchen-r7@github> Wei Chen <[email protected]>
2534
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
2635
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
2736
wvu-r7 <wvu-r7@github> William Vu <[email protected]>
37+
wvu-r7 <wvu-r7@github> wvu-r7 <[email protected]>
2838

2939
# Above this line are current Rapid7 employees. Below this paragraph are
3040
# volunteers, former employees, and potential Rapid7 employees who, at
@@ -66,25 +76,29 @@ m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
6676
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
6777
Meatballs1 <Meatballs1@github> Ben Campbell <[email protected]>
6878
Meatballs1 <Meatballs1@github> Meatballs <[email protected]>
69-
Meatballs1 <Meatballs1@github> Meatballs1 <[email protected]>
79+
Meatballs1 <Meatballs1@github> Meatballs1 <[email protected]>
7080
mubix <mubix@github> Rob Fuller <[email protected]>
7181
nevdull77 <nevdull77@github> Patrik Karlsson <[email protected]>
72-
nmonkee <nmonkee@github> nmonkee <[email protected]>
82+
nmonkee <nmonkee@github> nmonkee <[email protected]>
7383
nullbind <nullbind@github> nullbind <[email protected]>
84+
nullbind <nullbind@github> Scott Sutherland <[email protected]>
7485
ohdae <ohdae@github> ohdae <[email protected]>
75-
OJ <oj@github> OJ Reeves <[email protected]>
7686
OJ <oj@github> OJ <[email protected]>
87+
OJ <oj@github> OJ Reeves <[email protected]>
7788
r3dy <r3dy@github> Royce Davis <[email protected]>
7889
r3dy <r3dy@github> Royce Davis <[email protected]>
7990
Rick Flores <[email protected]> Rick Flores (nanotechz9l) <[email protected]>
8091
rsmudge <rsmudge@github> Raphael Mudge <[email protected]> # Aka `butane
8192
schierlm <schierlm@github> Michael Schierl <[email protected]> # Aka mihi
8293
scriptjunkie <scriptjunkie@github> Matt Weeks <[email protected]>
94+
scriptjunkie <scriptjunkie@github> scriptjunkie <[email protected]>
8395
skape <skape@???> Matt Miller <[email protected]>
8496
spoonm <spoonm@github> Spoon M <[email protected]>
8597
swtornio <swtornio@github> Steve Tornio <[email protected]>
8698
Tasos Laskos <[email protected]> Tasos Laskos <[email protected]>
99+
timwr <timwr@github> Tim Wright <[email protected]>
87100
TrustedSec <[email protected]> trustedsec <[email protected]>
101+
zeroSteiner <zeroSteiner@github> Spencer McIntyre <[email protected]>
88102

89103
# Aliases for utility author names. Since they're fake, typos abound
90104

.travis.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1+
bundler_args: --without development coverage
12
env:
2-
- RAKE_TASK=cucumber
3-
- RAKE_TASK=cucumber:boot
4-
- RAKE_TASK=spec SPEC_OPTS="--tag content"
5-
- RAKE_TASK=spec SPEC_OPTS="--tag ~content"
3+
- RAKE_TASKS="cucumber cucumber:boot"
4+
- RAKE_TASKS=spec SPEC_OPTS="--tag content"
5+
- RAKE_TASKS=spec SPEC_OPTS="--tag ~content"
66

77
language: ruby
88
matrix:
99
fast_finish: true
1010
before_install:
11+
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
1112
- rake --version
1213
- sudo apt-get update -qq
1314
- sudo apt-get install -qq libpcap-dev
1415
# Uncomment when we have fewer shipping msftidy warnings.
1516
# Merge committers will still be checking, just not autofailing.
16-
# See https://dev.metasploit.com/redmine/issues/8498
1717
# - ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
1818
# - ls -la ./.git/hooks
1919
# - ./.git/hooks/post-merge
@@ -24,7 +24,7 @@ before_script:
2424
- bundle exec rake db:migrate
2525
script:
2626
# fail build if db/schema.rb update is not committed
27-
- git diff --exit-code && bundle exec rake $RAKE_TASK
27+
- git diff --exit-code && bundle exec rake $RAKE_TASKS
2828

2929
rvm:
3030
- '1.9.3'
@@ -35,3 +35,9 @@ notifications:
3535

3636
git:
3737
depth: 5
38+
39+
# Blacklist certain branches from triggering travis builds
40+
branches:
41+
except:
42+
- gh-pages
43+
- metakitty

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Pull requests [#2940](https://github.com/rapid7/metasploit-framework/pull/2940)
5757
#### New Modules
5858

5959
* **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).
60-
* **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.
6161
* **Don't** include more than one module per pull request.
6262

6363
#### Library Code

Gemfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ source 'https://rubygems.org'
33
# spec.add_runtime_dependency '<name>', [<version requirements>]
44
gemspec name: 'metasploit-framework'
55

6+
# separate from test as simplecov is not run on travis-ci
7+
group :coverage do
8+
# code coverage for tests
9+
# any version newer than 0.5.4 gives an Encoding error when trying to read the source files.
10+
# see: https://github.com/colszowka/simplecov/issues/127 (hopefully fixed in 0.8.0)
11+
gem 'simplecov', '0.5.4', :require => false
12+
end
13+
614
group :db do
715
gemspec name: 'metasploit-framework-db'
816
end
@@ -44,10 +52,6 @@ group :test do
4452
# cucumber + automatic database cleaning with database_cleaner
4553
gem 'cucumber-rails', :require => false
4654
gem 'shoulda-matchers'
47-
# code coverage for tests
48-
# any version newer than 0.5.4 gives an Encoding error when trying to read the source files.
49-
# see: https://github.com/colszowka/simplecov/issues/127 (hopefully fixed in 0.8.0)
50-
gem 'simplecov', '0.5.4', :require => false
5155
# Manipulate Time.now in specs
5256
gem 'timecop'
5357
end

Gemfile.lock

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
PATH
22
remote: .
33
specs:
4-
metasploit-framework (4.10.1.pre.dev)
5-
actionpack (< 4.0.0)
6-
activesupport (>= 3.0.0, < 4.0.0)
4+
metasploit-framework (4.11.0.pre.dev)
5+
actionpack (>= 3.2.21, < 4.0.0)
6+
activesupport (>= 3.2.21, < 4.0.0)
77
bcrypt
88
jsobfu (~> 0.2.0)
99
json
1010
metasploit-concern (~> 0.3.0)
1111
metasploit-model (~> 0.28.0)
12-
meterpreter_bins (= 0.0.11)
12+
meterpreter_bins (= 0.0.12)
1313
msgpack
1414
nokogiri
1515
packetfu (= 1.1.9)
@@ -20,49 +20,49 @@ PATH
2020
rubyzip (~> 1.1)
2121
sqlite3
2222
tzinfo
23-
metasploit-framework-db (4.10.1.pre.dev)
24-
activerecord (< 4.0.0)
25-
metasploit-credential (~> 0.13.3)
26-
metasploit-framework (= 4.10.1.pre.dev)
27-
metasploit_data_models (~> 0.21.1)
23+
metasploit-framework-db (4.11.0.pre.dev)
24+
activerecord (>= 3.2.21, < 4.0.0)
25+
metasploit-credential (~> 0.13.8)
26+
metasploit-framework (= 4.11.0.pre.dev)
27+
metasploit_data_models (~> 0.21.3)
2828
pg (>= 0.11)
29-
metasploit-framework-pcap (4.10.1.pre.dev)
30-
metasploit-framework (= 4.10.1.pre.dev)
29+
metasploit-framework-pcap (4.11.0.pre.dev)
30+
metasploit-framework (= 4.11.0.pre.dev)
3131
network_interface (~> 0.0.1)
3232
pcaprub
3333

3434
GEM
3535
remote: https://rubygems.org/
3636
specs:
37-
actionmailer (3.2.19)
38-
actionpack (= 3.2.19)
37+
actionmailer (3.2.21)
38+
actionpack (= 3.2.21)
3939
mail (~> 2.5.4)
40-
actionpack (3.2.19)
41-
activemodel (= 3.2.19)
42-
activesupport (= 3.2.19)
40+
actionpack (3.2.21)
41+
activemodel (= 3.2.21)
42+
activesupport (= 3.2.21)
4343
builder (~> 3.0.0)
4444
erubis (~> 2.7.0)
4545
journey (~> 1.0.4)
4646
rack (~> 1.4.5)
4747
rack-cache (~> 1.2)
4848
rack-test (~> 0.6.1)
4949
sprockets (~> 2.2.1)
50-
activemodel (3.2.19)
51-
activesupport (= 3.2.19)
50+
activemodel (3.2.21)
51+
activesupport (= 3.2.21)
5252
builder (~> 3.0.0)
53-
activerecord (3.2.19)
54-
activemodel (= 3.2.19)
55-
activesupport (= 3.2.19)
53+
activerecord (3.2.21)
54+
activemodel (= 3.2.21)
55+
activesupport (= 3.2.21)
5656
arel (~> 3.0.2)
5757
tzinfo (~> 0.3.29)
58-
activeresource (3.2.19)
59-
activemodel (= 3.2.19)
60-
activesupport (= 3.2.19)
61-
activesupport (3.2.19)
58+
activeresource (3.2.21)
59+
activemodel (= 3.2.21)
60+
activesupport (= 3.2.21)
61+
activesupport (3.2.21)
6262
i18n (~> 0.6, >= 0.6.4)
6363
multi_json (~> 1.0)
6464
arel (3.0.3)
65-
arel-helpers (2.0.1)
65+
arel-helpers (2.0.2)
6666
activerecord (>= 3.1.0, < 5)
6767
aruba (0.6.1)
6868
childprocess (>= 0.3.6)
@@ -112,7 +112,7 @@ GEM
112112
metasploit-concern (0.3.0)
113113
activesupport (~> 3.0, >= 3.0.0)
114114
railties (< 4.0.0)
115-
metasploit-credential (0.13.3)
115+
metasploit-credential (0.13.8)
116116
metasploit-concern (~> 0.3.0)
117117
metasploit-model (~> 0.28.0)
118118
metasploit_data_models (~> 0.21.0)
@@ -123,7 +123,7 @@ GEM
123123
metasploit-model (0.28.0)
124124
activesupport
125125
railties (< 4.0.0)
126-
metasploit_data_models (0.21.2)
126+
metasploit_data_models (0.21.3)
127127
activerecord (>= 3.2.13, < 4.0.0)
128128
activesupport
129129
arel-helpers
@@ -132,14 +132,14 @@ GEM
132132
pg
133133
railties (< 4.0.0)
134134
recog (~> 1.0)
135-
meterpreter_bins (0.0.11)
135+
meterpreter_bins (0.0.12)
136136
method_source (0.8.2)
137137
mime-types (1.25.1)
138138
mini_portile (0.6.1)
139139
msgpack (0.5.9)
140140
multi_json (1.0.4)
141141
network_interface (0.0.1)
142-
nokogiri (1.6.4.1)
142+
nokogiri (1.6.5)
143143
mini_portile (~> 0.6.0)
144144
packetfu (1.1.9)
145145
pcaprub (0.11.3)
@@ -156,26 +156,26 @@ GEM
156156
rack
157157
rack-test (0.6.2)
158158
rack (>= 1.0)
159-
rails (3.2.19)
160-
actionmailer (= 3.2.19)
161-
actionpack (= 3.2.19)
162-
activerecord (= 3.2.19)
163-
activeresource (= 3.2.19)
164-
activesupport (= 3.2.19)
159+
rails (3.2.21)
160+
actionmailer (= 3.2.21)
161+
actionpack (= 3.2.21)
162+
activerecord (= 3.2.21)
163+
activeresource (= 3.2.21)
164+
activesupport (= 3.2.21)
165165
bundler (~> 1.0)
166-
railties (= 3.2.19)
167-
railties (3.2.19)
168-
actionpack (= 3.2.19)
169-
activesupport (= 3.2.19)
166+
railties (= 3.2.21)
167+
railties (3.2.21)
168+
actionpack (= 3.2.21)
169+
activesupport (= 3.2.21)
170170
rack-ssl (~> 1.3.2)
171171
rake (>= 0.8.7)
172172
rdoc (~> 3.4)
173173
thor (>= 0.14.6, < 2.0)
174-
rake (10.3.2)
174+
rake (10.4.2)
175175
rb-readline (0.5.1)
176176
rdoc (3.12.2)
177177
json (~> 1.4)
178-
recog (1.0.5)
178+
recog (1.0.6)
179179
nokogiri
180180
redcarpet (3.1.2)
181181
rkelly-remix (0.0.6)

README.md

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
1-
21
Metasploit [![Build Status](https://travis-ci.org/rapid7/metasploit-framework.png)](https://travis-ci.org/rapid7/metasploit-framework) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/rapid7/metasploit-framework)
32
==
43
The Metasploit Framework is released under a BSD-style license. See
54
COPYING for more details.
65

7-
The latest version of this software is available from http://metasploit.com/
6+
The latest version of this software is available from https://metasploit.com/
87

98
Bug tracking and development information can be found at:
10-
https://dev.metasploit.com/redmine/projects/framework/
11-
12-
The public GitHub source repository can be found at:
139
https://github.com/rapid7/metasploit-framework
1410

15-
Questions and suggestions can be sent to:
16-
msfdev(at)metasploit.com
17-
18-
The framework mailing list is the place to discuss features and ask for help.
19-
To subscribe, visit the following web page:
20-
https://mail.metasploit.com/mailman/listinfo/framework
11+
API documentation for writing modules can be found at:
12+
https://rapid7.github.io/metasploit-framework/api
2113

22-
The mailing list archives are available from:
23-
https://mail.metasploit.com/pipermail/framework/
14+
Questions and suggestions can be sent to:
15+
https://lists.sourceforge.net/lists/listinfo/metasploit-hackers
2416

2517
Installing
2618
--
@@ -34,10 +26,8 @@ Using Metasploit
3426
--
3527
Metasploit can do all sorts of things. The first thing you'll want to do
3628
is start `msfconsole`, but after that, you'll probably be best served by
37-
reading some of the great tutorials online:
38-
39-
* [Metasploit Unleashed][unleashed]
40-
* [The official Metasploit wiki on Github][wiki-start]
29+
reading [Metasploit Unleashed][unleashed], the [great community
30+
resources](https://metasploit.github.io), or the [wiki].
4131

4232
Contributing
4333
--
@@ -48,6 +38,7 @@ pull request. For slightly more info, see
4838
[Contributing](https://github.com/rapid7/metasploit-framework/blob/master/CONTRIBUTING.md).
4939

5040

41+
[wiki]: https://github.com/rapid7/metasploit-framework/wiki
5142
[wiki-devenv]: https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment "Metasploit Development Environment Setup"
5243
[wiki-start]: https://github.com/rapid7/metasploit-framework/wiki/ "Metasploit Wiki"
5344
[wiki-usage]: https://github.com/rapid7/metasploit-framework/wiki/Using-Metasploit "Using Metasploit"

config/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
Bundler.require(
1111
*Rails.groups(
12+
coverage: [:test],
1213
db: all_environments,
1314
pcap: all_environments
1415
)
17.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)