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_tabs, #initialize, #print, #print_error, #print_good, #print_line, #print_status, #tab_complete_filenames, #update_prompt

Instance Method Details

#cmd_hashdump(*args) ⇒ Object

Displays the contents of the SAM database



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

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

#commandsObject

List of supported commands.



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

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

#nameObject

Name for this dispatcher.



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

def name
	"Priv: Password database"
end