How to install Kali on Windows 10 and use metasploit

This post is a quick guide to show you how to install Kali Linux on a Windows 10 machine and start using metasploit. We’ve used:

  • Windows 10 Pro host
  • VMWare WorkStation 14 Pro
  • Kali Linux 2018.2 image 64 bits from the official website

 

Steps to install the virtual machine that work

This video shows you step by step the process which also works with previous versions of the host and guest operative systems.

Some more tips:

  • Use the bridge mode in the Network settings so you will have internet connection

  • Turn off the virtual machine and configure the display settings (the options would be editable once the machine is off). Then, just click on full screen mode

Start using metasploit in Kali Linux

In order to run metasploit, assuming you are the root user, you just need open the terminal and run:

msfconsole

I quick check to see if the exploit database is working properly is to search for something. For instance, type:

search oracle

If you get an error such as: “Module database cache not built yet, using slow search“, confirm there is a connection with the database by doing:

db_status

Do you get the message: “postgresql selected no connection“? Let’s solve it! You have two options:

1. Start metasploit from the metasploit-framework folder, by doing

cd /usr/share/metasploit-framework

metasploit

db_status

search oracle

 

Now no errors should show up.

2. If you want to run metasploit console from the home dir, you need to install the bundle first, so you do:

cd /usr/share/metasploit-framework

bundle install

cd ..

cd ..

cd ..

metasploit

db_status

search oracle

And this should work too! 🙂 We hope you enjoyed this post and we’ll be looking for your comments!

Add a Comment

Your email address will not be published. Required fields are marked *