Class: Aspisec::Modules::Manspider

Inherits:
Aspisec::Module show all
Defined in:
lib-ruby/aspisec/modules/manspider.rb

Overview

MANSPIDER module.
Inherits Aspisec::Module.
For more examples of methods, see Sqlmap.

Examples:

# Get the global config
conf = Aspisec::Config.new.conf
# Create a Manspider module instance
ms = Aspisec::Modules::Manspider.new(conf)
# Locations available
ms.locations_list # => ["logs", "loot"]

See Also:

Instance Attribute Summary collapse

Attributes inherited from Aspisec::Module

#base, #conf, #locations_list, #name

Instance Method Summary collapse

Methods inherited from Aspisec::Module

#check_config, #enabled?, #locations

Constructor Details

#initialize(conf, logger: nil) ⇒ Manspider

Inherits from Aspisec::Module but has only the conf argument,
tool_name is hardcoded for each module.

Parameters:



30
31
32
33
34
35
# File 'lib-ruby/aspisec/modules/manspider.rb', line 30

def initialize(conf, logger: nil)
  super(conf, 'manspider', logger:)
  @logs = Location.new(@conf, 'logs')
  @loot = Location.new(@conf, 'loot')
  @locations_list = %w[logs loot]
end

Instance Attribute Details

#logsLocation (readonly)

Returns:



21
22
23
# File 'lib-ruby/aspisec/modules/manspider.rb', line 21

def logs
  @logs
end

#lootLocation (readonly)

Returns:



25
26
27
# File 'lib-ruby/aspisec/modules/manspider.rb', line 25

def loot
  @loot
end