Class: Aspisec::Modules::Dbgate

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

Overview

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

Examples:

# Get the global config
conf = Aspisec::Config.new.conf
# Create a Dbgate module instance
dbg = Aspisec::Modules::Dbgate.new(conf)
# Locations available
dbg.locations_list # => ["connections", "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) ⇒ Dbgate

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/dbgate.rb', line 30

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

Instance Attribute Details

#connectionsLocation (readonly)

Returns:



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

def connections
  @connections
end

#logsLocation (readonly)

Returns:



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

def logs
  @logs
end