Skip to content

Commit 0140caf

Browse files
author
m-1-k-3
committed
Merge branch 'master' of git://github.com/rapid7/metasploit-framework into openpli-shell
2 parents 3ab5585 + 2f11796 commit 0140caf

File tree

11,611 files changed

+1150472
-72964
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,611 files changed

+1150472
-72964
lines changed

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1+
# Rubymine project directory
2+
.idea
3+
# RVM control file
4+
.rvmrc
5+
# YARD cache directory
6+
.yardoc
7+
# Mac OS X files
8+
.DS_Store
9+
# simplecov coverage data
10+
coverage
111
data/meterpreter/ext_server_pivot.dll
212
data/meterpreter/ext_server_pivot.x64.dll
13+
doc/
14+
external/source/meterpreter/java/bin
15+
external/source/meterpreter/java/build
16+
external/source/meterpreter/java/extensions
17+
external/source/javapayload/bin
18+
external/source/javapayload/build
19+
# Packaging directory
20+
pkg
321
tags
422
*.swp
23+
*.orig
24+
*.rej
25+
*~

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format documentation

.simplecov

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# RM_INFO is set when using Rubymine. In Rubymine, starting SimpleCov is
2+
# controlled by running with coverage, so don't explicitly start coverage (and
3+
# therefore generate a report) when in Rubymine. This _will_ generate a report
4+
# whenever `rake spec` is run.
5+
unless ENV['RM_INFO']
6+
SimpleCov.start
7+
end
8+
9+
SimpleCov.configure do
10+
# ignore this file
11+
add_filter '.simplecov'
12+
13+
#
14+
# Changed Files in Git Group
15+
# @see http://fredwu.me/post/35625566267/simplecov-test-coverage-for-changed-files-only
16+
#
17+
18+
untracked = `git ls-files --exclude-standard --others`
19+
unstaged = `git diff --name-only`
20+
staged = `git diff --name-only --cached`
21+
all = untracked + unstaged + staged
22+
changed_filenames = all.split("\n")
23+
24+
add_group 'Changed' do |source_file|
25+
changed_filenames.detect { |changed_filename|
26+
source_file.filename.end_with?(changed_filename)
27+
}
28+
end
29+
30+
#
31+
# Framework (msf) related groups
32+
#
33+
34+
add_group 'Metasploit Framework', 'lib/msf'
35+
add_group 'Metasploit Framework (Base)', 'lib/msf/base'
36+
add_group 'Metasploit Framework (Core)', 'lib/msf/core'
37+
38+
#
39+
# Other library groups
40+
#
41+
42+
add_group 'Fastlib', 'lib/fastlib'
43+
add_group 'Metasm', 'lib/metasm'
44+
add_group 'PacketFu', 'lib/packetfu'
45+
add_group 'Rex', 'lib/rex'
46+
add_group 'RKelly', 'lib/rkelly'
47+
add_group 'Ruby Mysql', 'lib/rbmysql'
48+
add_group 'Ruby Postgres', 'lib/postgres'
49+
add_group 'SNMP', 'lib/snmp'
50+
add_group 'Zip', 'lib/zip'
51+
52+
#
53+
# Specs are reported on to ensure that all examples are being run and all
54+
# lets, befores, afters, etc are being used.
55+
#
56+
57+
add_group 'Specs', 'spec'
58+
end

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: ruby
2+
before_install:
3+
- sudo apt-get update -qq
4+
- sudo apt-get install -qq libpcap-dev
5+
6+
rvm:
7+
#- '1.8.7'
8+
- '1.9.3'
9+
10+
notifications:
11+
irc: "irc.freenode.org#msfnotify"
12+
13+
git:
14+
depth: 1

.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: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Contributing to Metasploit
2+
3+
## Reporting Bugs
4+
5+
If you would like to report a bug, please take a look at [our Redmine
6+
issue
7+
tracker](https://dev.metasploit.com/redmine/projects/framework/issues?query_id=420)
8+
-- your bug may already have been reported there! Simply [searching](https://dev.metasploit.com/redmine/projects/framework/search) for some appropriate keywords may save everyone a lot of hassle.
9+
10+
If your bug is new and you'd like to report it you will need to
11+
[register
12+
first](https://dev.metasploit.com/redmine/account/register). Don't
13+
worry, it's easy and fun and takes about 30 seconds.
14+
15+
When you file a bug report, please inclue your **steps to reproduce**,
16+
full copy-pastes of Ruby stack traces, and any relevant details about
17+
your environment. Without repro steps, your bug will likely be closed.
18+
With repro steps, your bugs will likely be fixed.
19+
20+
## Contributing Metasploit Modules
21+
22+
If you have an exploit that you'd like to contribute to the Metasploit
23+
Framework, please familiarize yourself with the
24+
**[HACKING](https://github.com/rapid7/metasploit-framework/blob/master/HACKING)**
25+
document in the
26+
Metasploit-Framework repository. There are many mysteries revealed in
27+
HACKING concerning code style and content.
28+
29+
[Pull requests](https://github.com/rapid7/metasploit-framework/pulls)
30+
should corellate with modules at a 1:1 ratio
31+
-- there is rarely a good reason to have two, three, or ten modules on
32+
one pull request, as this dramatically increases the review time
33+
required to land (commit) any of those modules.
34+
35+
Pull requests tend to be very collaborative for Metasploit -- do not be
36+
surprised if your pull request to rapid7/metasploit-framework triggers a
37+
pull request back to your own fork. In this way, we can isolate working
38+
changes before landing your PR to the Metasploit master branch.

COPYING

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Copyright (C) 2006-2013, Rapid7 Inc.
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of Rapid7 LLC nor the names of its contributors
15+
may be used to endorse or promote products derived from this software
16+
without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
22+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+
29+
================================================================================
30+
31+
The Metasploit Framework is provided under the 3-clause BSD license above.
32+
33+
The copyright on this package is held by Rapid7 LLC.
34+
35+
This license does not apply to several components within the Metasploit
36+
Framework source tree. For more details see the LICENSE file.
37+

Gemfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
source 'http://rubygems.org'
2+
3+
# Need 3+ for ActiveSupport::Concern
4+
gem 'activesupport', '>= 3.0.0'
5+
# Needed for Msf::DbManager
6+
gem 'activerecord'
7+
# Needed for some admin modules (scrutinizer_add_user.rb)
8+
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.2'
11+
# Needed by msfgui and other rpc components
12+
gem 'msgpack'
13+
# Needed by anemone crawler
14+
gem 'nokogiri'
15+
# Needed for module caching in Mdm::ModuleDetails
16+
gem 'pg', '>= 0.11'
17+
# Needed by anemone crawler
18+
gem 'robots'
19+
# For sniffer and raw socket modules
20+
gem 'pcaprub'
21+
22+
group :development do
23+
# Markdown formatting for yard
24+
gem 'redcarpet'
25+
# generating documentation
26+
gem 'yard'
27+
end
28+
29+
group :development, :test do
30+
# running documentation generation tasks and rspec tasks
31+
gem 'rake'
32+
end
33+
34+
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
40+
end

Gemfile.lock

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
GIT
2+
remote: git://github.com/rapid7/metasploit_data_models.git
3+
revision: 67d78f9ce59a74ad9d6e8d3f9e68760ff4d2ec55
4+
tag: 0.6.2
5+
specs:
6+
metasploit_data_models (0.6.2)
7+
activerecord (>= 3.2.10)
8+
activesupport
9+
pg
10+
pry
11+
12+
GEM
13+
remote: http://rubygems.org/
14+
specs:
15+
activemodel (3.2.12)
16+
activesupport (= 3.2.12)
17+
builder (~> 3.0.0)
18+
activerecord (3.2.12)
19+
activemodel (= 3.2.12)
20+
activesupport (= 3.2.12)
21+
arel (~> 3.0.2)
22+
tzinfo (~> 0.3.29)
23+
activesupport (3.2.12)
24+
i18n (~> 0.6)
25+
multi_json (~> 1.0)
26+
arel (3.0.2)
27+
builder (3.0.4)
28+
coderay (1.0.9)
29+
diff-lcs (1.1.3)
30+
i18n (0.6.4)
31+
json (1.7.7)
32+
method_source (0.8.1)
33+
msgpack (0.5.2)
34+
multi_json (1.0.4)
35+
nokogiri (1.5.6)
36+
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)
43+
redcarpet (2.2.2)
44+
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)
53+
simplecov (0.5.4)
54+
multi_json (~> 1.0.3)
55+
simplecov-html (~> 0.5.3)
56+
simplecov-html (0.5.3)
57+
slop (3.4.3)
58+
tzinfo (0.3.36)
59+
yard (0.8.3)
60+
61+
PLATFORMS
62+
ruby
63+
64+
DEPENDENCIES
65+
activerecord
66+
activesupport (>= 3.0.0)
67+
json
68+
metasploit_data_models!
69+
msgpack
70+
nokogiri
71+
pcaprub
72+
pg (>= 0.11)
73+
rake
74+
redcarpet
75+
robots
76+
rspec (>= 2.12)
77+
simplecov (= 0.5.4)
78+
yard

0 commit comments

Comments
 (0)