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.
Related Pull Requests
- #14696 Merged Pull Request: Zeitwerk rex folder
- #13443 Merged Pull Request: Add descriptions to auxiliary modules Actions
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #4750 Merged Pull Request: Fix final datastore modification warnings
Go back to menu.
See Also
Check also the following modules related to this module:
- exploit/windows/local/pxeexploit
- post/windows/manage/pxeexploit
- auxiliary/server/android_browsable_msf_launch
- auxiliary/server/android_mercury_parseuri
- auxiliary/server/browser_autopwn
- auxiliary/server/browser_autopwn2
- auxiliary/server/dhclient_bash_env
- auxiliary/server/dhcp
- auxiliary/server/fakedns
- auxiliary/server/ftp
- auxiliary/server/http_ntlmrelay
- auxiliary/server/icmp_exfil
- auxiliary/server/jsse_skiptls_mitm_proxy
- auxiliary/server/ldap
- auxiliary/server/local_hwbridge
- auxiliary/server/ms15_134_mcl_leak
- auxiliary/server/netbios_spoof_nat
- auxiliary/server/openssl_altchainsforgery_mitm_proxy
- auxiliary/server/openssl_heartbeat_client_memory
- auxiliary/server/regsvr32_command_delivery_server
- auxiliary/server/socks_proxy
- auxiliary/server/socks_unc
- auxiliary/server/teamviewer_uri_smb_redirect
- auxiliary/server/tftp
- auxiliary/server/webkit_xslt_dropper
- auxiliary/server/wget_symlink_file_write
- auxiliary/server/wpad
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.