Class: Aspisec::Modules::Netexec
- Inherits:
-
Aspisec::Module
- Object
- Aspisec::Module
- Aspisec::Modules::Netexec
- Defined in:
- lib-ruby/aspisec/modules/netexec.rb
Overview
NetExec module.
Inherits Aspisec::Module.
For more examples of methods, see Sqlmap.
Instance Attribute Summary collapse
- #logs ⇒ Location readonly
- #screenshots ⇒ Location readonly
- #workspaces ⇒ Location readonly
Attributes inherited from Aspisec::Module
#base, #conf, #locations_list, #name
Instance Method Summary collapse
-
#initialize(conf, logger: nil) ⇒ Netexec
constructor
Inherits from Aspisec::Module but has only the
conf
argument,tool_name
is hardcoded for each module.
Methods inherited from Aspisec::Module
#check_config, #enabled?, #locations
Constructor Details
#initialize(conf, logger: nil) ⇒ Netexec
Inherits from Aspisec::Module but has only the conf
argument,
tool_name
is hardcoded for each module.
34 35 36 37 38 39 40 |
# File 'lib-ruby/aspisec/modules/netexec.rb', line 34 def initialize(conf, logger: nil) super(conf, 'netexec', 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
#logs ⇒ Location (readonly)
21 22 23 |
# File 'lib-ruby/aspisec/modules/netexec.rb', line 21 def logs @logs end |
#screenshots ⇒ Location (readonly)
25 26 27 |
# File 'lib-ruby/aspisec/modules/netexec.rb', line 25 def screenshots @screenshots end |
#workspaces ⇒ Location (readonly)
29 30 31 |
# File 'lib-ruby/aspisec/modules/netexec.rb', line 29 def workspaces @workspaces end |