Class: Rex::Post::Meterpreter::Ui::Console::CommandDispatcher::Priv::Passwd

Inherits:
Object
  • Object
show all
Includes:
Rex::Post::Meterpreter::Ui::Console::CommandDispatcher
Defined in:
lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb

Overview

The password database portion of the privilege escalation extension.

Constant Summary collapse

Klass =
Console::CommandDispatcher::Priv::Passwd

Instance Attribute Summary

Attributes included from Ui::Text::DispatcherShell::CommandDispatcher

#shell, #tab_complete_items

Instance Method Summary collapse

Methods included from Rex::Post::Meterpreter::Ui::Console::CommandDispatcher

check_hash, #client, #initialize, #log_error, #msf_loaded?, set_hash

Methods included from Ui::Text::DispatcherShell::CommandDispatcher

#cmd_help, #cmd_help_help, #cmd_help_tabs, #deprecated_cmd, #deprecated_commands, #deprecated_help, #help_to_s, #initialize, #print, #print_error, #print_good, #print_line, #print_status, #print_warning, #tab_complete_filenames, #update_prompt

Instance Method Details

#cmd_hashdump(*args) ⇒ Object

Displays the contents of the SAM database


39
40
41
42
43
44
45
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb', line 39

def cmd_hashdump(*args)
  client.priv.sam_hashes.each { |user|
    print_line("#{user}")
  }

  return true
end

#commandsObject

List of supported commands.


23
24
25
26
27
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb', line 23

def commands
  {
    "hashdump" => "Dumps the contents of the SAM database"
  }
end

#nameObject

Name for this dispatcher.


32
33
34
# File 'lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb', line 32

def name
  "Priv: Password database"
end