From ec641a649e0497cb4dd9feb311e3e484b6027554 Mon Sep 17 00:00:00 2001 From: jlee-r7 Date: Tue, 15 May 2012 11:43:20 -0700 Subject: [PATCH] Updated Using Metasploit (markdown) --- Using-Metasploit.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Using-Metasploit.md b/Using-Metasploit.md index 803c7385e2..7b0c647afe 100644 --- a/Using-Metasploit.md +++ b/Using-Metasploit.md @@ -3,4 +3,19 @@ Start here: * http://www.offensive-security.com/metasploit-unleashed/Main_Page * https://dev.metasploit.com/redmine/projects/framework/wiki * https://community.rapid7.com/community/metasploit/ -* [[Evading Anti-Virus]] \ No newline at end of file +* [[Evading Anti-Virus]] + +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*/ctlscript.sh start` +* Windows: Start -> Metasploit -> Services -> Start Services + +Once postgres is running and listening, go back to msfconsole: +```` +msf > db_connect +````