Skip to content

Commit 1faa816

Browse files
committed
Land rapid7#3818, Metasploit::Concern loading
2 parents 5dad73a + 39d302a commit 1faa816

File tree

5 files changed

+27
-21
lines changed

5 files changed

+27
-21
lines changed

Gemfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ gemspec
66
group :db do
77
# Needed for Msf::DbManager
88
gem 'activerecord', '>= 3.0.0', '< 4.0.0'
9-
# Metasploit::Concern hooks
10-
gem 'metasploit-concern', '~> 0.1.1'
9+
1110
# Metasploit::Credential database models
12-
gem 'metasploit-credential', '>= 0.9.0'
11+
gem 'metasploit-credential', '~> 0.10.1'
1312
# Database models shared between framework and Pro.
14-
gem 'metasploit_data_models', '~> 0.19'
13+
gem 'metasploit_data_models', '~> 0.20.1'
1514
# Needed for module caching in Mdm::ModuleDetails
1615
gem 'pg', '>= 0.11'
1716
end

Gemfile.lock

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ PATH
66
activesupport (>= 3.0.0, < 4.0.0)
77
bcrypt
88
json
9-
metasploit-model (~> 0.26.1)
9+
metasploit-concern (~> 0.2.1)
10+
metasploit-model (~> 0.27.1)
1011
meterpreter_bins (= 0.0.7)
1112
msgpack
1213
nokogiri
@@ -94,30 +95,34 @@ GEM
9495
mail (2.5.4)
9596
mime-types (~> 1.16)
9697
treetop (~> 1.4.8)
97-
metasploit-concern (0.1.1)
98+
metasploit-concern (0.2.1)
9899
activesupport (~> 3.0, >= 3.0.0)
99-
metasploit-credential (0.9.0)
100-
metasploit-concern (~> 0.1.0)
101-
metasploit-model (~> 0.26.1)
102-
metasploit_data_models (~> 0.19.4)
100+
railties (< 4.0.0)
101+
metasploit-credential (0.10.1)
102+
metasploit-concern (~> 0.2.1)
103+
metasploit-model (~> 0.27.0)
104+
metasploit_data_models (~> 0.20.0)
103105
pg
106+
railties (< 4.0.0)
104107
rubyntlm
105108
rubyzip (~> 1.1)
106-
metasploit-model (0.26.1)
109+
metasploit-model (0.27.1)
107110
activesupport
108-
metasploit_data_models (0.19.4)
111+
railties (< 4.0.0)
112+
metasploit_data_models (0.20.1)
109113
activerecord (>= 3.2.13, < 4.0.0)
110114
activesupport
111115
arel-helpers
112-
metasploit-concern (~> 0.1.0)
113-
metasploit-model (~> 0.26.1)
116+
metasploit-concern (~> 0.2.1)
117+
metasploit-model (~> 0.27.0)
114118
pg
119+
railties (< 4.0.0)
115120
meterpreter_bins (0.0.7)
116121
method_source (0.8.2)
117122
mime-types (1.25.1)
118123
mini_portile (0.6.0)
119124
msgpack (0.5.8)
120-
multi_json (1.0.3)
125+
multi_json (1.0.4)
121126
network_interface (0.0.1)
122127
nokogiri (1.6.3.1)
123128
mini_portile (= 0.6.0)
@@ -211,10 +216,9 @@ DEPENDENCIES
211216
factory_girl (>= 4.1.0)
212217
factory_girl_rails
213218
fivemat (= 1.2.1)
214-
metasploit-concern (~> 0.1.1)
215-
metasploit-credential (>= 0.9.0)
219+
metasploit-credential (~> 0.10.1)
216220
metasploit-framework!
217-
metasploit_data_models (~> 0.19)
221+
metasploit_data_models (~> 0.20.1)
218222
network_interface (~> 0.0.1)
219223
pcaprub
220224
pg (>= 0.11)

db/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# It's strongly recommended to check this file into your version control system.
1313

14-
ActiveRecord::Schema.define(:version => 20140801150537) do
14+
ActiveRecord::Schema.define(:version => 20140905031549) do
1515

1616
create_table "api_keys", :force => true do |t|
1717
t.text "token"
@@ -125,6 +125,7 @@
125125
t.integer "host_detail_count", :default => 0
126126
t.integer "exploit_attempt_count", :default => 0
127127
t.integer "cred_count", :default => 0
128+
t.string "detected_arch"
128129
end
129130

130131
add_index "hosts", ["name"], :name => "index_hosts_on_name"

metasploit-framework.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ Gem::Specification.new do |spec|
5757
spec.add_runtime_dependency 'bcrypt'
5858
# Needed for some admin modules (scrutinizer_add_user.rb)
5959
spec.add_runtime_dependency 'json'
60+
# Metasploit::Concern hooks
61+
spec.add_runtime_dependency 'metasploit-concern', '~> 0.2.1'
6062
# Things that would normally be part of the database model, but which
6163
# are needed when there's no database
62-
spec.add_runtime_dependency 'metasploit-model', '~> 0.26.1'
64+
spec.add_runtime_dependency 'metasploit-model', '~> 0.27.1'
6365
# Needed for Meterpreter on Windows, soon others.
6466
spec.add_runtime_dependency 'meterpreter_bins', '0.0.7'
6567
# Needed by msfgui and other rpc components

spec/lib/msf/ui/command_dispatcher/db_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
" -o <file> Send output to a file in csv format",
7575
" -R,--rhosts Set RHOSTS from the results of the search",
7676
" -S,--search Search string to filter by",
77-
"Available columns: address, arch, comm, comments, created_at, cred_count, exploit_attempt_count, host_detail_count, info, mac, name, note_count, os_flavor, os_lang, os_name, os_sp, purpose, scope, service_count, state, updated_at, virtual_host, vuln_count"
77+
"Available columns: address, arch, comm, comments, created_at, cred_count, detected_arch, exploit_attempt_count, host_detail_count, info, mac, name, note_count, os_flavor, os_lang, os_name, os_sp, purpose, scope, service_count, state, updated_at, virtual_host, vuln_count"
7878
]
7979
end
8080
end

0 commit comments

Comments
 (0)