MYSQL Schema Dump - Metasploit
This page contains detailed information about how to use the auxiliary/scanner/mysql/mysql_schemadump metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: MYSQL Schema Dump
Module: auxiliary/scanner/mysql/mysql_schemadump
Source code: modules/auxiliary/scanner/mysql/mysql_schemadump.rb
Disclosure date: -
Last modification time: 2017-07-24 06:26:21 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 3306
List of CVEs: -
This module extracts the schema information from a MySQL DB server.
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
This module is a scanner module, and is capable of testing against multiple hosts.
msf > use auxiliary/scanner/mysql/mysql_schemadump
msf auxiliary(mysql_schemadump) > show options
... show and set options ...
msf auxiliary(mysql_schemadump) > set RHOSTS ip-range
msf auxiliary(mysql_schemadump) > exploit
Other examples of setting the RHOSTS option:
Example 1:
msf auxiliary(mysql_schemadump) > set RHOSTS 192.168.1.3-192.168.1.200
Example 2:
msf auxiliary(mysql_schemadump) > set RHOSTS 192.168.1.1/24
Example 3:
msf auxiliary(mysql_schemadump) > set RHOSTS file:/tmp/ip_list.txt
Required Options
- RHOSTS: The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
Go back to menu.
Msfconsole Usage
Here is how the scanner/mysql/mysql_schemadump auxiliary module looks in the msfconsole:
msf6 > use auxiliary/scanner/mysql/mysql_schemadump
msf6 auxiliary(scanner/mysql/mysql_schemadump) > show info
Name: MYSQL Schema Dump
Module: auxiliary/scanner/mysql/mysql_schemadump
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
theLightCosine <[email protected]>
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
DISPLAY_RESULTS true yes Display the Results to the Screen
PASSWORD no The password for the specified username
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 3306 yes The target port (TCP)
THREADS 1 yes The number of concurrent threads (max one per host)
USERNAME no The username to authenticate as
Description:
This module extracts the schema information from a MySQL DB server.
Module Options
This is a complete list of options available in the scanner/mysql/mysql_schemadump auxiliary module:
msf6 auxiliary(scanner/mysql/mysql_schemadump) > show options
Module options (auxiliary/scanner/mysql/mysql_schemadump):
Name Current Setting Required Description
---- --------------- -------- -----------
DISPLAY_RESULTS true yes Display the Results to the Screen
PASSWORD no The password for the specified username
RHOSTS yes The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
RPORT 3306 yes The target port (TCP)
THREADS 1 yes The number of concurrent threads (max one per host)
USERNAME no The username to authenticate as
Advanced Options
Here is a complete list of advanced options supported by the scanner/mysql/mysql_schemadump auxiliary module:
msf6 auxiliary(scanner/mysql/mysql_schemadump) > show advanced
Module advanced options (auxiliary/scanner/mysql/mysql_schemadump):
Name Current Setting Required Description
---- --------------- -------- -----------
CHOST no The local client address
CPORT no The local client port
ConnectTimeout 10 yes Maximum number of seconds to establish a TCP connection
Proxies no A proxy chain of format type:host:port[,type:host:port][...]
SSL false no Negotiate SSL/TLS for outgoing connections
SSLCipher no String for SSL cipher - "DHE-RSA-AES256-SHA" or "ADH"
SSLVerifyMode PEER no SSL verification method (Accepted: CLIENT_ONCE, FAIL_IF_NO_PEER_CERT, NONE, PEER)
SSLVersion Auto yes Specify the version of SSL/TLS to be used (Auto, TLS and SSL23 are auto-negotiate) (Accepted: Auto, TLS, SSL23, SSL3, TLS1, TLS1.1, TLS1.2)
ShowProgress true yes Display progress messages during a scan
ShowProgressPercent 10 yes The interval in percent that progress should be shown
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 scanner/mysql/mysql_schemadump module can do:
msf6 auxiliary(scanner/mysql/mysql_schemadump) > show actions
Auxiliary actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the scanner/mysql/mysql_schemadump auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(scanner/mysql/mysql_schemadump) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
TCP::max_send_size 0 no Maxiumum tcp segment size. (0 = disable)
TCP::send_delay 0 no Delays inserted before every send. (0 = disable)
Go back to menu.
Related Pull Requests
- #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
- #5059 Merged Pull Request: Yard doc corrections
- #2525 Merged Pull Request: Change module boilerplate
- #1260 Merged Pull Request: Mysql login exceptions
- #1228 Merged Pull Request: MSFTIDY cleanup #1 - auxiliary
Go back to menu.
See Also
Check also the following modules related to this module:
- auxiliary/scanner/mysql/mysql_authbypass_hashdump
- auxiliary/scanner/mysql/mysql_file_enum
- auxiliary/scanner/mysql/mysql_hashdump
- auxiliary/scanner/mysql/mysql_login
- auxiliary/scanner/mysql/mysql_version
- auxiliary/scanner/mysql/mysql_writable_dirs
- auxiliary/admin/mysql/mysql_enum
- auxiliary/admin/mysql/mysql_sql
- exploit/linux/mysql/mysql_yassl_getname
- exploit/linux/mysql/mysql_yassl_hello
- exploit/multi/mysql/mysql_udf_payload
- exploit/windows/mysql/mysql_mof
- exploit/windows/mysql/mysql_start_up
- exploit/windows/mysql/mysql_yassl_hello
- exploit/windows/mysql/scrutinizer_upload_exec
- auxiliary/server/capture/mysql
- auxiliary/scanner/mssql/mssql_schemadump
- auxiliary/scanner/postgres/postgres_schemadump
Authors
- theLightCosine
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.