Sunday, February 14, 2016

Lab 2 Issue

In Lab 2, Section 2, Step 4
msf> db_nmap 192.168.1.0/24 resulted in the message "Database not connected"
The lab manual suggests running the following commands from a terminal prompt
# service postgresql start
# service metasploit start

I ran the commands A-OK but the database still would not connect within metasploit.
I exited metasploit and restarted it again.
I re-ran msf> db_nmap 192.168.1.0/24
This resulted in the database connecting. All is well.
The manual failed to tell you to exit metasploit and restart it.


2 comments:

  1. Did you try the following steps;
    (once db_nmap 192.168.1.0/24 failed?)
    step 1: root@Hacker:~#service postgresql start
    step 2: root@Hacker:~#service metasploit start

    Then continue restart msfconsole and continue with step 4.

    Good luck.

    ReplyDelete
    Replies
    1. That is exactly what I did. My point was that the lab manual did not mention to restart metasploit. That was the fix. Best Wishes and thank you for your input.

      Delete