Class: Aspisec::Modules::Metasploit
- Inherits:
-
Aspisec::Module
- Object
- Aspisec::Module
- Aspisec::Modules::Metasploit
- Defined in:
- lib-ruby/aspisec/modules/metasploit.rb
Overview
Metasploit module.
Inherits Aspisec::Module.
For more examples of methods, see Sqlmap.
Instance Attribute Summary collapse
- #history ⇒ Location readonly
- #logs ⇒ Location readonly
- #loot ⇒ Location readonly
- #meterpreter ⇒ Location readonly
Attributes inherited from Aspisec::Module
#base, #conf, #locations_list, #name
Instance Method Summary collapse
-
#initialize(conf, logger: nil) ⇒ Metasploit
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) ⇒ Metasploit
Inherits from Aspisec::Module but has only the conf
argument,
tool_name
is hardcoded for each module.
38 39 40 41 42 43 44 45 |
# File 'lib-ruby/aspisec/modules/metasploit.rb', line 38 def initialize(conf, logger: nil) super(conf, 'metasploit', logger:) @history = Location.new(@conf, 'history') @logs = Location.new(@conf, 'logs') @loot = Location.new(@conf, 'loot') @meterpreter = Location.new(@conf, 'meterpreter') @locations_list = %w[history logs loot meterpreter] end |
Instance Attribute Details
#history ⇒ Location (readonly)
21 22 23 |
# File 'lib-ruby/aspisec/modules/metasploit.rb', line 21 def history @history end |
#logs ⇒ Location (readonly)
25 26 27 |
# File 'lib-ruby/aspisec/modules/metasploit.rb', line 25 def logs @logs end |
#loot ⇒ Location (readonly)
29 30 31 |
# File 'lib-ruby/aspisec/modules/metasploit.rb', line 29 def loot @loot end |
#meterpreter ⇒ Location (readonly)
33 34 35 |
# File 'lib-ruby/aspisec/modules/metasploit.rb', line 33 def meterpreter @meterpreter end |