!ntro MSF

To import #nmap scans to MSF:

  1. Start postgreSQL database service:service postgresql start
  2. Old versions of Metasploit requires us to initialize the database: msfdb init
  3. Start MSF: msfconsole
  4. To check if we're connected to the postgreSQL database use this command: db_status
  5. It's best practice to create a new workspace for your scans for each pentest you do.
  1. Now we will import our scan to a workspace with this command: db_import /scans/win_server.xml # We can use taps to auto complete.
  1. Use setg RHOSTS <target_ip> to save time instead to having to enter the target IP in every module we use.

MSF Commands:


To Import MSF Plugins: