Windows MessageBox x64 - Metasploit
This page contains detailed information about how to use the payload/windows/x64/messagebox metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Windows MessageBox x64
Module: payload/windows/x64/messagebox
Source code: modules/payloads/singles/windows/x64/messagebox.rb
Disclosure date: -
Last modification time: 2018-12-19 18:19:24 +0000
Supported architecture(s): x64
Supported platform(s): Windows
Target service / protocol: -
Target network port(s): -
List of CVEs: -
Spawn a dialog via MessageBox using a customizable title, text & icon
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 payload/windows/x64/messagebox
msf payload(messagebox) > show options
... show and set options ...
msf payload(messagebox) > generate
To learn how to generate payload/windows/x64/messagebox with msfvenom, please read this.
Go back to menu.
Msfconsole Usage
Here is how the windows/x64/messagebox payload looks in the msfconsole:
msf6 > use payload/windows/x64/messagebox
msf6 payload(windows/x64/messagebox) > show info
Name: Windows MessageBox x64
Module: payload/windows/x64/messagebox
Platform: Windows
Arch: x64
Needs Admin: No
Total size: 295
Rank: Normal
Provided by:
pasta <[email protected]>
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
EXITFUNC process yes Exit technique (Accepted: '', seh, thread, process, none)
ICON NO yes Icon type (Accepted: NO, ERROR, INFORMATION, WARNING, QUESTION)
TEXT Hello, from MSF! yes Messagebox Text
TITLE MessageBox yes Messagebox Title
Description:
Spawn a dialog via MessageBox using a customizable title, text &
icon
Module Options
This is a complete list of options available in the windows/x64/messagebox payload:
msf6 payload(windows/x64/messagebox) > show options
Module options (payload/windows/x64/messagebox):
Name Current Setting Required Description
---- --------------- -------- -----------
EXITFUNC process yes Exit technique (Accepted: '', seh, thread, process, none)
ICON NO yes Icon type (Accepted: NO, ERROR, INFORMATION, WARNING, QUESTION)
TEXT Hello, from MSF! yes Messagebox Text
TITLE MessageBox yes Messagebox Title
Advanced Options
Here is a complete list of advanced options supported by the windows/x64/messagebox payload:
msf6 payload(windows/x64/messagebox) > show advanced
Module advanced options (payload/windows/x64/messagebox):
Name Current Setting Required Description
---- --------------- -------- -----------
PrependMigrate false yes Spawns and runs shellcode in new process
PrependMigrateProc no Process to spawn and run shellcode in
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
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.
INFORMATION
Here is a relevant code snippet related to the "INFORMATION" error message:
20: 'License' => GPL_LICENSE,
21: 'Platform' => 'win',
22: 'Arch' => ARCH_X64
23: ))
24:
25: icon_opts = ['NO', 'ERROR', 'INFORMATION', 'WARNING', 'QUESTION']
26: register_options(
27: [
28: OptString.new('TITLE', [true, "Messagebox Title", "MessageBox"]),
29: OptString.new('TEXT', [true, "Messagebox Text", "Hello, from MSF!"]),
30: OptEnum.new('ICON', [true, "Icon type", icon_opts[0], icon_opts])
ERROR
Here is a relevant code snippet related to the "ERROR" error message:
60:
61: def generate
62: style = 0x00
63: case datastore['ICON'].upcase.strip
64: # default = NO
65: when 'ERROR'
66: style = 0x10
67: when 'QUESTION'
68: style = 0x20
69: when 'WARNING'
70: style = 0x30
Go back to menu.
Related Pull Requests
- #11149 Merged Pull Request: Fix PTY leak in Python meterpreter
- #10834 Merged Pull Request: messagebox payload for x64
Go back to menu.
See Also
Check also the following modules related to this module:
Authors
- pasta <jaguinaga[at]infobytesec.com>
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.