Sha256: c7052fdd216ba5a46564013f8a88ba2ad92c1c2d919230aade382a1e8875cbad

Contents?: true

Size: 1 KB

Versions: 15

Compression:

Stored size: 1 KB

Contents

# -*- coding: binary -*-

require 'rex/post/meterpreter/extensions/lanattacks/tlv'
require 'rex/post/meterpreter/extensions/lanattacks/dhcp/dhcp'
require 'rex/post/meterpreter/extensions/lanattacks/tftp/tftp'

module Rex
module Post
module Meterpreter
module Extensions
module Lanattacks

###
#
# This meterpreter extension can currently run DHCP and TFTP servers
#
###
class Lanattacks < Extension

  #
  # Initializes an instance of the lanattacks extension.
  #
  def initialize(client)
    super(client, 'lanattacks')

    # Alias the following things on the client object so that they
    # can be directly referenced
    client.register_extension_aliases(
      [
        {
          'name' => 'lanattacks',
          'ext'  => ObjectAliases.new(
            {
              'dhcp' => Rex::Post::Meterpreter::Extensions::Lanattacks::Dhcp::Dhcp.new(client),
              'tftp' => Rex::Post::Meterpreter::Extensions::Lanattacks::Tftp::Tftp.new(client)
            }),
        }
      ])
  end

end

end; end; end; end; end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
rex-2.0.12 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
rex-2.0.11 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
rex-2.0.10 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
rex-2.0.9 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
rex-2.0.8 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
rex-2.0.7 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
rex-2.0.5 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
rex-2.0.4 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
dstruct-0.0.1 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
rex-2.0.3 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
librex-0.0.999 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
rex-2.0.2 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
librex-0.0.71 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb
librex-0.0.70 lib/rex/post/meterpreter/extensions/lanattacks/lanattacks.rb