Rapid7 Vulnerability & Exploit Database

MYSQL Directory Write Test

Back to Search

MYSQL Directory Write Test



Enumerate writeable directories using the MySQL SELECT INTO DUMPFILE feature, for more information see the URL in the references. ***Note: For every writable directory found, a file with the specified FILE_NAME containing the text test will be written to the directory.***


  • AverageSecurityGuy <stephen@averagesecurityguy.info>


Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/scanner/mysql/mysql_writable_dirs
msf auxiliary(mysql_writable_dirs) > show actions
msf auxiliary(mysql_writable_dirs) > set ACTION < action-name >
msf auxiliary(mysql_writable_dirs) > show options
    ...show and set options...
msf auxiliary(mysql_writable_dirs) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security