db_autopwn was deprecated from Metasploit framework. In this tutorial we will get db_autopwn back to life. We need a Linux box with Metasploit installed. We are using Parrot Security OS with Metasploit 4.13. There are many arguments in favor and against db_autopwn but we are not going into that. I think for an authorized pen-test db_autopwn gives a quick overview, but opinions may differ.

To start we need to download db_autopwn.rb from here and save the file. Copy this file to plugins directory of metasploit, for me it is

$ /usr/share/metasploit-framework/plugins

Now open the terminal and follow the flowing commands

$ sudo service postgresql start
$ sudo msfdb init # it has to be done only once
$ sudo msfconsole