Skip to content

Commit 62e335d

Browse files
committed
Resolve conflict
2 parents fc7d151 + 0cf2751 commit 62e335d

File tree

11,772 files changed

+35893
-1468200
lines changed

Some content is hidden

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

11,772 files changed

+35893
-1468200
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
.bundle
12
# Rubymine project directory
23
.idea
4+
# Portable ruby version files for rvm
5+
.ruby-gemset
6+
.ruby-version
37
# RVM control file
48
.rvmrc
59
# YARD cache directory
610
.yardoc
711
# Mac OS X files
812
.DS_Store
13+
# database config for testing
14+
config/database.yml
915
# simplecov coverage data
1016
coverage
1117
data/meterpreter/ext_server_pivot.dll
@@ -16,6 +22,17 @@ external/source/meterpreter/java/build
1622
external/source/meterpreter/java/extensions
1723
external/source/javapayload/bin
1824
external/source/javapayload/build
25+
# Java binary ignores. Replace the 5 above with this once we're merged.
26+
external/source/javapayload/*/.classpath
27+
external/source/javapayload/*/.project
28+
external/source/javapayload/*/.settings
29+
external/source/javapayload/*/bin
30+
external/source/javapayload/*/target
31+
external/source/javapayload/*/*/.classpath
32+
external/source/javapayload/*/*/.project
33+
external/source/javapayload/*/*/.settings
34+
external/source/javapayload/*/*/bin
35+
external/source/javapayload/*/*/target
1936
# Packaging directory
2037
pkg
2138
tags

.mailmap

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
bperry-r7 <bperry-r7@github> Brandon Perry <[email protected]>
2+
bperry-r7 <bperry-r7@github> Brandon Perry <bperry@bperry-rapid7.(none)>
3+
bturner-r7 <bturner-r7@github> Brandon Turner <[email protected]>
4+
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]> # aka TheLightCosine
5+
dmaloney-r7 <dmaloney-r7@github> David Maloney <[email protected]>
6+
ecarey-r7 <ecarey-r7@github> Erran Carey <[email protected]>
7+
hmoore-r7 <hmoore-r7@github> HD Moore <[email protected]>
8+
hmoore-r7 <hmoore-r7@github> HD Moore <[email protected]>
9+
jlee-r7 <jlee-r7@github> James Lee <[email protected]>
10+
jlee-r7 <jlee-r7@github> James Lee <[email protected]> # aka egypt
11+
jlee-r7 <jlee-r7@github> egypt <[email protected]> # aka egypt
12+
joev-r7 <joev-r7@github> Joe Vennix <[email protected]>
13+
jvazquez-r7 <jvazquez-r7@github> jvazquez-r7 <[email protected]>
14+
limhoff-r7 <limhoff-r7@github> Luke Imhoff <[email protected]>
15+
shuckins-r7 <shuckins-r7@github> Samuel Huckins <[email protected]>
16+
tasos-r7 <tasos-r7@github> Tasos Laskos <[email protected]>
17+
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
18+
todb-r7 <todb-r7@github> Tod Beardsley <[email protected]>
19+
wchen-r7 <wchen-r7@github> Wei Chen <[email protected]>
20+
wchen-r7 <wchen-r7@github> sinn3r <[email protected]> # aka sinn3r
21+
wchen-r7 <wchen-r7@github> sinn3r <[email protected]>
22+
23+
# Above this line are current Rapid7 employees Below this paragraph are
24+
# volunteers, former employees, and potential Rapid7 employees who, at
25+
# one time or another, had some largeish number of commits landed on
26+
# rapid7/metasploit-framework master branch. This should be refreshed
27+
# periodically. If you're on this list and would like to not be, just
28+
# let [email protected] know.
29+
30+
ChrisJohnRiley <ChrisJohnRiley@github> Chris John Riley <[email protected]>
31+
ChrisJohnRiley <ChrisJohnRiley@github> Chris John Riley <[email protected]>
32+
FireFart <FireFart@github> Christian Mehlmauer <[email protected]>
33+
Meatballs1 <Meatballs1@github> Ben Campbell <[email protected]>
34+
Meatballs1 <Meatballs1@github> Meatballs <[email protected]>
35+
Meatballs1 <Meatballs1@github> Meatballs1 <[email protected]>
36+
bannedit <bannedit@github> David Rude <[email protected]>
37+
ceballosm <ceballosm@github> Mario Ceballos <[email protected]>
38+
corelanc0d3er <corelanc0d3er@github> Peter Van Eeckhoutte (corelanc0d3r) <[email protected]>
39+
corelanc0d3er <corelanc0d3er@github> corelanc0d3r <[email protected]>
40+
darkoperator <darkoperator@github> Carlos Perez <[email protected]>
41+
efraintorres <efraintorres@github> efraintorres <[email protected]>
42+
efraintorres <efraintorres@github> et <>
43+
fab <fab@???> fab <> # fab at revhosts.net (Fabrice MOURRON)
44+
h0ng10 <h0ng10@github> Hans-Martin Münch <[email protected]>
45+
h0ng10 <h0ng10@github> h0ng10 <[email protected]>
46+
jcran <jcran@github> Jonathan Cran <[email protected]>
47+
jcran <jcran@github> Jonathan Cran <[email protected]>
48+
jduck <jduck@github> Joshua Drake <[email protected]>
49+
jgor <jgor@github> jgor <[email protected]>
50+
kernelsmith <kernelsmith@github> Joshua Smith <[email protected]>
51+
kernelsmith <kernelsmith@github> kernelsmith <kernelsmith@kernelsmith>
52+
kost <kost@github> Vlatko Kosturjak <[email protected]>
53+
kris <kris@???> kris <>
54+
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
55+
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
56+
m-1-k-3 <m-1-k-3@github> m-1-k-3 <[email protected]>
57+
mubix <mubix@github> Rob Fuller <[email protected]>
58+
nevdull77 <nevdull77@github> Patrik Karlsson <[email protected]>
59+
nmonkee <nmonkee@github> nmonkee <[email protected]>
60+
nullbind <nullbind@github> nullbind <[email protected]>
61+
ohdae <ohdae@github> ohdae <[email protected]>
62+
r3dy <r3dy@github> Royce Davis <[email protected]>
63+
r3dy <r3dy@github> Royce Davis <[email protected]>
64+
rsmudge <rsmudge@github> Raphael Mudge <[email protected]> # Aka `butane
65+
schierlm <schierlm@github> Michael Schierl <[email protected]> # Aka mihi
66+
scriptjunkie <scriptjunkie@github> Matt Weeks <[email protected]>
67+
skape <skape@???> Matt Miller <[email protected]>
68+
spoonm <spoonm@github> Spoon M <[email protected]>
69+
swtornio <swtornio@github> Steve Tornio <[email protected]>

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ language: ruby
22
before_install:
33
- sudo apt-get update -qq
44
- sudo apt-get install -qq libpcap-dev
5+
before_script:
6+
- cp config/database.yml.travis config/database.yml
7+
- rake db:create
8+
- rake db:migrate
59

610
rvm:
711
#- '1.8.7'

.yardopts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--protected
2+
--exclude samples/
3+
--exclude \.ut\.rb/
4+
--exclude \.ts\.rb/
5+
--files CONTRIBUTING.md,COPYING,HACKING,LICENSE
6+
lib/msf/**/*.rb
7+
lib/rex/**/*.rb

CONTRIBUTING.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If your bug is new and you'd like to report it you will need to
1212
first](https://dev.metasploit.com/redmine/account/register). Don't
1313
worry, it's easy and fun and takes about 30 seconds.
1414

15-
When you file a bug report, please inclue your **steps to reproduce**,
15+
When you file a bug report, please include your **steps to reproduce**,
1616
full copy-pastes of Ruby stack traces, and any relevant details about
1717
your environment. Without repro steps, your bug will likely be closed.
1818
With repro steps, your bugs will likely be fixed.
@@ -36,3 +36,9 @@ Pull requests tend to be very collaborative for Metasploit -- do not be
3636
surprised if your pull request to rapid7/metasploit-framework triggers a
3737
pull request back to your own fork. In this way, we can isolate working
3838
changes before landing your PR to the Metasploit master branch.
39+
40+
To save yourself the embarrassment of committing common errors, you will
41+
want to symlink the `msftidy.rb` utility to your pre-commit hooks by
42+
running `ln -s ../../tools/dev/pre-commit-hook.rb .git/hooks/pre-commit`
43+
from the top-level directory of your metasploit-framework clone. This
44+
will prevent you from committing modules that raise WARNINGS or ERRORS.

Gemfile

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,60 @@ source 'http://rubygems.org'
22

33
# Need 3+ for ActiveSupport::Concern
44
gem 'activesupport', '>= 3.0.0'
5-
# Needed for Msf::DbManager
6-
gem 'activerecord'
75
# Needed for some admin modules (scrutinizer_add_user.rb)
86
gem 'json'
9-
# Database models shared between framework and Pro.
10-
gem 'metasploit_data_models', :git => 'git://github.com/rapid7/metasploit_data_models.git', :tag => '0.6.0'
117
# Needed by msfgui and other rpc components
128
gem 'msgpack'
139
# Needed by anemone crawler
1410
gem 'nokogiri'
15-
# Needed for module caching in Mdm::ModuleDetails
16-
gem 'pg', '>= 0.11'
1711
# Needed by anemone crawler
1812
gem 'robots'
19-
# For sniffer and raw socket modules
20-
gem 'pcaprub'
13+
# Needed by db.rb and Msf::Exploit::Capture
14+
gem 'packetfu', '1.1.8'
15+
16+
group :db do
17+
# Needed for Msf::DbManager
18+
gem 'activerecord'
19+
# Database models shared between framework and Pro.
20+
gem 'metasploit_data_models', '~> 0.16.1'
21+
# Needed for module caching in Mdm::ModuleDetails
22+
gem 'pg', '>= 0.11'
23+
end
24+
25+
group :pcap do
26+
# For sniffer and raw socket modules
27+
gem 'pcaprub'
28+
end
2129

2230
group :development do
23-
# Markdown formatting for yard
24-
gem 'redcarpet'
25-
# generating documentation
26-
gem 'yard'
31+
# Markdown formatting for yard
32+
gem 'redcarpet'
33+
# generating documentation
34+
gem 'yard'
2735
end
2836

2937
group :development, :test do
30-
# running documentation generation tasks and rspec tasks
31-
gem 'rake'
38+
# supplies factories for producing model instance for specs
39+
# Version 4.1.0 or newer is needed to support generate calls without the
40+
# 'FactoryGirl.' in factory definitions syntax.
41+
gem 'factory_girl', '>= 4.1.0'
42+
# running documentation generation tasks and rspec tasks
43+
gem 'rake'
3244
end
3345

3446
group :test do
35-
# testing framework
36-
gem 'rspec', '>= 2.12'
37-
# code coverage for tests
38-
# any version newer than 0.5.4 gives an Encoding error when trying to read the source files.
39-
gem 'simplecov', '0.5.4', :require => false
47+
# Removes records from database created during tests. Can't use rspec-rails'
48+
# transactional fixtures because multiple connections are in use so
49+
# transactions won't work.
50+
gem 'database_cleaner'
51+
# testing framework
52+
gem 'rspec', '>= 2.12'
53+
# add matchers from shoulda, such as query_the_database, which is useful for
54+
# testing that the Msf::DBManager activation is respected.
55+
gem 'shoulda-matchers'
56+
# code coverage for tests
57+
# any version newer than 0.5.4 gives an Encoding error when trying to read the source files.
58+
gem 'simplecov', '0.5.4', :require => false
59+
# Manipulate Time.now in specs
60+
gem 'timecop'
4061
end

Gemfile.lock

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,82 @@
1-
GIT
2-
remote: git://github.com/rapid7/metasploit_data_models.git
3-
revision: 0285d6e199f125b33214100dcb0f4eeb12ee765f
4-
tag: 0.6.0
5-
specs:
6-
metasploit_data_models (0.6.0)
7-
activerecord (>= 3.2.10)
8-
activesupport
9-
pg
10-
pry
11-
121
GEM
132
remote: http://rubygems.org/
143
specs:
15-
activemodel (3.2.12)
16-
activesupport (= 3.2.12)
4+
activemodel (3.2.13)
5+
activesupport (= 3.2.13)
176
builder (~> 3.0.0)
18-
activerecord (3.2.12)
19-
activemodel (= 3.2.12)
20-
activesupport (= 3.2.12)
7+
activerecord (3.2.13)
8+
activemodel (= 3.2.13)
9+
activesupport (= 3.2.13)
2110
arel (~> 3.0.2)
2211
tzinfo (~> 0.3.29)
23-
activesupport (3.2.12)
24-
i18n (~> 0.6)
12+
activesupport (3.2.13)
13+
i18n (= 0.6.1)
2514
multi_json (~> 1.0)
2615
arel (3.0.2)
16+
bourne (1.4.0)
17+
mocha (~> 0.13.2)
2718
builder (3.0.4)
28-
coderay (1.0.9)
29-
diff-lcs (1.1.3)
30-
i18n (0.6.4)
19+
database_cleaner (0.9.1)
20+
diff-lcs (1.2.2)
21+
factory_girl (4.2.0)
22+
activesupport (>= 3.0.0)
23+
i18n (0.6.1)
3124
json (1.7.7)
32-
method_source (0.8.1)
33-
msgpack (0.5.2)
25+
metaclass (0.0.1)
26+
metasploit_data_models (0.16.1)
27+
activerecord (>= 3.2.13)
28+
activesupport
29+
pg
30+
mocha (0.13.3)
31+
metaclass (~> 0.0.1)
32+
msgpack (0.5.4)
3433
multi_json (1.0.4)
35-
nokogiri (1.5.6)
34+
nokogiri (1.5.9)
35+
packetfu (1.1.8)
3636
pcaprub (0.11.3)
37-
pg (0.14.1)
38-
pry (0.9.12)
39-
coderay (~> 1.0.5)
40-
method_source (~> 0.8)
41-
slop (~> 3.4)
42-
rake (10.0.2)
37+
pg (0.15.1)
38+
rake (10.0.4)
4339
redcarpet (2.2.2)
4440
robots (0.10.1)
45-
rspec (2.12.0)
46-
rspec-core (~> 2.12.0)
47-
rspec-expectations (~> 2.12.0)
48-
rspec-mocks (~> 2.12.0)
49-
rspec-core (2.12.1)
50-
rspec-expectations (2.12.0)
51-
diff-lcs (~> 1.1.3)
52-
rspec-mocks (2.12.0)
41+
rspec (2.13.0)
42+
rspec-core (~> 2.13.0)
43+
rspec-expectations (~> 2.13.0)
44+
rspec-mocks (~> 2.13.0)
45+
rspec-core (2.13.1)
46+
rspec-expectations (2.13.0)
47+
diff-lcs (>= 1.1.3, < 2.0)
48+
rspec-mocks (2.13.0)
49+
shoulda-matchers (1.5.2)
50+
activesupport (>= 3.0.0)
51+
bourne (~> 1.3)
5352
simplecov (0.5.4)
5453
multi_json (~> 1.0.3)
5554
simplecov-html (~> 0.5.3)
5655
simplecov-html (0.5.3)
57-
slop (3.4.3)
58-
tzinfo (0.3.36)
59-
yard (0.8.3)
56+
timecop (0.6.1)
57+
tzinfo (0.3.37)
58+
yard (0.8.5.2)
6059

6160
PLATFORMS
6261
ruby
6362

6463
DEPENDENCIES
6564
activerecord
6665
activesupport (>= 3.0.0)
66+
database_cleaner
67+
factory_girl (>= 4.1.0)
6768
json
68-
metasploit_data_models!
69+
metasploit_data_models (~> 0.16.1)
6970
msgpack
7071
nokogiri
72+
packetfu (= 1.1.8)
7173
pcaprub
7274
pg (>= 0.11)
7375
rake
7476
redcarpet
7577
robots
7678
rspec (>= 2.12)
79+
shoulda-matchers
7780
simplecov (= 0.5.4)
81+
timecop
7882
yard

HACKING

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,15 @@ Non-scanner aux modules use run().
110110
Submitting Your Code
111111
====================
112112

113-
The process for submitting new modules via GitHub is documented here:
113+
To get started with a Metasploit Framework source clone, simply:
114+
115+
- Fork rapid7/metasploit-framework to your GitHub account
116+
- git clone git://github.com/YourName/metasploit-framework.git
117+
- gem install bundler
118+
- bundle install
119+
120+
More detailed documentation regarding the process for submitting new
121+
modules via GitHub is documented here:
114122

115123
https://github.com/rapid7/metasploit-framework/wiki/Metasploit-Development-Environment
116124

0 commit comments

Comments
 (0)