Path: blob/master/lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
19516 views
# -*- coding: binary -*-12require 'rex/post/meterpreter/extensions/lanattacks/tlv'3require 'rex/post/meterpreter/extensions/lanattacks/command_ids'4require 'rex/post/meterpreter/extensions/lanattacks/dhcp/dhcp'5require 'rex/post/meterpreter/extensions/lanattacks/tftp/tftp'67module Rex8module Post9module Meterpreter10module Extensions11module Lanattacks1213###14#15# This meterpreter extension can currently run DHCP and TFTP servers16#17###18class Lanattacks < Extension1920def self.extension_id21EXTENSION_ID_LANATTACKS22end2324#25# Initializes an instance of the lanattacks extension.26#27def initialize(client)28super(client, 'lanattacks')2930# Alias the following things on the client object so that they31# can be directly referenced32client.register_extension_aliases(33[34{35'name' => 'lanattacks',36'ext' => ObjectAliases.new(37{38'dhcp' => Rex::Post::Meterpreter::Extensions::Lanattacks::Dhcp::Dhcp.new(client),39'tftp' => Rex::Post::Meterpreter::Extensions::Lanattacks::Tftp::Tftp.new(client)40}),41}42])43end4445end4647end; end; end; end; end484950