<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BKongo</id>
	<title>Elvis Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://elvis.hcw.ac.at/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=BKongo"/>
	<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php/Special:Contributions/BKongo"/>
	<updated>2026-09-10T14:27:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Meterpreter&amp;diff=17829</id>
		<title>Meterpreter</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Meterpreter&amp;diff=17829"/>
		<updated>2024-12-31T17:53:57Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Meterpreter, short for Meta-Interpreter, is a versatile and stealthy payload integrated into the Metasploit Framework, designed for use during the post-exploitation phase of penetration testing. Developed by Matt Miller (a.k.a. Skape), Meterpreter provides an interactive command-line interface (CLI) that avoids detection by Intrusion Detection Systems (IDS) and antivirus software by operating exclusively in memory.&lt;br /&gt;
&lt;br /&gt;
Unlike traditional shell processes, Meterpreter does not write to disk or require separate processes to run. Instead, it injects itself into an active process on the target system, enhancing its stealth capabilities. Its encrypted communications and runtime extensibility allow attackers to execute commands, load extensions, and run scripts without rebuilding sessions. As part of the Metasploit Framework, Meterpreter seamlessly integrates with numerous post-exploitation modules, enabling powerful and flexible exploitation workflows.&lt;br /&gt;
&lt;br /&gt;
== Meterpreter Basics ==&lt;br /&gt;
Meterpreter is supposed to give the attacker access to a command interpreter on the target machine that offers powerful post-exploitation tools and is also hard to detect with forensic tools. For this Meterpreter was designed with the three goals of being stealthy, powerful and extensible.&lt;br /&gt;
&lt;br /&gt;
=== Meterpreter Design Goals ===&lt;br /&gt;
==== Stealthy ====&lt;br /&gt;
* Meterpreter is designed to operate in working memory and never write to the physical disk. &lt;br /&gt;
* Meterpreter operates inside running processes and can be migrated to other processes.&lt;br /&gt;
* Meterpreter uses encrypted communication.&lt;br /&gt;
&lt;br /&gt;
==== Powerful ==== &lt;br /&gt;
* Meterpreter utilizes a channelized communication system.&lt;br /&gt;
* The TLV (Type-Length-Value) protocol has few limitations.&lt;br /&gt;
&lt;br /&gt;
==== Extensible ====&lt;br /&gt;
* Meterpreter can be augmented at runtime. Extensions, modules and scripts can be loaded over the network connection.&lt;br /&gt;
* The Meterpreter session does not have to be rebuilt every time new features are added.&lt;br /&gt;
&lt;br /&gt;
=== How does Meterpreter work? ===&lt;br /&gt;
Prerequisite: The target system is already exploited and remote access is established. &lt;br /&gt;
# Meterpreter payload, also called the initial stager, is sent to the target system.&lt;br /&gt;
# Compromised system executes the initial stager, usually bind_tcp, reverse_tcp, etc.&lt;br /&gt;
# The stager loads the needed libraries, the Meterpreter core initializes and established a TLS connection to the attacking system.&lt;br /&gt;
# Meterpreter sends a GET request which Metasploit receives and then configures the client.&lt;br /&gt;
# Meterpreter loads the default extensions (&#039;&#039;&#039;stdapi&#039;&#039;&#039;, &#039;&#039;&#039;priv&#039;&#039;&#039;). The extensions are loaded over the TLS connection using a TLV (Type-Length-Value) protocol.&lt;br /&gt;
&lt;br /&gt;
== Meterpreter Features == &lt;br /&gt;
Meterpreter&#039;s CLI resembles standard shells like sh or zsh and supports common system, file, and networking commands (cd, cat, rm, pwd, etc.), making it intuitive for penetration testers.&lt;br /&gt;
&lt;br /&gt;
=== Basic Commands ===&lt;br /&gt;
A selection of commonly used Meterpreter commands can be found in the table below.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Command&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| background&lt;br /&gt;
| Moves the current Meterpreter session to the background giving the user access to the Metasploit command line.&lt;br /&gt;
|-&lt;br /&gt;
| sessions -i &#039;&#039;ID&#039;&#039;&lt;br /&gt;
| Reactivates the specified session. Using the command without a switch displays all active sessions.&lt;br /&gt;
|-&lt;br /&gt;
| clearev&lt;br /&gt;
| Deletes all application, system and security logs on the victim machine. Only works for Windows systems.&lt;br /&gt;
|-&lt;br /&gt;
| execute&lt;br /&gt;
| Executes a command on the remote machine specified by the &#039;-f&#039; switch. The executed command can be supplied with arguments by using &#039;-a&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| getsystem&lt;br /&gt;
| This attempts to elevate the current Meterpreter session to system administrator level of authorization.&lt;br /&gt;
|-&lt;br /&gt;
| getuid&lt;br /&gt;
| Displays the user identification of the user the current Meterpreter session is running as.&lt;br /&gt;
|-&lt;br /&gt;
| hashdump&lt;br /&gt;
| Prints all available usernames and their password hashes, making them available for further manipulation like password cracking using additional software or rainbow tables.&lt;br /&gt;
|-&lt;br /&gt;
| help&lt;br /&gt;
| Shows the Meterpreter help menu consisting of a comprehensive list of commands. This menu expands if more extensions are loaded.&lt;br /&gt;
|-&lt;br /&gt;
| ipconfig&lt;br /&gt;
| Prints the network configuration of the target machine in Windows display style.&lt;br /&gt;
|-&lt;br /&gt;
| migrate&lt;br /&gt;
| Migrates the Meterpreter session to the process given as a parameter. This allows further exploitation of the system from within the new process. This should be done to avoid getting thrown out by the user closing the process that served as entry point.&lt;br /&gt;
|-&lt;br /&gt;
| ps&lt;br /&gt;
| Prints a non-interactive list of the currently running processes on the target machine including process IDs, usernames of the process owners and the path to the executables.&lt;br /&gt;
|-&lt;br /&gt;
| search&lt;br /&gt;
|  Searches the system for a file specified by the -f switch. The provided filename may contain wildcards.&lt;br /&gt;
|-&lt;br /&gt;
| sysinfo&lt;br /&gt;
| Prints the target machines name, operating system (including build and service pack if applicable), the architecture of the operating system, the system language, the domain name and the number of currently logged in users.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Extensions ===&lt;br /&gt;
Meterpreter extensions are loaded by using the &#039;&#039;&#039;load&#039;&#039;&#039;-command. Two Extensions are loaded by default:&lt;br /&gt;
* &#039;&#039;&#039;priv&#039;&#039;&#039;: This extension is used for privilege escalation&lt;br /&gt;
* &#039;&#039;&#039;stdapi&#039;&#039;&#039;: This extension supplies core Meterpreter commands like &#039;&#039;getuid&#039;&#039;&lt;br /&gt;
Other frequently used extensions include:&lt;br /&gt;
* &#039;&#039;&#039;kiwi&#039;&#039;&#039;: This extension is used to obtain user credentials and authentication tokens which are retrieved from system memory. This makes it possible for passwords to be displayed in cleartext. In the past the extension was named &#039;&#039;&#039;mimikatz&#039;&#039;&#039;.&lt;br /&gt;
* &#039;&#039;&#039; python &#039;&#039;&#039;: This extension allows the execution of python scripts on the target machine.&lt;br /&gt;
* &#039;&#039;&#039; powershell &#039;&#039;&#039;: This extension allows the execution of powershell scripts on the target machine.&lt;br /&gt;
&lt;br /&gt;
=== Scripts &amp;amp; Modules ===&lt;br /&gt;
Meterpreter includes pre-made scripts for various purposes which are run by using the &#039;&#039;&#039;run&#039;&#039;&#039;-command. The payload includes scripts that can persist Meterpreter sessions, unlock the targets screen or disable Anti-Virus software. Part of the scripts seen in the figure below are now considered deprecated. This is because they are now integrated into the Metasploit Framework as post-exploitation modules. The Meterpreter session can be put into the background to run these modules.&lt;br /&gt;
[[File:Meterpreter List Scripts.png|thumb|none|750px|Meterpreter Scripts]]&lt;br /&gt;
&lt;br /&gt;
==Meterpreter-Skripting with Ruby==&lt;br /&gt;
&lt;br /&gt;
Version 3.0 of the Metasploit Framework marked a major leap forward from its 2.x predecessors, introducing a complete rewrite in Ruby. This transition replaced the earlier mix of Perl, Python, C, and Assembly with a unified, interpreted, object-oriented language. Ruby’s simplicity, extensibility, and object-oriented features made it an ideal choice for enhancing the framework&#039;s flexibility and performance.&lt;br /&gt;
&lt;br /&gt;
This overhaul enabled automation at every stage of the penetration testing process, from discovery to exploitation. Version 3.0 allows for seamless extension, integration, and automation of nearly all components, making it more effective for penetration testing and highly compatible with third-party tools. This adaptability solidified Metasploit&#039;s role as a cornerstone in modern cybersecurity workflows.&lt;br /&gt;
&lt;br /&gt;
===The Ruby programming language by Yukihiro Matsumoto===&lt;br /&gt;
Yukihiro Matsumoto created Ruby, a straightforward and powerful object-oriented programming language. Everything in Ruby follows the Smalltalk style, treating everything as an object, and it includes features like blocks, iterators, metaclasses, and more. Ruby is versatile, suitable for everyday tasks, prototyping, and server development. It is a fully integrated, easily scalable object-oriented language.&lt;br /&gt;
&lt;br /&gt;
Ruby is characterized by the following features:&lt;br /&gt;
* Simple syntax&lt;br /&gt;
* Basic object-oriented functionalities (such as classes, methods, objects, ...)&lt;br /&gt;
* Special object-oriented functionalities (such as mixins, singleton methods, renaming, ...)&lt;br /&gt;
* Operator overloading&lt;br /&gt;
* Exception handling&lt;br /&gt;
* Iterators and closures&lt;br /&gt;
* Dynamic loading (dependent on the architecture)&lt;br /&gt;
* High portability (runs on various UNIX, Windows, DOS, and OS platforms, ...)&lt;br /&gt;
&lt;br /&gt;
===Reasons for using Ruby===&lt;br /&gt;
What was the reason behind the Metasploit team&#039;s decision to use Ruby in the development of version 3.0? The decision is clarified by the following arguments:&lt;br /&gt;
* Ruby&#039;s simple and powerful approach as an interpreted language.&lt;br /&gt;
* Ruby&#039;s high introspection level and object-oriented elements meeting framework requirements.&lt;br /&gt;
* Ruby being more suitable than Perl for automated class construction and code reuse.&lt;br /&gt;
* Ruby providing platform-independent threading support, leading to improved performance.&lt;br /&gt;
*Usability and performance issues in integrating Perl with ActiveState Perl, resolved by the natively compiled Ruby interpreter for Windows.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
&lt;br /&gt;
* D. Kennedy, J. O’Gorman, D. Kearns, and M. Aharoni. Metasploit: The Penetration Tester’s Guide. No Starch Press Series. No Starch Press, 2011.&lt;br /&gt;
* James McGuffee, Jay Blanco, and Franz Wambach. Try ruby! tutorial presentation. J. Comput. Sci. Coll., 23(6):117, jun 2008.&lt;br /&gt;
* Michael Messner. Hacking mit Metasploit. dpunkt.verlag, 3rd edition, 2017.&lt;br /&gt;
* David Maynor and Thomas Wilhelm. Metasploit Toolkit for Penetration Testing, Exploit Development, and Vulnerability Research. Syngress Publishing, 1st edition, 2007.&lt;br /&gt;
* M. Miller. Meterpreter specifications. http://www.hick.org/code/skape/papers/meterpreter.pdf, 2004. Accessed: 2022-09-14.&lt;br /&gt;
* Metasploit Unleashed free ethical hacking course. https://www.offensive-security.com/metasploit-unleashed/. Accessed: 2022-11-05.&lt;br /&gt;
* Benjamin Pharr. Getting to know ruby. J. Comput. Sci. Coll., 21(5):181–182, may 2006.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17828</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17828"/>
		<updated>2024-12-31T17:48:21Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since Metasploit is not supported on AMD based CPU&#039;s like the Apple Silicone, a decent amount of the functionalities are not working.&lt;br /&gt;
In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We start things of by performing a Quick Network Discovery command with NMAP to fetch all necessary information about the target host.&lt;br /&gt;
&lt;br /&gt;
[[File:PerformingNmap.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[File:SuccesfulNmap.png]] &lt;br /&gt;
&lt;br /&gt;
=== Attack FTP Service ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will perform the exploit of the target machine based on the vsftpd 2.3.4 backdoor (CVE-2011-2523).&lt;br /&gt;
With the provided GUI of Armitage we navigate to the desired exploit and execute it by clicking on the respective button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:FTP.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:LaunchingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When the exploit was successful the target is shown as &#039;infected&#039; and the post exploitation actions can be performed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File: ChoosingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial we will stick to gaining super user access to the shell of the target machine.&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File: AccessShellOnTarget.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Through the exploitation of the vsftpd 2.3.4 backdoor we now have successfully gained access to the shell of the target.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File: Shell.png]] &lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:Shell.png&amp;diff=17827</id>
		<title>File:Shell.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:Shell.png&amp;diff=17827"/>
		<updated>2024-12-31T17:47:27Z</updated>

		<summary type="html">&lt;p&gt;BKongo: Shell&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Shell&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17826</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17826"/>
		<updated>2024-12-31T17:46:20Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since Metasploit is not supported on AMD based CPU&#039;s like the Apple Silicone, a decent amount of the functionalities are not working.&lt;br /&gt;
In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We start things of by performing a Quick Network Discovery command with NMAP to fetch all necessary information about the target host.&lt;br /&gt;
&lt;br /&gt;
[[File:PerformingNmap.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[File:SuccesfulNmap.png]] &lt;br /&gt;
&lt;br /&gt;
=== Attack FTP Service ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will perform the exploit of the target machine based on the vsftpd 2.3.4 backdoor (CVE-2011-2523).&lt;br /&gt;
With the provided GUI of Armitage we navigate to the desired exploit and execute it by clicking on the respective button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:FTP.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:LaunchingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When the exploit was successful the target is shown as &#039;infected&#039; and the post exploitation actions can be performed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File: ChoosingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial we will stick to gaining super user access to the shell of the target machine.&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File: AccessShellOnTarget.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Through the exploitation of the vsftpd 2.3.4 backdoor we now have gained access to the shell of the target.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File: TargetShellDemo.png]] &lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17825</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17825"/>
		<updated>2024-12-31T17:42:41Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since Metasploit is not supported on AMD based CPU&#039;s like the Apple Silicone, a decent amount of the functionalities are not working.&lt;br /&gt;
In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We start things of by performing a Quick Network Discovery command with NMAP to fetch all necessary information about the target host.&lt;br /&gt;
&lt;br /&gt;
[[File:PerformingNmap.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[File:SuccesfulNmap.png]] &lt;br /&gt;
&lt;br /&gt;
=== Attack FTP Service ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will perform the exploit of the target machine based on the vsftpd 2.3.4 backdoor (CVE-2011-2523).&lt;br /&gt;
With the provided GUI of Armitage we navigate to the desired exploit and execute it by clicking on the respective button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:FTP.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:LaunchingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When the exploit was successful the target is shown as &#039;infected&#039; and the post exploitation actions can be performed. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File: ChoosingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial we will stick to gaining super user access to the shell of the target machine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17824</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17824"/>
		<updated>2024-12-31T17:38:45Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
Since Metasploit is not supported on AMD based CPU&#039;s like the Apple Silicone, a decent amount of the functionalities are not working.&lt;br /&gt;
In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
We start things of by performing a Quick Network Discovery command with NMAP to fetch all necessary information about the target host.&lt;br /&gt;
&lt;br /&gt;
[[File:PerformingNmap.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[File:SuccesfulNmap.png]] &lt;br /&gt;
&lt;br /&gt;
=== Attack FTP Service ===&lt;br /&gt;
&lt;br /&gt;
We will perform the exploit of the target machine based on the vsftpd 2.3.4 backdoor (CVE-2011-2523).&lt;br /&gt;
With the provided GUI of Armitage we navigate to the desired exploit and execute it by clicking on the respective button.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[File:FTP.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
 &lt;br /&gt;
[[File:LaunchingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:FTP.png&amp;diff=17823</id>
		<title>File:FTP.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:FTP.png&amp;diff=17823"/>
		<updated>2024-12-31T17:35:34Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17822</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17822"/>
		<updated>2024-12-31T17:35:22Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
Since Metasploit is not supported on AMD based CPU&#039;s like the Apple Silicone, a decent amount of the functionalities are not working.&lt;br /&gt;
In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
We start things of by performing a Quick Network Discovery command with NMAP to fetch all necessary information about the target host.&lt;br /&gt;
[[File:PerformingNmap.png]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:SuccesfulNmap.png]] &lt;br /&gt;
&lt;br /&gt;
We will perform the exploit of the target machine based on the vsftpd 2.3.4 backdoor (CVE-2011-2523).&lt;br /&gt;
With the provided GUI of Armitage we navigate to the desired exploit and execute it by clicking on the respective button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
[[File:LaunchingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17821</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17821"/>
		<updated>2024-12-31T17:32:58Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
Since Metasploit is not supported on AMD based CPU&#039;s like the Apple Silicone, a decent amount of the functionalities are not working.&lt;br /&gt;
In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
We start things of by performing a Quick Network Discovery command with NMAP to fetch all necessary information about the target host.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:SuccesfulNmap.png]] &lt;br /&gt;
&lt;br /&gt;
We will perform the exploit of the target machine based on the vsftpd 2.3.4 backdoor (CVE-2011-2523).&lt;br /&gt;
With the provided GUI of Armitage we navigate to the desired exploit and execute it by clicking on the respective button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
[[File:LaunchingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:PerformingNmap.png]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17820</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17820"/>
		<updated>2024-12-30T22:49:33Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
Since Metasploit is not supported on AMD based CPU&#039;s like the Apple Silicone, a decent amount of the functionalities are not working.&lt;br /&gt;
In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
We start things of by performing a Quick Network Discovery command with NMAP to fetch all necessary information about the target host.&lt;br /&gt;
&lt;br /&gt;
[[File:PerformingNmap.png]] &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:SuccesfulNmap.png]] &lt;br /&gt;
&lt;br /&gt;
We will perform the exploit of the target machine based on the vsftpd 2.3.4 backdoor (CVE-2011-2523).&lt;br /&gt;
With the provided GUI of Armitage we navigate to the desired exploit and execute it by clicking on the respective button.&lt;br /&gt;
&lt;br /&gt;
[[File:ChoosingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
[[File:LaunchingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:SuccesfulExploit.png]] &lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17819</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17819"/>
		<updated>2024-12-30T22:48:49Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
Since Metasploit is not supported on AMD based CPU&#039;s like the Apple Silicone, a decent amount of the functionalities are not working.&lt;br /&gt;
In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
We start things of by performing a Quick Network Discovery command with NMAP to fetch all necessary information about the target host.&lt;br /&gt;
&lt;br /&gt;
[[File:PerformingNmap.png]] &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:SuccesfulNmap.png]] &lt;br /&gt;
&lt;br /&gt;
We will perform the exploit of the target machine based on the vsftpd 2.3.4 backdoor (CVE-2011-2523).&lt;br /&gt;
With the provided GUI of Armitage we navigate to the desired exploit and execute it by clicking on the respective button.&lt;br /&gt;
&lt;br /&gt;
[[File:ChoosingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
[[File:LaunchingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:SuccessfulExploit.png]] &lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:LaunchingFTP.png&amp;diff=17818</id>
		<title>File:LaunchingFTP.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:LaunchingFTP.png&amp;diff=17818"/>
		<updated>2024-12-30T22:45:15Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17817</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17817"/>
		<updated>2024-12-30T22:45:04Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
Since Metasploit is not supported on AMD based CPU&#039;s like the Apple Silicone, a decent amount of the functionalities are not working.&lt;br /&gt;
In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
We start things of by performing a Quick Network Discovery command with NMAP to fetch all necessary information about the target host.&lt;br /&gt;
&lt;br /&gt;
[[File:PerformingNmap.png]] &lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
[[File:SuccesfulNmap.png]] &lt;br /&gt;
&lt;br /&gt;
We will perform the exploit of the target machine based on the vsftpd 2.3.4 backdoor (CVE-2011-2523).&lt;br /&gt;
With the provided GUI of Armitage we navigate to the desired exploit and execute it by clicking on the respective button.&lt;br /&gt;
&lt;br /&gt;
[[File:ChoosingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:LaunchingFTP.png]] &lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:SuccesfulNmap.png&amp;diff=17816</id>
		<title>File:SuccesfulNmap.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:SuccesfulNmap.png&amp;diff=17816"/>
		<updated>2024-12-30T22:36:19Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17815</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17815"/>
		<updated>2024-12-30T22:36:10Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
Since Metasploit is not supported on AMD based CPU&#039;s like the Apple Silicone, a decent amount of the functionalities are not working.&lt;br /&gt;
In the following we are showing a short exploit tutorial based on the exploit (CVE-2011-2523) of the vsftpd 2.3.4 backdoor.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
We start things of by performing a Network Discovery command with NMAP to fetch all necessary information about the Target Host.&lt;br /&gt;
&lt;br /&gt;
[[File:PerformingNmap.png]] &lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:AccessShellOnTarget.png&amp;diff=17814</id>
		<title>File:AccessShellOnTarget.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:AccessShellOnTarget.png&amp;diff=17814"/>
		<updated>2024-12-30T22:26:42Z</updated>

		<summary type="html">&lt;p&gt;BKongo: BKongo uploaded a new version of File:AccessShellOnTarget.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:AccessShellOnTarget.png&amp;diff=17813</id>
		<title>File:AccessShellOnTarget.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:AccessShellOnTarget.png&amp;diff=17813"/>
		<updated>2024-12-30T22:26:29Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:ChoosingFTP.png&amp;diff=17812</id>
		<title>File:ChoosingFTP.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:ChoosingFTP.png&amp;diff=17812"/>
		<updated>2024-12-30T22:25:38Z</updated>

		<summary type="html">&lt;p&gt;BKongo: BKongo uploaded a new version of File:ChoosingFTP.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:ChoosingFTP.png&amp;diff=17811</id>
		<title>File:ChoosingFTP.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:ChoosingFTP.png&amp;diff=17811"/>
		<updated>2024-12-30T22:25:19Z</updated>

		<summary type="html">&lt;p&gt;BKongo: BKongo uploaded a new version of File:ChoosingFTP.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:ChoosingFTP.png&amp;diff=17810</id>
		<title>File:ChoosingFTP.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:ChoosingFTP.png&amp;diff=17810"/>
		<updated>2024-12-30T22:24:39Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:PerformingNmap.png&amp;diff=17809</id>
		<title>File:PerformingNmap.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:PerformingNmap.png&amp;diff=17809"/>
		<updated>2024-12-30T22:24:25Z</updated>

		<summary type="html">&lt;p&gt;BKongo: BKongo reverted File:PerformingNmap.png to an old version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:PerformingNmap.png&amp;diff=17808</id>
		<title>File:PerformingNmap.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:PerformingNmap.png&amp;diff=17808"/>
		<updated>2024-12-30T22:24:09Z</updated>

		<summary type="html">&lt;p&gt;BKongo: BKongo uploaded a new version of File:PerformingNmap.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:PerformingNmap.png&amp;diff=17807</id>
		<title>File:PerformingNmap.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:PerformingNmap.png&amp;diff=17807"/>
		<updated>2024-12-30T22:23:46Z</updated>

		<summary type="html">&lt;p&gt;BKongo: BKongo uploaded a new version of File:PerformingNmap.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=File:PerformingNmap.png&amp;diff=17806</id>
		<title>File:PerformingNmap.png</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=File:PerformingNmap.png&amp;diff=17806"/>
		<updated>2024-12-30T22:23:23Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17805</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17805"/>
		<updated>2024-12-30T22:22:18Z</updated>

		<summary type="html">&lt;p&gt;BKongo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage - Under MAC with Apple Silicone ==&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17804</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17804"/>
		<updated>2024-12-30T22:00:51Z</updated>

		<summary type="html">&lt;p&gt;BKongo: /* First Start */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Please ensure that you start the PostgreSQL database before launching Armitage. Armitage is based on the Metasploit Framework, which uses PostreSQL for its services.&lt;br /&gt;
&lt;br /&gt;
Use Linux command: &#039;&#039;&#039;service postgresql start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
	<entry>
		<id>https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17803</id>
		<title>Metasploit with Armitage</title>
		<link rel="alternate" type="text/html" href="https://elvis.hcw.ac.at/wiki/index.php?title=Metasploit_with_Armitage&amp;diff=17803"/>
		<updated>2024-12-30T21:51:16Z</updated>

		<summary type="html">&lt;p&gt;BKongo: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary == &lt;br /&gt;
&lt;br /&gt;
This documentation describes how to use Armitage GUI with the Metasploit Framework. &lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* Operating system: Kali Linux amd64 2019.2&lt;br /&gt;
* Packages: Metasploit Framework&lt;br /&gt;
&lt;br /&gt;
In order to complete these steps, you should have followed [[Metasploit Framework MSF]] before.&lt;br /&gt;
&lt;br /&gt;
(Requirements for MAC devices with Apple silicon CPU&#039;s&lt;br /&gt;
&lt;br /&gt;
* Two virtual machines with Kali Linux ARM64 2024.2 and Ubuntu Linux 2024.4 which are both in the same network&lt;br /&gt;
* Packages: Metasploit Framework installed on the Ubuntu machine&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
== Attack Process ==&lt;br /&gt;
&lt;br /&gt;
[[File:Ablauf.PNG|thumbnail|upright]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== First Start ==&lt;br /&gt;
&lt;br /&gt;
After successful login to our kali linux desktop, the Armitage GUI can be started as follows.&lt;br /&gt;
&lt;br /&gt;
Select 08 - Exploitation Tools - armitage:&lt;br /&gt;
 &lt;br /&gt;
[[File:Armitage01.PNG]]&lt;br /&gt;
&lt;br /&gt;
Afterwards start with the &#039;Connect&#039; Button:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage02.png]]&lt;br /&gt;
&lt;br /&gt;
If the metasploit RPC service was not started already, start it with &#039;Yes&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage03.PNG]]&lt;br /&gt;
&lt;br /&gt;
There is a specific error occurring sometimes when starting Armitage. This has to do something with the msf database. To fix it, type the following commands in the terminal: &amp;quot;systemctl start postgresql&amp;quot; and &amp;quot;msfdb init&amp;quot;. These commands start the database that Armitage is using and so fix the error.&lt;br /&gt;
&lt;br /&gt;
On the following screenshot you can see the user interface of Armitage.&lt;br /&gt;
&lt;br /&gt;
[[File:ArmitageUI.jpg|700px]]&lt;br /&gt;
&lt;br /&gt;
There are three main sections we can work with: modules, targets and tabs. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Modules:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Targets:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tabs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Example Attack with Armitage ==&lt;br /&gt;
&lt;br /&gt;
Afterwards we will show an example attack with the Armitage GUI.&lt;br /&gt;
&lt;br /&gt;
=== Network Discovery with NMAP ===&lt;br /&gt;
&lt;br /&gt;
Start with an NMAP &#039;Intense Scan&#039; 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. &lt;br /&gt;
&lt;br /&gt;
[[File:Armitage04.PNG]] &lt;br /&gt;
&lt;br /&gt;
Afterwards detected hosts will be shown in your workspace:&lt;br /&gt;
&lt;br /&gt;
[[File:Armitage05.PNG]]&lt;br /&gt;
&lt;br /&gt;
You can check services with a right click on the host:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace03.PNG]]&lt;br /&gt;
&lt;br /&gt;
=== Attack ProFTPD Service ===&lt;br /&gt;
&lt;br /&gt;
For our demonstration we will use the Exploit CVE-2015-3306, a well known vulnerability in the mod_copy module of ProFTPD.&lt;br /&gt;
&lt;br /&gt;
With a right click on the host, the Exploit &#039;proftpd_mod_copy&#039; can be selected and executed:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace04.PNG]]&lt;br /&gt;
&lt;br /&gt;
After a successful attack the host picture will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace05.PNG]]&lt;br /&gt;
&lt;br /&gt;
Now we can use the active session for a remote shell:&lt;br /&gt;
&lt;br /&gt;
[[File:Workspace06.PNG]]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* https://www.redteamsecure.com/&lt;br /&gt;
* https://www.offensive-security.com/metasploit-unleashed/&lt;br /&gt;
* http://www.proftpd.org/docs/&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>BKongo</name></author>
	</entry>
</feed>