Jump to content

Metasploit Issue


d0pe_int3l

Recommended Posts

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.

Link to comment
Share on other sites

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 by d0pe_int3l
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...