UDP Wake-On-Lan (WOL) - Metasploit
This page contains detailed information about how to use the auxiliary/admin/misc/wol metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: UDP Wake-On-Lan (WOL)
Module: auxiliary/admin/misc/wol
Source code: modules/auxiliary/admin/misc/wol.rb
Disclosure date: -
Last modification time: 2019-03-05 04:43:37 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): -
List of CVEs: -
This module will turn on a remote machine with a network card that supports wake-on-lan (or MagicPacket). In order to use this, you must know the machine's MAC address in advance. The current default MAC address is just an example of how your input should look like. The password field is optional. If present, it should be in this hex format: 001122334455, which is translated to "0x001122334455" in binary. Note that this should be either 4 or 6 bytes long.
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/admin/misc/wol
msf auxiliary(wol) > show targets
... a list of targets ...
msf auxiliary(wol) > set TARGET target-id
msf auxiliary(wol) > show options
... show and set options ...
msf auxiliary(wol) > exploit
Go back to menu.
Msfconsole Usage
Here is how the admin/misc/wol auxiliary module looks in the msfconsole:
msf6 > use auxiliary/admin/misc/wol
msf6 auxiliary(admin/misc/wol) > show info
Name: UDP Wake-On-Lan (WOL)
Module: auxiliary/admin/misc/wol
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
sinn3r <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
IPV6 false no Use IPv6 broadcast
MAC 00:90:27:85:cf:01 yes Specify a MAC address
PASSWORD no Specify a four or six-byte password
Description:
This module will turn on a remote machine with a network card that
supports wake-on-lan (or MagicPacket). In order to use this, you
must know the machine's MAC address in advance. The current default
MAC address is just an example of how your input should look like.
The password field is optional. If present, it should be in this hex
format: 001122334455, which is translated to "0x001122334455" in
binary. Note that this should be either 4 or 6 bytes long.
Module Options
This is a complete list of options available in the admin/misc/wol auxiliary module:
msf6 auxiliary(admin/misc/wol) > show options
Module options (auxiliary/admin/misc/wol):
Name Current Setting Required Description
---- --------------- -------- -----------
IPV6 false no Use IPv6 broadcast
MAC 00:90:27:85:cf:01 yes Specify a MAC address
PASSWORD no Specify a four or six-byte password
Advanced Options
Here is a complete list of advanced options supported by the admin/misc/wol auxiliary module:
msf6 auxiliary(admin/misc/wol) > show advanced
Module advanced options (auxiliary/admin/misc/wol):
Name Current Setting Required Description
---- --------------- -------- -----------
CHOST no The local client address
CPORT no The local client port
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 admin/misc/wol module can do:
msf6 auxiliary(admin/misc/wol) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the admin/misc/wol auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(admin/misc/wol) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
Invalid MAC address format
Here is a relevant code snippet related to the "Invalid MAC address format" error message:
37: # Convert the MAC option to binary format
38: #
39: def get_mac_addr
40: mac = datastore['MAC']
41: if mac !~ /^([0-9a-zA-Z]{2}\:){5}[0-9a-zA-Z]{2}$/
42: print_error("Invalid MAC address format")
43: return nil
44: end
45:
46: bin_mac = ''
47: mac.split(':').each do |group|
Bad password format or length: <DATASET.INSPECT>
Here is a relevant code snippet related to the "Bad password format or length: <DATASET.INSPECT>" error message:
66: pass << group.to_i
67: end
68:
69: return pass
70: else
71: print_error("Bad password format or length: #{dataset.inspect}")
72: end
73:
74: nil
75: end
76:
Go back to menu.
Related Pull Requests
- #11544 Merged Pull Request: add deregister_tcp/udp_options
- #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
- #3235 Merged Pull Request: First little bit at Bug 8498
- #2525 Merged Pull Request: Change module boilerplate
- #347 Merged Pull Request: Add wake-on-lan module
Go back to menu.
See Also
Check also the following modules related to this module:
- auxiliary/admin/misc/sercomm_dump_config
- auxiliary/dos/misc/dopewars
- auxiliary/dos/misc/ibm_sametime_webplayer_dos
- auxiliary/dos/misc/ibm_tsm_dos
- auxiliary/dos/misc/memcached
- auxiliary/scanner/misc/cctv_dvr_login
- auxiliary/scanner/misc/cisco_smart_install
- auxiliary/scanner/misc/clamav_control
- auxiliary/scanner/misc/dahua_dvr_auth_bypass
- auxiliary/scanner/misc/dvr_config_disclosure
- auxiliary/scanner/misc/easycafe_server_fileaccess
- auxiliary/scanner/misc/freeswitch_event_socket_login
- auxiliary/scanner/misc/ibm_mq_channel_brute
- auxiliary/scanner/misc/ibm_mq_enum
- auxiliary/scanner/misc/ibm_mq_login
- auxiliary/scanner/misc/ib_service_mgr_info
- auxiliary/scanner/misc/java_jmx_server
- auxiliary/scanner/misc/java_rmi_server
- auxiliary/scanner/misc/oki_scanner
- auxiliary/scanner/misc/poisonivy_control_scanner
- auxiliary/scanner/misc/raysharp_dvr_passwords
- auxiliary/scanner/misc/rosewill_rxs3211_passwords
- auxiliary/scanner/misc/sercomm_backdoor_scanner
- auxiliary/scanner/misc/sunrpc_portmapper
- auxiliary/scanner/misc/zenworks_preboot_fileaccess
Authors
- sinn3r
Version
This page has been produced using Metasploit Framework version 6.2.7-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.