Skip to content

Commit f730aa9

Browse files
committed
Merge branch 'master'
Just catching up with master.
2 parents 9fe0a01 + 0a9b00e commit f730aa9

File tree

533 files changed

+13285
-3560
lines changed

Some content is hidden

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

533 files changed

+13285
-3560
lines changed

.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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
language: ruby
2+
before_install:
3+
- sudo apt-get update -qq
4+
- sudo apt-get install -qq libpcap-dev
5+
26
rvm:
37
#- '1.8.7'
48
- '1.9.3'

.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

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gem 'activerecord'
77
# Needed for some admin modules (scrutinizer_add_user.rb)
88
gem 'json'
99
# Database models shared between framework and Pro.
10-
gem 'metasploit_data_models', :git => 'git://github.com/rapid7/metasploit_data_models.git', :tag => '0.4.0'
10+
gem 'metasploit_data_models', :git => 'git://github.com/rapid7/metasploit_data_models.git', :tag => '0.6.1'
1111
# Needed by msfgui and other rpc components
1212
gem 'msgpack'
1313
# Needed by anemone crawler

Gemfile.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
GIT
22
remote: git://github.com/rapid7/metasploit_data_models.git
3-
revision: 448c1065329efea1eac76a3897f626f122666743
4-
tag: 0.4.0
3+
revision: 7f8e36d9b62a36bcbf43c8f1ab48a07bed0732d9
4+
tag: 0.6.1
55
specs:
6-
metasploit_data_models (0.4.0)
6+
metasploit_data_models (0.6.1)
77
activerecord (>= 3.2.10)
88
activesupport
99
pg
@@ -12,33 +12,33 @@ GIT
1212
GEM
1313
remote: http://rubygems.org/
1414
specs:
15-
activemodel (3.2.11)
16-
activesupport (= 3.2.11)
15+
activemodel (3.2.12)
16+
activesupport (= 3.2.12)
1717
builder (~> 3.0.0)
18-
activerecord (3.2.11)
19-
activemodel (= 3.2.11)
20-
activesupport (= 3.2.11)
18+
activerecord (3.2.12)
19+
activemodel (= 3.2.12)
20+
activesupport (= 3.2.12)
2121
arel (~> 3.0.2)
2222
tzinfo (~> 0.3.29)
23-
activesupport (3.2.11)
23+
activesupport (3.2.12)
2424
i18n (~> 0.6)
2525
multi_json (~> 1.0)
2626
arel (3.0.2)
2727
builder (3.0.4)
28-
coderay (1.0.8)
28+
coderay (1.0.9)
2929
diff-lcs (1.1.3)
30-
i18n (0.6.1)
30+
i18n (0.6.4)
3131
json (1.7.7)
3232
method_source (0.8.1)
3333
msgpack (0.5.2)
3434
multi_json (1.0.4)
3535
nokogiri (1.5.6)
3636
pcaprub (0.11.3)
3737
pg (0.14.1)
38-
pry (0.9.10)
38+
pry (0.9.12)
3939
coderay (~> 1.0.5)
4040
method_source (~> 0.8)
41-
slop (~> 3.3.1)
41+
slop (~> 3.4)
4242
rake (10.0.2)
4343
redcarpet (2.2.2)
4444
robots (0.10.1)
@@ -54,8 +54,8 @@ GEM
5454
multi_json (~> 1.0.3)
5555
simplecov-html (~> 0.5.3)
5656
simplecov-html (0.5.3)
57-
slop (3.3.3)
58-
tzinfo (0.3.35)
57+
slop (3.4.3)
58+
tzinfo (0.3.36)
5959
yard (0.8.3)
6060

6161
PLATFORMS

Rakefile

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,49 @@
11
require 'bundler/setup'
22

3-
require 'rspec/core/rake_task'
4-
require 'yard'
5-
6-
RSpec::Core::RakeTask.new(:spec)
7-
8-
task :default => :spec
9-
10-
namespace :yard do
11-
yard_files = [
12-
# Ruby source files first
13-
'lib/msf/**/*.rb',
14-
'lib/rex/**/*.rb',
15-
# Anything after '-' is a normal documentation, not source
16-
'-',
17-
'COPYING',
18-
'HACKING',
19-
'THIRD-PARTY.md'
20-
]
21-
yard_options = [
22-
# include documentation for protected methods for developers extending the code.
23-
'--protected'
24-
]
25-
26-
YARD::Rake::YardocTask.new(:doc) do |t|
27-
t.files = yard_files
28-
# --no-stats here as 'stats' task called after will print fuller stats
29-
t.options = yard_options + ['--no-stats']
30-
31-
t.after = Proc.new {
32-
Rake::Task['yard:stats'].execute
33-
}
34-
end
35-
36-
desc "Shows stats for YARD Documentation including listing undocumented modules, classes, constants, and methods"
37-
task :stats => :environment do
38-
stats = YARD::CLI::Stats.new
39-
yard_arguments = yard_options + ['--compact', '--list-undoc'] + yard_files
40-
stats.run(*yard_arguments)
41-
end
3+
require 'metasploit_data_models'
4+
5+
print_without = false
6+
7+
begin
8+
require 'rspec/core/rake_task'
9+
rescue LoadError
10+
puts "rspec not in bundle, so can't set up spec tasks. " \
11+
"To run specs ensure to install the development and test groups."
12+
13+
print_without = true
14+
else
15+
RSpec::Core::RakeTask.new(:spec)
16+
17+
task :default => :spec
18+
end
19+
20+
begin
21+
require 'yard'
22+
rescue LoadError
23+
puts "yard not in bundle, so can't set up yard tasks. " \
24+
"To generate documentation ensure to install the development group."
25+
26+
print_without = true
4227
end
4328

44-
# @todo Figure out how to just clone description from yard:doc
45-
desc "Generate YARD documentation"
46-
# allow calling namespace to as a task that goes to default task for namespace
47-
task :yard => ['yard:doc']
29+
metasploit_data_models_task_glob = MetasploitDataModels.root.join(
30+
'lib',
31+
'tasks',
32+
'**',
33+
'*.rake'
34+
).to_s
35+
36+
# include tasks from metasplioit_data_models, such as `rake yard`.
37+
# metasploit-framework specific yard options are in .yardopts
38+
Dir.glob(metasploit_data_models_task_glob) do |path|
39+
load path
40+
end
41+
42+
if print_without
43+
puts "Bundle currently installed " \
44+
"'--without #{Bundler.settings.without.join(' ')}'."
45+
puts "To clear the without option do `bundle install --without ''` " \
46+
"(the --without flag with an empty string) or " \
47+
"`rm -rf .bundle` to remove the .bundle/config manually and " \
48+
"then `bundle install`"
49+
end

data/armitage/armitage.jar

7.57 KB
Binary file not shown.

data/armitage/cortana.jar

7.57 KB
Binary file not shown.

data/armitage/whatsnew.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,35 @@
11
Armitage Changelog
22
==================
33

4+
6 Mar 13 (tested against msf ca43900a7)
5+
--------
6+
- Active console now gets higher priority when polling msf for output
7+
- Improved team server responsiveness in high latency situations by
8+
creating additional connections to server to balance messages over
9+
- Preferences are now shared among each Armitage connection.
10+
11+
6 Mar 13 (2000h)
12+
--------
13+
- Fixed issue with additional team server connections reporting wrong
14+
application and receiving a summary rejection by the team server.
15+
16+
Cortana Updates (for scripters)
17+
--------
18+
- Added a &publish, &query, &subscribe API to allow inter-script
19+
communication across the team server.
20+
- Added &table_update to set the contents of a table tab without
21+
disturbing the highlighted rows.
22+
- Added an exec_error event. Fired when &m_exec or &m_exec_local fail
23+
due to an error reported by meterpreter.
24+
- Fixed a bug that sometimes caused session_sync to fire twice (boo!)
25+
- Added a 60s timeout to &s_cmd commands. Cortana will give a shell
26+
command 60s to execute. If it doesn't finish in that time, Cortana
27+
will release the lock on the shell so the user can control it.
28+
(ideally, this shouldn't happen... this is a safety mechanism)
29+
- Changed Meterpreter command timeout to 2m from 12s. This is because
30+
https meterpreter might not checkin for up to 60s, if it's been
31+
idle for a long time. This will make &m_cmd less likely to timeout
32+
433
12 Feb 13 (tested against msf 16438)
534
---------
635
- Fixed a corner case preventing the display of removed host labels

data/exploits/cve-2013-0431/B.class

619 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)