Using Metasploit

James Lee edited this page Feb 24, 2017 · 4 revisions

Metasploit Wiki Pages

Clone this wiki locally

Start here:

Database troubleshooting

If the database is not connecting automatically, first make sure it is running:

  • Linux:$ netstat -lnt | grep 7337 where 7337 is whatever port you told it to listen on during installation
  • Windows: look for a postgres.exe process in task manager.

If postgres is not running, try starting it manually:

  • Linux:$ sudo /etc/init.d/metasploit start or if you didn't choose to install as a service: $ sudo /opt/metasploit*/ start
  • Windows: Start -> Metasploit -> Services -> Start Services

Once postgres is running and listening, go back to msfconsole:

msf > db_connect