Results 1 to 2 of 2

Thread: Metasploit-framework wont start after dist-upgrade?

  1. #1
    Join Date
    2015-Sep
    Posts
    16

    Metasploit-framework wont start after dist-upgrade?

    I ran a dist-upgrade and metasploit has stopped working?

    Any help would be great

    Here are the errors I am receiving......




    root@kali:~# /etc/init.d/postgresql start
    [ ok ] Starting postgresql (via systemctl): postgresql.service.


    root@kali:~# msfdb init
    A database appears to be already configured, skipping initialization


    root@kali:~# service metasploit start
    Failed to start metasploit.service: Unit metasploit.service failed to load: No such file or directory.


    root@kali:~# 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?


    ######## #
    ################# #
    ###################### #
    ######################### #
    ############################
    ##############################
    ###############################
    ###############################
    ##############################
    # ######## #
    ## ### #### ##
    ### ###
    #### ###
    #### ########## ####
    ####################### ####
    #################### ####
    ################## ####
    ############ ##
    ######## ###
    ######### #####
    ############ ######
    ######## #########
    ##### ########
    ### #########
    ###### ############
    #######################
    # # ### # # ##
    ########################
    ## ## ## ##
    http://metasploit.pro


    Easy phishing: Set up email templates, landing pages and listeners
    in Metasploit Pro -- learn more on http://rapid7.com/metasploit

    =[ metasploit v4.11.4-2015102101 ]
    + -- --=[ 1496 exploits - 862 auxiliary - 251 post ]
    + -- --=[ 432 payloads - 37 encoders - 8 nops ]
    + -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]




    msf > db_status[*] postgresql selected, no connection
    msf >

  2. #2
    Join Date
    2015-Oct
    Location
    /dev/random
    Posts
    22
    On Kali 2 to run Metasploit you just click the Metasploit icon on the dash-to-dock on Gnome 3, the developers have
    wrote a shell command so you dont have to start the services manually.

    First thing I'd check is your ports, what I see when metaploit is running is:

    root@kali:~# netstat -tpe
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
    tcp6 0 0 localhostostgresql localhost:57854 ESTABLISHED postgres 33853 3219/postgres: msf
    tcp6 0 0 localhost:57852 localhostostgresql ESTABLISHED root 33827 3163/ruby
    tcp6 0 0 localhostostgresql localhost:57852 ESTABLISHED postgres 32954 3197/postgres: msf
    tcp6 0 0 localhost:57853 localhostostgresql ESTABLISHED root 32958 3163/ruby
    tcp6 0 0 localhostostgresql localhost:57853 ESTABLISHED postgres 32959 3200/postgres: msf
    tcp6 0 0 localhost:57854 localhostostgresql ESTABLISHED root 33852 3163/ruby

    You are gettting an error about port 5432, so open a terminal and check what ports are open:

    netstat -tpe


    Try and start metsaploit using this command:

    sh -c "service postgresql start && msfdb init & msfconsole;${SHELL:-bash}

    That is the command used on the Gnome menu and the dock.
    ist-upgrades often do not go smooth and takes 3x longer than a fresh install
    as the dist-upgrade has to check dependencies of all installed packages. If
    a conflick occurs it will attempt to upgrade the most important packages first,
    as stated in the apt-get manual.

Similar Threads

  1. apt-get upgrade stuck in loop downloading metasploit-framework
    By digitallachance in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2017-07-14, 08:37
  2. Can't Update Metasploit Framework
    By Vandercast in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2017-05-26, 17:53
  3. Kali Rolling - gdm fails to start after dist-upgrade
    By wtf in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-09-25, 07:43
  4. Issue with the upgrade of metasploit-framework
    By filippo in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2016-01-09, 10:37
  5. Replies: 3
    Last Post: 2015-03-31, 14:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •