O'Reilly logo

BackTrack 5 Cookbook by David De Smet, Willie Pritchett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Metasploitable MySQL

In this recipe, we will explore how to use Metasploit to attack a MySQL database server using the MySQL Scanner module. As the database of choice for many website platforms including Drupal and WordPress, many websites are currently using the MySQL database server. This makes it an easy target for the Metasploitable MySQL attack!

Getting ready

The following requirements need to be fulfilled:

  • A connection to the internal network is required to complete this recipe
  • Metasploitable running in our hacking lab
  • Word list to perform a dictionary attack

How to do it...

Let's begin our MySQL attack by opening a terminal window:

  1. Open a terminal window.
  2. Launch the MSFCONSOLE:
    msfconsole
    
  3. Search for all available MySQL modules:
    search mysql
    
  4. Use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required