5. System Hacking: Gain access to a Remote System using Armitage/Metasploit Framework
In this practical, we will gain access to a remote system using Armitage and the Metasploit Framework.
Step 1: Setting up Armitage
- Open your terminal and type in the following command to install Armitage:
sudo apt-get install armitage - Once the installation is complete, start Armitage with the command:
armitage
Step 2: Setting up Metasploit Framework
- In your terminal, type in the following command to clone the Metasploit Framework repository:
git clone https://github.com/rapid7/metasploit-framework.git - Navigate to the Metasploit Framework directory using the command:
cd metasploit-framework - Install the necessary dependencies with the command:
bundle install - Start the Metasploit Framework with the command:
./msfconsole
Step 3: Gaining Access to a Remote System
- In Armitage, click on "Hosts" and then "Nmap Scan" to scan for potential targets.
- Once you have identified a target, right-click on it and select "Attack" to view the available exploits.
- Choose an exploit and configure it as necessary. Click "Launch" to start the attack.
- If the attack is successful, you will gain access to the remote system.
Remember to always use these tools responsibly and only on systems you have permission to access.