Sha256: 5e4dd8c3cd6f3478772959f8e976453cfa4769f2c70ee268557f8d6295e94a7a

Contents?: true

Size: 925 Bytes

Versions: 2

Compression:

Stored size: 925 Bytes

Contents

# -*- coding: binary -*-
require 'rex/post/meterpreter'

module Rex
module Post
module Meterpreter
module Ui

###
#
# Privilege escalation extension user interface.
#
###
class Console::CommandDispatcher::Priv

	require 'rex/post/meterpreter/ui/console/command_dispatcher/priv/elevate'
	require 'rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd'
	require 'rex/post/meterpreter/ui/console/command_dispatcher/priv/timestomp'

	Klass = Console::CommandDispatcher::Priv

	Dispatchers =
		[
			Klass::Elevate,
			Klass::Passwd,
			Klass::Timestomp,
		]

	include Console::CommandDispatcher

	#
	# Initializes an instance of the priv command interaction.
	#
	def initialize(shell)
		super

		Dispatchers.each { |d|
			shell.enstack_dispatcher(d)
		}
	end

	#
	# List of supported commands.
	#
	def commands
		{
		}
	end

	#
	# Name for this dispatcher
	#
	def name
		"Privilege Escalation"
	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.rb
librex-0.0.66 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv.rb