Skip to content

Commit 6bc7643

Browse files
committed
Merge remote-tracking branch 'upstream/staging/electro-release' into staging/electro-release
2 parents 75dfcb2 + 1691795 commit 6bc7643

File tree

16 files changed

+122
-44
lines changed

16 files changed

+122
-44
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Gemfile.local.lock
77
.sublime-project
88
# RVM control file, keep this to avoid backdooring Metasploit
99
.rvmrc
10-
.ruby-version
11-
.ruby-gemset
1210
# YARD cache directory
1311
.yardoc
1412
# Mac OS X files

.ruby-gemset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
metasploit-framework

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.9.3-p484

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ group :db do
77
# Needed for Msf::DbManager
88
gem 'activerecord', '>= 3.0.0', '< 4.0.0'
99
# Metasploit::Credential database models
10-
gem 'metasploit-credential', '~>0.8.2'
10+
gem 'metasploit-credential', '>= 0.8.6', '< 0.9'
1111
# Database models shared between framework and Pro.
1212
gem 'metasploit_data_models', '~> 0.19'
1313
# Needed for module caching in Mdm::ModuleDetails

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ GEM
6161
json (1.8.1)
6262
metasploit-concern (0.1.1)
6363
activesupport (~> 3.0, >= 3.0.0)
64-
metasploit-credential (0.8.3)
64+
metasploit-credential (0.8.6)
6565
metasploit-concern (~> 0.1.0)
6666
metasploit-model (~> 0.26.1)
6767
metasploit_data_models (~> 0.19.4)
@@ -160,7 +160,7 @@ DEPENDENCIES
160160
factory_girl (>= 4.1.0)
161161
factory_girl_rails
162162
fivemat (= 1.2.1)
163-
metasploit-credential (~> 0.8.2)
163+
metasploit-credential (>= 0.8.6, < 0.9)
164164
metasploit-framework!
165165
metasploit_data_models (~> 0.19)
166166
network_interface (~> 0.0.1)

db/schema.rb

Lines changed: 7 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 => 20140722174919) do
14+
ActiveRecord::Schema.define(:version => 20140801150537) do
1515

1616
create_table "api_keys", :force => true do |t|
1717
t.text "token"
@@ -193,6 +193,12 @@
193193
add_index "metasploit_credential_cores", ["private_id"], :name => "index_metasploit_credential_cores_on_private_id"
194194
add_index "metasploit_credential_cores", ["public_id"], :name => "index_metasploit_credential_cores_on_public_id"
195195
add_index "metasploit_credential_cores", ["realm_id"], :name => "index_metasploit_credential_cores_on_realm_id"
196+
add_index "metasploit_credential_cores", ["workspace_id", "private_id"], :name => "unique_private_metasploit_credential_cores", :unique => true
197+
add_index "metasploit_credential_cores", ["workspace_id", "public_id", "private_id"], :name => "unique_realmless_metasploit_credential_cores", :unique => true
198+
add_index "metasploit_credential_cores", ["workspace_id", "public_id"], :name => "unique_public_metasploit_credential_cores", :unique => true
199+
add_index "metasploit_credential_cores", ["workspace_id", "realm_id", "private_id"], :name => "unique_publicless_metasploit_credential_cores", :unique => true
200+
add_index "metasploit_credential_cores", ["workspace_id", "realm_id", "public_id", "private_id"], :name => "unique_complete_metasploit_credential_cores", :unique => true
201+
add_index "metasploit_credential_cores", ["workspace_id", "realm_id", "public_id"], :name => "unique_privateless_metasploit_credential_cores", :unique => true
196202
add_index "metasploit_credential_cores", ["workspace_id"], :name => "index_metasploit_credential_cores_on_workspace_id"
197203

198204
create_table "metasploit_credential_logins", :force => true do |t|

lib/metasploit/framework/api.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module Metasploit
2+
module Framework
3+
module API
4+
5+
end
6+
end
7+
end
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module Metasploit
2+
module Framework
3+
module API
4+
# @note This is a like. The API version is not semantically version and it's version has actually never changed
5+
# even though API changes have occured. DO NOT base compatibility on this version.
6+
module Version
7+
MAJOR = 1
8+
MINOR = 0
9+
PATCH = 0
10+
end
11+
12+
VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::PATCH}"
13+
GEM_VERSION = Gem::Version.new(VERSION)
14+
end
15+
end
16+
end

lib/metasploit/framework/core.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module Metasploit
2+
module Framework
3+
module Core
4+
5+
end
6+
end
7+
end
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'metasploit/framework/version'
2+
3+
module Metasploit
4+
module Framework
5+
# @note This is a lie. The core libraries are not semantically versioned. This is currently just linked to the
6+
# Metasploit::Framework::Version, which is also not semantically versioned.
7+
module Core
8+
module Version
9+
MAJOR = Metasploit::Framework::Version::MAJOR
10+
MINOR = Metasploit::Framework::Version::MINOR
11+
PATCH = Metasploit::Framework::Version::PATCH
12+
PRERELEASE = Metasploit::Framework::Version::PRERELEASE
13+
end
14+
15+
VERSION = Metasploit::Framework::VERSION
16+
GEM_VERSION = Gem::Version.new(Metasploit::Framework::GEM_VERSION)
17+
end
18+
end
19+
end

0 commit comments

Comments
 (0)