Class: Msf::Modules::Loader::Archive

Inherits:
Base
  • Object
show all
Defined in:
lib/msf/core/modules/loader/archive.rb

Overview

Concerns loading modules form fastlib archives

Constant Summary collapse

ARCHIVE_EXTENSION =

The extension for Fastlib archives.

'.fastlib'

Constants inherited from Base

Base::DIRECTORY_BY_TYPE, Base::MODULE_EXTENSION, Base::MODULE_SEPARATOR, Base::NAMESPACE_MODULE_CONTENT, Base::NAMESPACE_MODULE_LINE, Base::NAMESPACE_MODULE_NAMES, Base::UNIT_TEST_REGEX

Instance Method Summary collapse

Methods inherited from Base

#initialize, #load_module, #load_modules, #reload_module

Constructor Details

This class inherits a constructor from Msf::Modules::Loader::Base

Instance Method Details

#loadable?(path) ⇒ true, false

Returns true if the path is a Fastlib archive.

Parameters:

  • path (String)

    Path under which there are modules

Returns:


17
18
19
20
21
22
23
# File 'lib/msf/core/modules/loader/archive.rb', line 17

def loadable?(path)
  if File.extname(path) == ARCHIVE_EXTENSION
    true
  else
    false
  end
end