f62247e731
Updated the comments and indentation so they're not blatantly wrong. Adjusted the pxexploit module so that it doesn't break any more as a result of the refactoring.
61 lines
866 B
Ruby
61 lines
866 B
Ruby
# -*- coding: binary -*-
|
|
require 'rex/post/meterpreter'
|
|
|
|
module Rex
|
|
module Post
|
|
module Meterpreter
|
|
module Ui
|
|
|
|
###
|
|
#
|
|
# Lanattacks extension.
|
|
#
|
|
###
|
|
class Console::CommandDispatcher::Lanattacks
|
|
|
|
require 'rex/post/meterpreter/ui/console/command_dispatcher/lanattacks/dhcp'
|
|
require 'rex/post/meterpreter/ui/console/command_dispatcher/lanattacks/tftp'
|
|
|
|
Klass = Console::CommandDispatcher::Lanattacks
|
|
|
|
Dispatchers =
|
|
[
|
|
Klass::Dhcp,
|
|
Klass::Tftp
|
|
]
|
|
|
|
include Console::CommandDispatcher
|
|
|
|
#
|
|
# Initializes an instance of the lanattacks 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
|
|
"Lanattacks extension"
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|