![Metasploit Tutorial](/metasploit/images/metasploit-mini-logo.jpg)
- Metasploit Tutorial
- Metasploit - Home
- Metasploit - Introduction
- Metasploit - Environment Setup
- Metasploit - Basic Commands
- Metasploit - Armitage GUI
- Metasploit - Pro Console
- Metasploit - Vulnerable Target
- Metasploit - Discovery Scans
- Metasploit - Task Chains
- Metasploit - Import Data
- Metasploit - Vulnerability Scan
- Metasploit - Vulnerability Validation
- Metasploit - Exploit
- Metasploit - Payload
- Metasploit - Credential
- Metasploit - Brute-Force Attacks
- Metasploit - Pivoting
- Metasploit - Maintaining Access
- Metasploit - MetaModules
- Metasploit - Social Engineering
- Metasploit - Export Data
- Metasploit - Reports
- Metasploit Useful Resources
- Metasploit - Quick Guide
- Metasploit - Useful Resources
- Metasploit - Discussion
Metasploit - Environment Setup
We will take the following actions to set up our test environment −
We will download Virtual box and install it.
Download and install Kali distribution.
Download and install Metasploitable which will be our hacking machine.
Download and install Windows XP which will be another hacking machine.
In total, we will have 3 machines which will be logically connected in the same network.
![Three Machines](/metasploit/images/three_machines.jpg)
Install Virtual Box
To download Virtual Box, go to www.virtualbox.org/wiki/Downloads
Select the appropriate version depending on your OS and the hardware configuration of your system.
![Install Virtual Box](/metasploit/images/install_virtual_box.jpg)
After selecting the appropriate version of Virtual Box, the following screen will appear. Click Next.
![Select Appropriate Version](/metasploit/images/select_appropriate_version.jpg)
On the next screen, set the location where you want to install the application.
![Set Location](/metasploit/images/set_location.jpg)
You will get a Warning message before proceeding with the installation.
![Warning Message](/metasploit/images/warning_message.jpg)
Click Yes on the above screen which will display the following screen. Click Install to begin the installation.
![Click Install](/metasploit/images/click_install.jpg)
Once the installation is complete, you will get the following screen. Click Finish to exit the Setup Wizard.
![Click Finish](/metasploit/images/click_finish.jpg)
Now, you will be greeted with the opening screen of VirtualBox.
![VirtualBox Screen](/metasploit/images/virtualbox_screen.jpg)
Now we are ready to install the rest of the hosts for this tutorial.
Install Kali Linux
You can download Kali Linux from its official website − www.kali.org/downloads/
![Install Kali Linux](/metasploit/images/install_kali_linux.jpg)
Go to the official website and download prebuilt Kali Linux VirtualBox images.
Next, open VirtualBox Manager and go to Machine → New.
![Open VirtualBox Manager](/metasploit/images/open_virtualbox_manager.jpg)
Go to the location where Kali Linux has been downloaded and choose a virtual hard disk file.
![Kali Linux](/metasploit/images/kali_linux.jpg)
The next screen will prompt you to create a virtual machine. Click the Create button, as shown in the following screenshot.
![Click Create Button](/metasploit/images/click_create_button.jpg)
Now, you can start Kali OS. Your default username will be root and your password will be toor.
![Start Kali OS](/metasploit/images/start_kali_os.jpg)