metasploit-framework/lib/msf/core/auxiliary/llmnr.rb

25 lines
729 B
Ruby
Raw Normal View History

# -*- coding: binary -*-
require 'msf/core/auxiliary/mdns'
2014-11-03 19:46:38 +00:00
module Msf
# This module provides methods for working with LLMNR
module Auxiliary::LLMNR
include Auxiliary::MDNS
2014-11-03 19:46:38 +00:00
# Initializes an instance of an auxiliary module that uses LLMNR
def initialize(info = {})
super
register_options(
2015-09-02 21:01:12 +00:00
[
OptAddressRange.new('RHOSTS', [true, 'The multicast address or CIDR range of targets to query', '224.0.0.252']),
Opt::RPORT(5355),
# TODO: allow more than one
OptString.new('NAME', [true, 'The name to query', 'localhost']),
OptString.new('TYPE', [true, 'The query type (name, # or TYPE#)', 'A'])
],
self.class
)
2014-11-03 19:46:38 +00:00
end
end
end