Class: Msf::Plugin::Capture
- Inherits:
-
Msf::Plugin
- Object
- Msf::Plugin
- Msf::Plugin::Capture
- Defined in:
- plugins/capture.rb
Overview
Combines several Metasploit modules related to spoofing names and capturing credentials into one plugin
Defined Under Namespace
Classes: ConsoleCommandDispatcher
Instance Attribute Summary
Attributes inherited from Msf::Plugin
Attributes included from Framework::Offspring
Instance Method Summary collapse
- #cleanup ⇒ Object
- #desc ⇒ Object
-
#initialize(framework, opts) ⇒ Capture
constructor
A new instance of Capture.
- #name ⇒ Object
Methods inherited from Msf::Plugin
#add_console_dispatcher, create, #flush, #input, #output, #print, #print_error, #print_good, #print_line, #print_status, #print_warning, #remove_console_dispatcher
Constructor Details
#initialize(framework, opts) ⇒ Capture
Returns a new instance of Capture.
626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 |
# File 'plugins/capture.rb', line 626 def initialize(framework, opts) super add_console_dispatcher(ConsoleCommandDispatcher) filename = 'capture_config.yaml' user_config_file = File.join(Msf::Config.config_directory, filename) unless File.exist?(user_config_file) # Initialise user config file with the installed one base_config_file = File.join(Msf::Config.data_directory, filename) unless File.exist?(base_config_file) print_error('Plugin config file not found!') return end FileUtils.cp(base_config_file, user_config_file) end end |
Instance Method Details
#cleanup ⇒ Object
642 643 644 |
# File 'plugins/capture.rb', line 642 def cleanup remove_console_dispatcher('HashCapture') end |
#desc ⇒ Object
650 651 652 |
# File 'plugins/capture.rb', line 650 def desc 'Start all credential capture and spoofing services' end |
#name ⇒ Object
646 647 648 |
# File 'plugins/capture.rb', line 646 def name 'Credential Capture' end |