Module: MetasploitDataModels

Extended by:
ActiveSupport::Autoload
Defined in:
lib/metasploit_data_models.rb,
lib/metasploit_data_models/version.rb

Overview

Core database models for metasploit-framework.

Defined Under Namespace

Modules: AutomaticExploitation, IPAddress, Match, Search, SerializedPrefs Classes: Base64Serializer, ChangeRequiredColumnsToNullFalse, Engine, ModuleRun

Constant Summary collapse

VERSION =

VERSION is managed by GemRelease

'5.0.0'

Class Method Summary collapse

Class Method Details

.rootPathname

The root directory of metasploit_data_models gem in both development and gem installs.

Returns:

  • (Pathname)

46
47
48
49
50
51
52
53
54
# File 'lib/metasploit_data_models.rb', line 46

def self.root
  unless instance_variable_defined? :@root
    lib_pathname = Pathname.new(__FILE__).dirname

    @root = lib_pathname.parent
  end

  @root
end

.versionString

returns the VERSION

Returns:

  • (String)

10
11
12
# File 'lib/metasploit_data_models/version.rb', line 10

def self.version
  VERSION
end