mDNS Query - Metasploit


This page contains detailed information about how to use the auxiliary/scanner/mdns/query metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: mDNS Query
Module: auxiliary/scanner/mdns/query
Source code: modules/auxiliary/scanner/mdns/query.rb
Disclosure date: -
Last modification time: 2017-07-24 06:26:21 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 5353
List of CVEs: -

This module sends mDNS queries, which are really just normal UDP DNS queries done (usually) over multicast on a different port, 5353.

Module Ranking and Traits


Module Ranking:

  • normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.

Basic Usage


This module is a scanner module, and is capable of testing against multiple hosts.

msf > use auxiliary/scanner/mdns/query
msf auxiliary(query) > show options
    ... show and set options ...
msf auxiliary(query) > set RHOSTS ip-range
msf auxiliary(query) > exploit

Other examples of setting the RHOSTS option:

Example 1:

msf auxiliary(query) > set RHOSTS 192.168.1.3-192.168.1.200 

Example 2:

msf auxiliary(query) > set RHOSTS 192.168.1.1/24

Example 3:

msf auxiliary(query) > set RHOSTS file:/tmp/ip_list.txt

Go back to menu.

Msfconsole Usage


Here is how the scanner/mdns/query auxiliary module looks in the msfconsole:

msf6 > use auxiliary/scanner/mdns/query

msf6 auxiliary(scanner/mdns/query) > show info

       Name: mDNS Query
     Module: auxiliary/scanner/mdns/query
    License: Metasploit Framework License (BSD)
       Rank: Normal

Provided by:
  Jon Hart <[email protected]>

Check supported:
  No

Basic options:
  Name       Current Setting               Required  Description
  ----       ---------------               --------  -----------
  BATCHSIZE  256                           yes       The number of hosts to probe in each set
  CLASS      IN                            yes       The query class (name, # or CLASS#)
  NAME       _services._dns-sd._udp.local  yes       The name to query
  RHOSTS     224.0.0.251                   yes       The multicast address or CIDR range of targets to query
  RPORT      5353                          yes       The target port (UDP)
  THREADS    10                            yes       The number of concurrent threads
  TYPE       PTR                           yes       The query type (name, # or TYPE#)

Description:
  This module sends mDNS queries, which are really just normal UDP DNS 
  queries done (usually) over multicast on a different port, 5353.

Module Options


This is a complete list of options available in the scanner/mdns/query auxiliary module:

msf6 auxiliary(scanner/mdns/query) > show options

Module options (auxiliary/scanner/mdns/query):

   Name       Current Setting               Required  Description
   ----       ---------------               --------  -----------
   BATCHSIZE  256                           yes       The number of hosts to probe in each set
   CLASS      IN                            yes       The query class (name, # or CLASS#)
   NAME       _services._dns-sd._udp.local  yes       The name to query
   RHOSTS     224.0.0.251                   yes       The multicast address or CIDR range of targets to query
   RPORT      5353                          yes       The target port (UDP)
   THREADS    10                            yes       The number of concurrent threads
   TYPE       PTR                           yes       The query type (name, # or TYPE#)

Advanced Options


Here is a complete list of advanced options supported by the scanner/mdns/query auxiliary module:

msf6 auxiliary(scanner/mdns/query) > show advanced

Module advanced options (auxiliary/scanner/mdns/query):

   Name                   Current Setting  Required  Description
   ----                   ---------------  --------  -----------
   CHOST                                   no        The local client address
   CPORT                                   no        The local client port
   ScannerMaxResends      10               yes       The maximum times to resend a packet when out of buffers
   ScannerRecvInterval    30               yes       The maximum numbers of sends before entering the processing loop
   ScannerRecvQueueLimit  100              yes       The maximum queue size before breaking out of the processing loop
   ScannerRecvWindow      15               yes       The number of seconds to wait post-scan to catch leftover replies
   ShowProgress           true             yes       Display progress messages during a scan
   ShowProgressPercent    10               yes       The interval in percent that progress should be shown
   VERBOSE                false            no        Enable detailed status messages
   WORKSPACE                               no        Specify the workspace for this module

Auxiliary Actions


This is a list of all auxiliary actions that the scanner/mdns/query module can do:

msf6 auxiliary(scanner/mdns/query) > show actions

Auxiliary actions:

   Name  Description
   ----  -----------

Evasion Options


Here is the full list of possible evasion options supported by the scanner/mdns/query auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 auxiliary(scanner/mdns/query) > show evasion

Module evasion options:

   Name  Current Setting  Required  Description
   ----  ---------------  --------  -----------

Go back to menu.


Go back to menu.

See Also


Check also the following modules related to this module:

Authors


  • Jon Hart <jon_hart[at]rapid7.com>

Version


This page has been produced using Metasploit Framework version 6.2.9-dev. For more modules, visit the Metasploit Module Library.

Go back to menu.