PDA

View Full Version : Metasploit starting issue



HDD2
2013-04-20, 10:27
Dont really know if this problem really hurts Metasploit's performance but i figured i would check. I added a custom exploit to /usr/share/metasploit-framework/modules/exploits/linux/telnet right? afterwards i entered msfconsole and got this error


root@myusername:~# msfconsole
[-] Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
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 5432?


THEN metasploit loads, everytime. I can use metasploit after it pitches a fit for a few lines. I removed the exploit from the directory stated above and i still have the error. However this problem does 'seem' as though it could cause some headaches in the future. Any idea why its showing?

linccracker
2013-04-20, 15:03
Are you forgetting to run
service postgresql start
service metasploit start
in console in console before running
msfconsole

HDD2
2013-04-20, 21:54
hrmm, it never threw those errors beforehand. I do appreciate it though! you da man :)

Doel
2013-08-30, 12:29
Thanks linccracker, work for me :)

Lordx19
2013-08-31, 11:54
you can also use
update-rc.d postgresql enable
update-rd.d metasploit enable

this will start the services at start up so you don't have to type those commands every time to connect.

Mrquiety
2013-09-01, 10:50
Follow this Go to application → System Service → Metasploit → community/pro start
Then start metasploit

_PeLUsA_
2013-10-13, 17:46
Works for me!!! Thanks!!

tolerious
2015-04-27, 09:15
Works for me, many thanks.:D