Skip to content

Commit 469ac30

Browse files
committed
Merge branch 'upstream-master'
2 parents e2dd0a3 + 6048f21 commit 469ac30

File tree

440 files changed

+13871
-2303
lines changed

Some content is hidden

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

440 files changed

+13871
-2303
lines changed

.gitignore

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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)
@@ -13,8 +15,6 @@
1315
config/database.yml
1416
# simplecov coverage data
1517
coverage
16-
data/meterpreter/ext_server_pivot.x86.dll
17-
data/meterpreter/ext_server_pivot.x64.dll
1818
doc/
1919
external/source/meterpreter/java/bin
2020
external/source/meterpreter/java/build
@@ -51,3 +51,22 @@ tags
5151
# ignore release/debug folders for exploits
5252
external/source/exploits/**/Debug
5353
external/source/exploits/**/Release
54+
55+
# Avoid checking in Meterpreter binaries. These are supplied upstream by
56+
# the meterpreter_bins gem.
57+
data/meterpreter/elevator.*.dll
58+
data/meterpreter/ext_server_espia.*.dll
59+
data/meterpreter/ext_server_extapi.*.dll
60+
data/meterpreter/ext_server_incognito.*.dll
61+
data/meterpreter/ext_server_kiwi.*.dll
62+
data/meterpreter/ext_server_lanattacks.*.dll
63+
data/meterpreter/ext_server_mimikatz.*.dll
64+
data/meterpreter/ext_server_priv.*.dll
65+
data/meterpreter/ext_server_stdapi.*.dll
66+
data/meterpreter/metsrv.*.dll
67+
data/meterpreter/screenshot.*.dll
68+
69+
# Avoid checking in Meterpreter libs that are built from
70+
# private source. If you're interested in this functionality,
71+
# check out Metasploit Pro: http://metasploit.com/download
72+
data/meterpreter/ext_server_pivot.*.dll

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
1818
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
1919
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
2020
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
21+
trosen-r7 <trosen-r7@github> Trevor Rosen <[email protected]>
2122
wchen-r7 <wchen-r7@github> sinn3r <[email protected]> # aka sinn3r
2223
wchen-r7 <wchen-r7@github> sinn3r <[email protected]>
2324
wchen-r7 <wchen-r7@github> Wei Chen <[email protected]>

.rubocop.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
LineLength:
2+
Enabled: true
3+
Max: 180
4+
5+
MethodLength:
6+
Enabled: true
7+
Max: 100
8+
9+
Style/ClassLength:
10+
Exclude:
11+
# Most modules are quite large and all contained in one class. This is OK.
12+
- 'modules/**/*'
13+
14+
Style/NumericLiterals:
15+
Enabled: false
16+
17+
Documentation:
18+
Exclude:
19+
- 'modules/**/*'

.yardopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
--files CONTRIBUTING.md,COPYING,HACKING,LICENSE
66
lib/msf/**/*.rb
77
lib/rex/**/*.rb
8+
plugins/**/*.rb

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ and Metasploit's [Common Coding Mistakes](https://github.com/rapid7/metasploit-f
3333
## Code Contributions
3434

3535
* **Do** stick to the [Ruby style guide](https://github.com/bbatsov/ruby-style-guide).
36+
* Similarly, **try** to get Rubocop passing or at least relatively quiet against the files added/modified as part of your contribution
3637
* **Do** follow the [50/72 rule](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) for Git commit messages.
3738
* **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`.
3839

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ gem 'activesupport', '>= 3.0.0', '< 4.0.0'
66
gem 'bcrypt'
77
# Needed for some admin modules (scrutinizer_add_user.rb)
88
gem 'json'
9+
# Needed for Meterpreter on Windows, soon others.
10+
gem 'meterpreter_bins', '0.0.6'
911
# Needed by msfgui and other rpc components
1012
gem 'msgpack'
1113
# Needed by anemone crawler
@@ -23,7 +25,7 @@ group :db do
2325
# Needed for Msf::DbManager
2426
gem 'activerecord', '>= 3.0.0', '< 4.0.0'
2527
# Database models shared between framework and Pro.
26-
gem 'metasploit_data_models', '~> 0.17.0'
28+
gem 'metasploit_data_models', '0.17.0'
2729
# Needed for module caching in Mdm::ModuleDetails
2830
gem 'pg', '>= 0.11'
2931
end
@@ -35,6 +37,8 @@ group :pcap do
3537
end
3638

3739
group :development do
40+
# Style/sanity checking Ruby code
41+
gem 'rubocop'
3842
# Markdown formatting for yard
3943
gem 'redcarpet'
4044
# generating documentation

Gemfile.local.example

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
##
2+
# Example Gemfile.local file for Metasploit Framework
3+
#
4+
# The Gemfile.local file provides a way to use other gems that are not
5+
# included in the standard Gemfile provided with Metasploit.
6+
# This filename is included in Metasploit's .gitignore file, so local changes
7+
# to this file will not accidentally show up in future pull requests. This
8+
# example Gemfile.local includes all gems in Gemfile using instance_eval.
9+
# It also creates a new bundle group, 'local', to hold additional gems.
10+
#
11+
# This file will not be used by default within the framework. As such, one
12+
# must first install the custom Gemfile.local with bundle:
13+
# bundle install --gemfile Gemfile.local
14+
#
15+
# Note that msfupdate does not consider Gemfile.local when updating the
16+
# framework. If it is used, it may be necessary to run the above bundle
17+
# command after the update.
18+
#
19+
###
20+
21+
# Include the Gemfile included with the framework. This is very
22+
# important for picking up new gem dependencies.
23+
msf_gemfile = File.join(File.dirname(__FILE__), 'Gemfile')
24+
if File.readable?(msf_gemfile)
25+
instance_eval(File.read(msf_gemfile))
26+
end
27+
28+
# Create a custom group
29+
group :local do
30+
# Use pry to help view and interact with objects in the framework
31+
gem 'pry', '~> 0.9'
32+
# Use pry-debugger to step through code during development
33+
gem 'pry-debugger', '~> 0.2'
34+
# Add the lab gem so that the 'lab' plugin will work again
35+
gem 'lab', '~> 0.2.7'
36+
end

Gemfile.lock

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ GEM
1313
i18n (~> 0.6, >= 0.6.4)
1414
multi_json (~> 1.0)
1515
arel (3.0.2)
16+
ast (2.0.0)
1617
bcrypt (3.1.7)
1718
builder (3.0.4)
1819
database_cleaner (1.1.1)
@@ -26,15 +27,21 @@ GEM
2627
activerecord (>= 3.2.13)
2728
activesupport
2829
pg
30+
meterpreter_bins (0.0.6)
2931
mini_portile (0.5.1)
3032
msgpack (0.5.5)
3133
multi_json (1.0.4)
3234
network_interface (0.0.1)
3335
nokogiri (1.6.0)
3436
mini_portile (~> 0.5.0)
3537
packetfu (1.1.9)
38+
parser (2.1.9)
39+
ast (>= 1.1, < 3.0)
40+
slop (~> 3.4, >= 3.4.5)
3641
pcaprub (0.11.3)
3742
pg (0.16.0)
43+
powerpack (0.0.9)
44+
rainbow (2.0.0)
3845
rake (10.1.0)
3946
redcarpet (3.0.0)
4047
rkelly-remix (0.0.6)
@@ -47,12 +54,20 @@ GEM
4754
rspec-expectations (2.14.2)
4855
diff-lcs (>= 1.1.3, < 2.0)
4956
rspec-mocks (2.14.3)
57+
rubocop (0.23.0)
58+
json (>= 1.7.7, < 2)
59+
parser (~> 2.1.9)
60+
powerpack (~> 0.0.6)
61+
rainbow (>= 1.99.1, < 3.0)
62+
ruby-progressbar (~> 1.4)
63+
ruby-progressbar (1.5.1)
5064
shoulda-matchers (2.3.0)
5165
activesupport (>= 3.0.0)
5266
simplecov (0.5.4)
5367
multi_json (~> 1.0.3)
5468
simplecov-html (~> 0.5.3)
5569
simplecov-html (0.5.3)
70+
slop (3.5.0)
5671
sqlite3 (1.3.9)
5772
timecop (0.6.3)
5873
tzinfo (0.3.37)
@@ -69,7 +84,8 @@ DEPENDENCIES
6984
factory_girl (>= 4.1.0)
7085
fivemat (= 1.2.1)
7186
json
72-
metasploit_data_models (~> 0.17.0)
87+
metasploit_data_models (= 0.17.0)
88+
meterpreter_bins (= 0.0.6)
7389
msgpack
7490
network_interface (~> 0.0.1)
7591
nokogiri
@@ -81,6 +97,7 @@ DEPENDENCIES
8197
rkelly-remix (= 0.0.6)
8298
robots
8399
rspec (>= 2.12)
100+
rubocop
84101
shoulda-matchers
85102
simplecov (= 0.5.4)
86103
sqlite3

HACKING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CONTRIBUTING.md
1010
in the same directory as this file, and to a lesser extent:
1111

1212
The Metasploit Development Environment
13-
https://github.com/rapid7/metasploit-framework/wiki/Metasploit-Development-Environment
13+
https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment
1414

1515
Common Coding Mistakes
1616
https://github.com/rapid7/metasploit-framework/wiki/Common-Metasploit-Module-Coding-Mistakes
163 KB
Binary file not shown.

0 commit comments

Comments
 (0)