DHCP Server - Metasploit


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

Module Overview


Name: DHCP Server
Module: auxiliary/server/dhcp
Source code: modules/auxiliary/server/dhcp.rb
Disclosure date: -
Last modification time: 2021-01-28 10:35:25 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): -
List of CVEs: -

This module provides a DHCP service

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


msf > use auxiliary/server/dhcp
msf auxiliary(dhcp) > show targets
    ... a list of targets ...
msf auxiliary(dhcp) > set TARGET target-id
msf auxiliary(dhcp) > show options
    ... show and set options ...
msf auxiliary(dhcp) > exploit

Required Options


  • SRVHOST: The IP of the DHCP server

  • NETMASK: The netmask of the local subnet

Go back to menu.

Msfconsole Usage


Here is how the server/dhcp auxiliary module looks in the msfconsole:

msf6 > use auxiliary/server/dhcp

msf6 auxiliary(server/dhcp) > show info

       Name: DHCP Server
     Module: auxiliary/server/dhcp
    License: Metasploit Framework License (BSD)
       Rank: Normal

Provided by:
  scriptjunkie
  apconole <[email protected]>

Available actions:
  Name     Description
  ----     -----------
  Service  Run DHCP server

Check supported:
  No

Basic options:
  Name         Current Setting  Required  Description
  ----         ---------------  --------  -----------
  BROADCAST                     no        The broadcast address to send to
  DHCPIPEND                     no        The last IP to give out
  DHCPIPSTART                   no        The first IP to give out
  DNSSERVER                     no        The DNS server IP address
  DOMAINNAME                    no        The optional domain name to assign
  FILENAME                      no        The optional filename of a tftp boot server
  HOSTNAME                      no        The optional hostname to assign
  HOSTSTART                     no        The optional host integer counter
  NETMASK                       yes       The netmask of the local subnet
  ROUTER                        no        The router IP address
  SRVHOST                       yes       The IP of the DHCP server

Description:
  This module provides a DHCP service

Module Options


This is a complete list of options available in the server/dhcp auxiliary module:

msf6 auxiliary(server/dhcp) > show options

Module options (auxiliary/server/dhcp):

   Name         Current Setting  Required  Description
   ----         ---------------  --------  -----------
   BROADCAST                     no        The broadcast address to send to
   DHCPIPEND                     no        The last IP to give out
   DHCPIPSTART                   no        The first IP to give out
   DNSSERVER                     no        The DNS server IP address
   DOMAINNAME                    no        The optional domain name to assign
   FILENAME                      no        The optional filename of a tftp boot server
   HOSTNAME                      no        The optional hostname to assign
   HOSTSTART                     no        The optional host integer counter
   NETMASK                       yes       The netmask of the local subnet
   ROUTER                        no        The router IP address
   SRVHOST                       yes       The IP of the DHCP server

Auxiliary action:

   Name     Description
   ----     -----------
   Service  Run DHCP server

Advanced Options


Here is a complete list of advanced options supported by the server/dhcp auxiliary module:

msf6 auxiliary(server/dhcp) > show advanced

Module advanced options (auxiliary/server/dhcp):

   Name       Current Setting  Required  Description
   ----       ---------------  --------  -----------
   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 server/dhcp module can do:

msf6 auxiliary(server/dhcp) > show actions

Auxiliary actions:

   Name     Description
   ----     -----------
   Service  Run DHCP server

Evasion Options


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

msf6 auxiliary(server/dhcp) > 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


Version


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

Go back to menu.