Class: Aspisec::Modules::Ncrack

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

Overview

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

Examples:

# Get the global config
conf = Aspisec::Config.new.conf
# Create a Ncrack module instance
ncr = Aspisec::Modules::Ncrack.new(conf)
# Locations available
ncr.locations_list # => ["restore"]

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) ⇒ Ncrack

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

Parameters:



26
27
28
29
30
# File 'lib-ruby/aspisec/modules/ncrack.rb', line 26

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

Instance Attribute Details

#restoreLocation (readonly)

Returns:



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

def restore
  @restore
end