Installing Kali Linux is pretty easy to do. Now let's consider some
configuration steps and walk through the Kali Linux interface.
Now that we have a fresh installation of Kali,
there are a few steps we should consider moving forward.
First, you should take a snapshot of your freshly installed VM for Kali.
Should you run into problems or just want to experiment with the system,
you may need to roll back to the freshly installed version.
Next, you should periodically check for updates to Kali.
The developers are continually making improvements to Kali and
updating packages and upgrading to new releases.
The Kali website can provide you instructions on the updating and
upgrading process. For the Metasploit Framework on Kali,
we just need to start the msfconsole command through the user
interface to set up and initialize the database.
So, it's demo time now.
First, we will boot our Kali Linux installation for the first time.
Next,
I'll show you how to start the msfconsole through the Kali menu. The first
time we start msfconsole this way, it will create and initialize the
database that the Metasploit framework will use.
So, let's get started. The Kali VM is now booting. The GRUB boot
loader gives these options for booting Kali.
Usually the default boot option works for most systems.
At this point, you may see some errant messages on the screen.
Not to worry.
Once you see the Kali Linux graphic on the background,
you know the system is booting up.
Eventually, the login screen appears.
Here you enter your username and password created during installation.
I will enter my details here.
That should take us to the home screen of Kali.
I've made this full screen on my system so you can see more. In the upper
left corner of the screen, you'll see the Kali logo.
Click on that, and you'll see a menu of options in Kali.
As I mentioned before,
there are a lot of tools in Kali organized into the categories here.
Find 08 ‑ Exploitation Tools, and click on that to bring up a submenu of tools.
At the top, you'll see the Metasploit Framework.
Click on that.
This will open a command hell.
I will make it full screen.
Here you will see that it is executing two commands, msfdb
init and then starting the console. Metasploit Framework
generally needs elevated privileges,
so the sudo command is used, and we need to enter our password again.
You can see it is starting the database system,
creating a user and then two databases.
Once the database work is complete, the Metasploit console is started.
I will run the db_status command to verify that
Metasploit sees a connection to the database,
which it does.
So for now, we have Metasploit configured.
If we want to make changes to Kali,
there's a Settings menu here where you can make those changes.
As you can see, there are many options you can adjust.
You can log out or shut down the system from this upper right
menu. So that completes the little bit of configuration we needed
for using the Metasploit Framework.
Well done.
We now have a working Metasploit Framework ready to do our bidding.