PXE Boot Exploit Server - Metasploit


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

Module Overview


Name: PXE Boot Exploit Server
Module: auxiliary/server/pxeexploit
Source code: modules/auxiliary/server/pxeexploit.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 PXE server, running a DHCP and TFTP server. The default configuration loads a linux kernel and initrd into memory that reads the hard drive; placing a payload to install metsvc, disable the firewall, and add a new user metasploit on any Windows partition seen, and add a uid 0 user with username and password metasploit to any linux partition seen. The windows user will have the password p@SSw0rd!123456 (in case of complexity requirements) and will be added to the administrators group. Note: the displayed IP address of a target is the address this DHCP server handed out, not the "normal" IP address the host uses.

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/pxeexploit
msf auxiliary(pxeexploit) > show targets
    ... a list of targets ...
msf auxiliary(pxeexploit) > set TARGET target-id
msf auxiliary(pxeexploit) > show options
    ... show and set options ...
msf auxiliary(pxeexploit) > exploit

Go back to menu.

Msfconsole Usage


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

msf6 > use auxiliary/server/pxeexploit

msf6 auxiliary(server/pxeexploit) > show info

       Name: PXE Boot Exploit Server
     Module: auxiliary/server/pxeexploit
    License: Metasploit Framework License (BSD)
       Rank: Normal

Provided by:
  scriptjunkie

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

Check supported:
  No

Description:
  This module provides a PXE server, running a DHCP and TFTP server. 
  The default configuration loads a linux kernel and initrd into 
  memory that reads the hard drive; placing a payload to install 
  metsvc, disable the firewall, and add a new user metasploit on any 
  Windows partition seen, and add a uid 0 user with username and 
  password metasploit to any linux partition seen. The windows user 
  will have the password p@SSw0rd!123456 (in case of complexity 
  requirements) and will be added to the administrators group. Note: 
  the displayed IP address of a target is the address this DHCP server 
  handed out, not the "normal" IP address the host uses.

Module Options


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

msf6 auxiliary(server/pxeexploit) > show options

Module options (auxiliary/server/pxeexploit):

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

Auxiliary action:

   Name     Description
   ----     -----------
   Service  Run PXE server

Advanced Options


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

msf6 auxiliary(server/pxeexploit) > show advanced

Module advanced options (auxiliary/server/pxeexploit):

   Name         Current Setting                                                       Required  Description
   ----         ---------------                                                       --------  -----------
   DHCPIPEND                                                                          no        The last IP to give out
   DHCPIPSTART                                                                        no        The first IP to give out
   NETMASK      255.255.255.0                                                         no        The netmask of the local subnet
   SRVHOST                                                                            no        The IP of the DHCP server
   TFTPROOT     /opt/metasploit-framework/embedded/framework/data/exploits/pxexploit  no        The TFTP root directory to serve files from
   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/pxeexploit module can do:

msf6 auxiliary(server/pxeexploit) > show actions

Auxiliary actions:

   Name     Description
   ----     -----------
   Service  Run PXE server

Evasion Options


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

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


  • scriptjunkie

Version


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

Go back to menu.