Class: Aspisec::Modules::Crackmapexec

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

Overview

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

Examples:

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

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

Inherits from Aspisec::Module but without the tool_name argument
because it is hardcoded for each module.

Parameters:



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

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

Instance Attribute Details

#logsLocation (readonly)

Returns:



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

def logs
  @logs
end

#screenshotsLocation (readonly)

Returns:



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

def screenshots
  @screenshots
end

#workspacesLocation (readonly)

Returns:



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

def workspaces
  @workspaces
end