Skip to content

Commit 05f0d09

Browse files
committed
Merge branch staging/electro-release into master
On August 15, shuckins-r7 merged the Metasploit 4.10.0 branch (staging/electro-release) into master. Rather than merging with history, he squashed all history into two commits (see 149c3ec and 82760bf). We want to preserve history (for things like git blame, git log, etc.). So on August 22, we reverted the commits above (see 19ba777). This merge commit merges the staging/electro-release branch (62b81d6) into master (48f0743). It ensures that any changes committed to master since the original squashed merge are retained. As a side effect, you may see this merge commit in history/blame for the time period between August 15 and August 22.
2 parents 19ba777 + 62b81d6 commit 05f0d09

File tree

261 files changed

+17787
-18721
lines changed

Some content is hidden

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

261 files changed

+17787
-18721
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ tags
4848
*.opensdf
4949
*.user
5050

51+
# Rails log directory
52+
/log
53+
5154
# ignore release/debug folders for exploits
5255
external/source/exploits/**/Debug
5356
external/source/exploits/**/Release

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ Style/StringLiterals:
5353

5454
Style/WordArray:
5555
Enabled: false
56-
Description: 'Metasploit prefers consistent use of []'
56+
Description: 'Metasploit prefers consistent use of []'

.yardopts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
--exclude \.ut\.rb/
44
--exclude \.ts\.rb/
55
--files CONTRIBUTING.md,COPYING,HACKING,LICENSE
6+
app/**/*.rb
67
lib/msf/**/*.rb
8+
lib/metasploit/**/*.rb
79
lib/rex/**/*.rb
810
plugins/**/*.rb

Gemfile

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,53 @@
11
source 'https://rubygems.org'
2-
3-
# Need 3+ for ActiveSupport::Concern
4-
gem 'activesupport', '>= 3.0.0', '< 4.0.0'
5-
# Needed for some admin modules (cfme_manageiq_evm_pass_reset.rb)
6-
gem 'bcrypt'
7-
# Needed for some admin modules (scrutinizer_add_user.rb)
8-
gem 'json'
9-
# Needed for Meterpreter on Windows, soon others.
10-
gem 'meterpreter_bins', '0.0.6'
11-
# Needed by msfgui and other rpc components
12-
gem 'msgpack'
13-
# Needed by anemone crawler
14-
gem 'nokogiri'
15-
# Needed by db.rb and Msf::Exploit::Capture
16-
gem 'packetfu', '1.1.9'
17-
# Needed by JSObfu
18-
gem 'rkelly-remix', '0.0.6'
19-
# Needed by anemone crawler
20-
gem 'robots'
21-
# Needed for some post modules
22-
gem 'sqlite3'
2+
# Add default group gems to `metasploit-framework.gemspec`:
3+
# spec.add_runtime_dependency '<name>', [<version requirements>]
4+
gemspec
235

246
group :db do
257
# Needed for Msf::DbManager
268
gem 'activerecord', '>= 3.0.0', '< 4.0.0'
9+
# Metasploit::Credential database models
10+
gem 'metasploit-credential', '>= 0.8.6', '< 0.9'
2711
# Database models shared between framework and Pro.
28-
gem 'metasploit_data_models', '0.17.0'
12+
gem 'metasploit_data_models', '~> 0.19'
2913
# Needed for module caching in Mdm::ModuleDetails
3014
gem 'pg', '>= 0.11'
3115
end
3216

33-
group :pcap do
34-
gem 'network_interface', '~> 0.0.1'
35-
# For sniffer and raw socket modules
36-
gem 'pcaprub'
37-
end
38-
3917
group :development do
4018
# Markdown formatting for yard
4119
gem 'redcarpet'
4220
# generating documentation
4321
gem 'yard'
22+
# for development and testing purposes
23+
gem 'pry'
4424
end
4525

4626
group :development, :test do
4727
# supplies factories for producing model instance for specs
4828
# Version 4.1.0 or newer is needed to support generate calls without the
4929
# 'FactoryGirl.' in factory definitions syntax.
5030
gem 'factory_girl', '>= 4.1.0'
31+
# automatically include factories from spec/factories
32+
gem 'factory_girl_rails'
5133
# Make rspec output shorter and more useful
5234
gem 'fivemat', '1.2.1'
5335
# running documentation generation tasks and rspec tasks
5436
gem 'rake', '>= 10.0.0'
37+
# testing framework
38+
gem 'rspec', '>= 2.12', '< 3.0.0'
39+
# Define `rake spec`. Must be in development AND test so that its available by default as a rake test when the
40+
# environment is development
41+
gem 'rspec-rails' , '>= 2.12', '< 3.0.0'
42+
end
43+
44+
group :pcap do
45+
gem 'network_interface', '~> 0.0.1'
46+
# For sniffer and raw socket modules
47+
gem 'pcaprub'
5548
end
5649

5750
group :test do
58-
# Removes records from database created during tests. Can't use rspec-rails'
59-
# transactional fixtures because multiple connections are in use so
60-
# transactions won't work.
61-
gem 'database_cleaner'
62-
# testing framework
63-
gem 'rspec', '>= 2.12'
6451
gem 'shoulda-matchers'
6552
# code coverage for tests
6653
# any version newer than 0.5.4 gives an Encoding error when trying to read the source files.

Gemfile.local.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ end
2727

2828
# Create a custom group
2929
group :local do
30-
# Use pry to help view and interact with objects in the framework
31-
gem 'pry', '~> 0.9'
3230
# Use pry-debugger to step through code during development
3331
gem 'pry-debugger', '~> 0.2'
3432
# Add the lab gem so that the 'lab' plugin will work again

Gemfile.lock

Lines changed: 133 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,177 @@
1+
PATH
2+
remote: .
3+
specs:
4+
metasploit-framework (4.10.1.pre.dev)
5+
actionpack (< 4.0.0)
6+
activesupport (>= 3.0.0, < 4.0.0)
7+
bcrypt
8+
json
9+
metasploit-model (~> 0.26.1)
10+
meterpreter_bins (= 0.0.6)
11+
msgpack
12+
nokogiri
13+
packetfu (= 1.1.9)
14+
railties
15+
rkelly-remix (= 0.0.6)
16+
robots
17+
rubyzip (~> 1.1)
18+
sqlite3
19+
tzinfo
20+
121
GEM
222
remote: https://rubygems.org/
323
specs:
4-
activemodel (3.2.14)
5-
activesupport (= 3.2.14)
24+
actionpack (3.2.19)
25+
activemodel (= 3.2.19)
26+
activesupport (= 3.2.19)
627
builder (~> 3.0.0)
7-
activerecord (3.2.14)
8-
activemodel (= 3.2.14)
9-
activesupport (= 3.2.14)
28+
erubis (~> 2.7.0)
29+
journey (~> 1.0.4)
30+
rack (~> 1.4.5)
31+
rack-cache (~> 1.2)
32+
rack-test (~> 0.6.1)
33+
sprockets (~> 2.2.1)
34+
activemodel (3.2.19)
35+
activesupport (= 3.2.19)
36+
builder (~> 3.0.0)
37+
activerecord (3.2.19)
38+
activemodel (= 3.2.19)
39+
activesupport (= 3.2.19)
1040
arel (~> 3.0.2)
1141
tzinfo (~> 0.3.29)
12-
activesupport (3.2.14)
42+
activesupport (3.2.19)
1343
i18n (~> 0.6, >= 0.6.4)
1444
multi_json (~> 1.0)
15-
arel (3.0.2)
45+
arel (3.0.3)
46+
arel-helpers (2.0.1)
47+
activerecord (>= 3.1.0, < 5)
1648
bcrypt (3.1.7)
1749
builder (3.0.4)
18-
database_cleaner (1.1.1)
19-
diff-lcs (1.2.4)
20-
factory_girl (4.2.0)
50+
coderay (1.1.0)
51+
diff-lcs (1.2.5)
52+
erubis (2.7.0)
53+
factory_girl (4.4.0)
2154
activesupport (>= 3.0.0)
55+
factory_girl_rails (4.4.1)
56+
factory_girl (~> 4.4.0)
57+
railties (>= 3.0.0)
2258
fivemat (1.2.1)
23-
i18n (0.6.5)
24-
json (1.8.0)
25-
metasploit_data_models (0.17.0)
26-
activerecord (>= 3.2.13)
59+
hike (1.2.3)
60+
i18n (0.6.11)
61+
journey (1.0.4)
62+
json (1.8.1)
63+
metasploit-concern (0.1.1)
64+
activesupport (~> 3.0, >= 3.0.0)
65+
metasploit-credential (0.8.6)
66+
metasploit-concern (~> 0.1.0)
67+
metasploit-model (~> 0.26.1)
68+
metasploit_data_models (~> 0.19.4)
69+
pg
70+
rubyntlm
71+
rubyzip (~> 1.1)
72+
metasploit-model (0.26.1)
2773
activesupport
74+
metasploit_data_models (0.19.4)
75+
activerecord (>= 3.2.13, < 4.0.0)
76+
activesupport
77+
arel-helpers
78+
metasploit-concern (~> 0.1.0)
79+
metasploit-model (~> 0.26.1)
2880
pg
2981
meterpreter_bins (0.0.6)
30-
mini_portile (0.5.1)
31-
msgpack (0.5.5)
82+
method_source (0.8.2)
83+
mini_portile (0.6.0)
84+
msgpack (0.5.8)
3285
multi_json (1.0.4)
3386
network_interface (0.0.1)
34-
nokogiri (1.6.0)
35-
mini_portile (~> 0.5.0)
87+
nokogiri (1.6.3.1)
88+
mini_portile (= 0.6.0)
3689
packetfu (1.1.9)
3790
pcaprub (0.11.3)
38-
pg (0.16.0)
39-
rake (10.1.0)
40-
redcarpet (3.0.0)
91+
pg (0.17.1)
92+
pry (0.10.0)
93+
coderay (~> 1.1.0)
94+
method_source (~> 0.8.1)
95+
slop (~> 3.4)
96+
rack (1.4.5)
97+
rack-cache (1.2)
98+
rack (>= 0.4)
99+
rack-ssl (1.3.4)
100+
rack
101+
rack-test (0.6.2)
102+
rack (>= 1.0)
103+
railties (3.2.19)
104+
actionpack (= 3.2.19)
105+
activesupport (= 3.2.19)
106+
rack-ssl (~> 1.3.2)
107+
rake (>= 0.8.7)
108+
rdoc (~> 3.4)
109+
thor (>= 0.14.6, < 2.0)
110+
rake (10.3.2)
111+
rdoc (3.12.2)
112+
json (~> 1.4)
113+
redcarpet (3.1.2)
41114
rkelly-remix (0.0.6)
42115
robots (0.10.1)
43-
rspec (2.14.1)
44-
rspec-core (~> 2.14.0)
45-
rspec-expectations (~> 2.14.0)
46-
rspec-mocks (~> 2.14.0)
47-
rspec-core (2.14.5)
48-
rspec-expectations (2.14.2)
116+
rspec (2.99.0)
117+
rspec-core (~> 2.99.0)
118+
rspec-expectations (~> 2.99.0)
119+
rspec-mocks (~> 2.99.0)
120+
rspec-collection_matchers (1.0.0)
121+
rspec-expectations (>= 2.99.0.beta1)
122+
rspec-core (2.99.1)
123+
rspec-expectations (2.99.2)
49124
diff-lcs (>= 1.1.3, < 2.0)
50-
rspec-mocks (2.14.3)
51-
shoulda-matchers (2.3.0)
52-
activesupport (>= 3.0.0)
125+
rspec-mocks (2.99.2)
126+
rspec-rails (2.99.0)
127+
actionpack (>= 3.0)
128+
activemodel (>= 3.0)
129+
activesupport (>= 3.0)
130+
railties (>= 3.0)
131+
rspec-collection_matchers
132+
rspec-core (~> 2.99.0)
133+
rspec-expectations (~> 2.99.0)
134+
rspec-mocks (~> 2.99.0)
135+
rubyntlm (0.4.0)
136+
rubyzip (1.1.6)
137+
shoulda-matchers (2.6.2)
53138
simplecov (0.5.4)
54139
multi_json (~> 1.0.3)
55140
simplecov-html (~> 0.5.3)
56141
simplecov-html (0.5.3)
142+
slop (3.6.0)
143+
sprockets (2.2.2)
144+
hike (~> 1.2)
145+
multi_json (~> 1.0)
146+
rack (~> 1.0)
147+
tilt (~> 1.1, != 1.3.0)
57148
sqlite3 (1.3.9)
58-
timecop (0.6.3)
59-
tzinfo (0.3.37)
60-
yard (0.8.7)
149+
thor (0.19.1)
150+
tilt (1.4.1)
151+
timecop (0.7.1)
152+
tzinfo (0.3.40)
153+
yard (0.8.7.4)
61154

62155
PLATFORMS
63156
ruby
64157

65158
DEPENDENCIES
66159
activerecord (>= 3.0.0, < 4.0.0)
67-
activesupport (>= 3.0.0, < 4.0.0)
68-
bcrypt
69-
database_cleaner
70160
factory_girl (>= 4.1.0)
161+
factory_girl_rails
71162
fivemat (= 1.2.1)
72-
json
73-
metasploit_data_models (= 0.17.0)
74-
meterpreter_bins (= 0.0.6)
75-
msgpack
163+
metasploit-credential (>= 0.8.6, < 0.9)
164+
metasploit-framework!
165+
metasploit_data_models (~> 0.19)
76166
network_interface (~> 0.0.1)
77-
nokogiri
78-
packetfu (= 1.1.9)
79167
pcaprub
80168
pg (>= 0.11)
169+
pry
81170
rake (>= 10.0.0)
82171
redcarpet
83-
rkelly-remix (= 0.0.6)
84-
robots
85-
rspec (>= 2.12)
172+
rspec (>= 2.12, < 3.0.0)
173+
rspec-rails (>= 2.12, < 3.0.0)
86174
shoulda-matchers
87175
simplecov (= 0.5.4)
88-
sqlite3
89176
timecop
90177
yard

0 commit comments

Comments
 (0)