Skip to content

Commit 7583ed4

Browse files
committed
Merge remote-tracking branch 'upstream/master' into pr2075
2 parents dc38212 + b95a5eb commit 7583ed4

File tree

614 files changed

+29211
-2708
lines changed

Some content is hidden

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

614 files changed

+29211
-2708
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/**/*'

.ruby-version

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

.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: 2 additions & 1 deletion

Gemfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
source 'https://rubygems.org'
22

33
# Need 3+ for ActiveSupport::Concern
4-
gem 'activesupport', '>= 3.0.0'
4+
gem 'activesupport', '>= 3.0.0', '< 4.0.0'
55
# Needed for some admin modules (cfme_manageiq_evm_pass_reset.rb)
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
1214
gem 'nokogiri'
15+
# Needed by db.rb and Msf::Exploit::Capture
16+
gem 'packetfu', '1.1.9'
1317
# Needed by JSObfu
1418
gem 'rkelly-remix', '0.0.6'
1519
# Needed by anemone crawler
1620
gem 'robots'
17-
# Needed by db.rb and Msf::Exploit::Capture
18-
gem 'packetfu', '1.1.9'
21+
# Needed for some post modules
22+
gem 'sqlite3'
1923

2024
group :db do
2125
# Needed for Msf::DbManager
22-
gem 'activerecord'
26+
gem 'activerecord', '>= 3.0.0', '< 4.0.0'
2327
# Database models shared between framework and Pro.
24-
gem 'metasploit_data_models', '~> 0.17.0'
28+
gem 'metasploit_data_models', '0.17.0'
2529
# Needed for module caching in Mdm::ModuleDetails
2630
gem 'pg', '>= 0.11'
2731
end
@@ -33,6 +37,8 @@ group :pcap do
3337
end
3438

3539
group :development do
40+
# Style/sanity checking Ruby code
41+
gem 'rubocop'
3642
# Markdown formatting for yard
3743
gem 'redcarpet'
3844
# 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: 22 additions & 3 deletions
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,21 @@ 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)
71+
sqlite3 (1.3.9)
5672
timecop (0.6.3)
5773
tzinfo (0.3.37)
5874
yard (0.8.7)
@@ -61,14 +77,15 @@ PLATFORMS
6177
ruby
6278

6379
DEPENDENCIES
64-
activerecord
65-
activesupport (>= 3.0.0)
80+
activerecord (>= 3.0.0, < 4.0.0)
81+
activesupport (>= 3.0.0, < 4.0.0)
6682
bcrypt
6783
database_cleaner
6884
factory_girl (>= 4.1.0)
6985
fivemat (= 1.2.1)
7086
json
71-
metasploit_data_models (~> 0.17.0)
87+
metasploit_data_models (= 0.17.0)
88+
meterpreter_bins (= 0.0.6)
7289
msgpack
7390
network_interface (~> 0.0.1)
7491
nokogiri
@@ -80,7 +97,9 @@ DEPENDENCIES
8097
rkelly-remix (= 0.0.6)
8198
robots
8299
rspec (>= 2.12)
100+
rubocop
83101
shoulda-matchers
84102
simplecov (= 0.5.4)
103+
sqlite3
85104
timecop
86105
yard

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

0 commit comments

Comments
 (0)