d0pe_int3l Posted May 30, 2012 Share Posted May 30, 2012 When I installed metasploit initially, i was prompted with this: Installation folder Please, choose a folder to install Metasploit Select a folder [/opt/metasploit-4.3.0]: /~/ <---- first mistake, (imo) ---------------------------------------------------------------------------- Install as a service You can optionally register Metasploit as a service. This way it will automatically be started every time the machine is started. Install Metasploit as a service? [Y/n]: n <------ 2nd mistake, which leads me to my issues! ---------------------------------------------------------------------------- Metasploit Service Please enter the port that the Metasploit service will use. SSL Port [3790]: what is the port, what is it asking? (i went with 3790) Ok so it all went well, i was able to launch msfconsole just fine until I restarted my system. Now when I launch msfconsole I see this: [-] Failed to connect to the database: could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 7337? followed by a bunch of jargon relating to postresql, can some one assist me in making it launch the database on start up *see 2nd mistake above* Thanks in advance. Quote Link to comment Share on other sites More sharing options...
bobbyb1980 Posted May 30, 2012 Share Posted May 30, 2012 You need to install and/or configure postgres. Quote Link to comment Share on other sites More sharing options...
d0pe_int3l Posted May 30, 2012 Author Share Posted May 30, 2012 (edited) You need to install and/or configure postgres. It was installed with the whole package. if you see above, i chose no when it said do i wish to install metasploit as a service on start up. what i'm trying to figure out is how to make it do so, so i wont get those errors. *edit* Ok I solved my own issue. Here is how $ echo 'exec /~/postgresql/scripts/ctl.sh "$@"' >/etc/init.d/framework-postgres chmod +x /etc/init.d/framework-postgres /etc/init.d/framework-postgres start update-rc.d framework-postgres defaults NOW my new issue is when I attempt to launch armitage i get this error: No protocol specified No protocol specified Warning: Uncaught exception: java.lang.InternalError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. at gui.sl:364 Edited May 30, 2012 by d0pe_int3l Quote Link to comment Share on other sites More sharing options...
bobbyb1980 Posted May 30, 2012 Share Posted May 30, 2012 Have you configured it? Metasploit needs to know a l/p to be able to connect to the db. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.