Class: Aspisec::Modules::Weevely

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

Overview

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

Examples:

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

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

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

Parameters:



34
35
36
37
38
39
40
# File 'lib-ruby/aspisec/modules/weevely.rb', line 34

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

Instance Attribute Details

#historyLocation (readonly)

Returns:



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

def history
  @history
end

#logsLocation (readonly)

Returns:



29
30
31
# File 'lib-ruby/aspisec/modules/weevely.rb', line 29

def logs
  @logs
end

#sessionsLocation (readonly)

Returns:



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

def sessions
  @sessions
end