CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/core/auxiliary/llmnr.rb
Views: 1904
1
# -*- coding: binary -*-
2
3
module Msf
4
# This module provides methods for working with LLMNR
5
module Auxiliary::LLMNR
6
include Auxiliary::MDNS
7
8
# Initializes an instance of an auxiliary module that uses LLMNR
9
def initialize(info = {})
10
super
11
register_options(
12
[
13
OptAddressRange.new('RHOSTS', [true, 'The multicast address or CIDR range of targets to query', '224.0.0.252']),
14
Opt::RPORT(5355),
15
# TODO: allow more than one
16
OptString.new('NAME', [true, 'The name to query', 'localhost']),
17
OptString.new('TYPE', [true, 'The query type (name, # or TYPE#)', 'A'])
18
],
19
self.class
20
)
21
end
22
end
23
end
24
25