Sha256: 4f5f8392e81a4ef113f15d27732fd5de0b03260c55f7d0ddb3e760074a00df9e

Contents?: true

Size: 693 Bytes

Versions: 43

Compression:

Stored size: 693 Bytes

Contents

require 'rex/post/meterpreter'

module Rex
module Post
module Meterpreter
module Ui

###
#
# The password database portion of the privilege escalation extension.
#
###
class Console::CommandDispatcher::Priv::Passwd

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

	include Console::CommandDispatcher

	#
	# List of supported commands.
	#
	def commands
		{
			"hashdump" => "Dumps the contents of the SAM database"
		}
	end

	#
	# Name for this dispatcher.
	#
	def name
		"Priv: Password database"
	end

	#
	# Displays the contents of the SAM database
	#
	def cmd_hashdump(*args)
		client.priv.sam_hashes.each { |user|
			print_line("#{user}")
		}
		
		return true
	end

end

end
end
end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.65 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.63 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.54 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.53 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.52 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.51 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.50 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.49 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.48 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.47 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.46 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.44 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.43 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.42 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.41 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.40 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.39 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.38 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.37 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.36 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb