Metasploit with Armitage
Summary
This documentation describes how to use Armitage GUI with the Metasploit Framework.
Armitage is a Java-based graphical user interface and serves as a free frontend for the Metasploit Framework. The software was first developed by Raphael Mudge in 2013. It is used for the visualization of vulnerable systems, provides suitable exploits and tools for post-exploitation. Access on a single Metasploit RPC instance is possible through multiple Armitage clients. Therefore, teamwork is possible sharing same data, i.e. workspaces and sessions with common event logs. Armitage is a Team Red cooperation, a group of moral hackers (White Hats), whose declared goal is to detect security vulnerabilities before they can be discovered and exploited by destructive hackers (Black Hats). In addition to such projects, the American company offers security audits as well as customized training.
Requirements
- Operating system: Kali Linux amd64 2019.2
- Packages: Metasploit Framework
In order to complete these steps, you should have followed Metasploit Framework MSF before.
(Requirements for MAC devices with Apple silicon CPU's
- Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network
- Packages: Metasploit Framework installed on the Ubuntu machine
)
Attack Process
Armitage is able to perform network scans via NMAP but the import of data from external tools is also supported. Hosts are displayed within a GUI workspace. Afterwards the hosts can be compared with the exploit database provided by Metasploit. If no matching exploits can be found, a so-called Hail Mary Attack is possible. In this case, all available exploits from the database are executed without necessary knowledge of the target system. However, this method leaves traces in the network or on hosts. After a successful attack the available post exploitation tools can be used. Once the necessary rights to the system have been obtained or already existed (root exploit), keyloggers can be installed or existing password hash files can be read from the file system. The execution of remote shells is also possible, e.g.: the installation of further malware. Especially interesting is the possibility to use pivot systems, these are systems that have already been compromised within a network and are used for further attacks in the local network. For this purpose Armitage offers support for the SOCKS proxy modules provided by the Metasploit Framework.
First Start
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.
Use Linux command: service postgresql start
Select 08 - Exploitation Tools - armitage:
Afterwards start with the 'Connect' Button:
If the metasploit RPC service was not started already, start it with 'Yes':
On the following screenshot you can see the user interface of Armitage.
There are three main sections we can work with: modules, targets and tabs.
Modules:
The modules section can be found on the top left corner of the user interface. It is a file system that lets you navigate through the 4 main modules: auxiliary, exploit, payload and post. Using this tree structured file system we can run auxiliary modules -such as scanning-, exploits, generate payloads and run post-exploitation modules just by selecting and double clicking on the desired module.
Targets:
The targets panel is right next to the modules section. It is a blank area now, but once we do network scan, the available devices will be displayed here. Each target host is shown as a computer icon, represented with its IP address and some other available information, such as the operating systen.
Tabs:
The tabs panel shows the operations that has been performed on a host. It is located on the bottom of the user interface. These tabs have different functionalities, but what they have in common is that they somehow allow the attacker to manually perform various types of interaction on the selected hosts. Attacks can be performed either through a command line (Meterpreter), where the user types and executes different commands. They can also be executed by selecting an attack in the targets section, whose results will be displayed in a new tab.
Example Attack with Armitage
Afterwards we will show an example attack with the Armitage GUI.
Network Discovery with NMAP
Start with an NMAP 'Intense Scan' within your local network. This will scan for services on well known ports and provides service and os detection. After selecting the scanner type, a pop-up will appear, in which we will have to specify the IP address range what the scanner is going to search through. The bigger the address range is the more time it will take to finish the scan.
Afterwards detected hosts will be shown in your workspace:
You can check services with a right click on the host:
Attack ProFTPD Service
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.
With a right click on the host, the Exploit 'proftpd_mod_copy' can be selected and executed:
After a successful attack the host picture will look as follows:
Now we can use the active session for a remote shell:
We now have access to the remote host, so we should start exploring and looting. We can use post-exploitation modules from the modules panel to interact with the compromised host. Firstly, we could try dumping hashes, cookies, browsing files in hope for valuable information. Furthermore, we could set up keyloggers, take screenshots or if available, take pictures using the webcamera.
Example Attack with Armitage - Under MAC with Apple Silicone
Since Metasploit is not supported on AMD based CPU's like the Apple Silicone, a decent amount of the functionalities are not working. In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.
Network Discovery with NMAP
We start things of by performing a Quick Network Discovery command with NMAP to fetch all necessary information about the target host.
After successfully performing the NMAP Quick Scan on our known target host with the IP address 10.211.55.6, we can see all the necessary information like the open ports and also the OS of the target machine which are important to chose the right exploit.
Attack FTP Service
We will perform the exploit of the target machine based on the vsftpd 2.3.4 backdoor (CVE-2011-2523). With the provided GUI of Armitage we navigate to the desired exploit and execute it by clicking on the respective button.
In the newly opened window we enter the IP address of the target host (if you clicked on the target icon before launching the command, the IP address is fetched automatically) and launch the exploit. Armitage runs the necessary exploit scripts in the background to try to exploit the target machine.
When the exploit was successful the target is shown as 'infected' and the post exploitation actions can be performed.
In this tutorial we will stick to gaining super user access to the shell of the target machine.
This can be done by simply right clicking on the symbol of the target and navigating to the shell access as it is being shown in the picture below.
Through the exploitation of the vsftpd 2.3.4 backdoor we now have successfully gained access to the shell of the target.








