<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>red-team - Hamradio.my</title>
	<atom:link href="https://hamradio.my/tag/red-team-2/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Amateur Radio, Tech Insights and Product Reviews</description>
	<lastBuildDate>Wed, 02 Jul 2025 13:16:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://hamradio.my/wp-content/uploads/2026/02/cropped-cropped-image-removebg-preview-3-32x32.png</url>
	<title>red-team - Hamradio.my</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Armitage + Metasploit in Docker</title>
		<link>https://hamradio.my/2025/07/armitage-metasploit-in-docker/</link>
					<comments>https://hamradio.my/2025/07/armitage-metasploit-in-docker/#respond</comments>
		
		<dc:creator><![CDATA[9M2PJU]]></dc:creator>
		<pubDate>Wed, 02 Jul 2025 12:54:53 +0000</pubDate>
				<category><![CDATA[cachyos]]></category>
		<category><![CDATA[cybersecurity]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[penetration testing]]></category>
		<category><![CDATA[arch-linux]]></category>
		<category><![CDATA[armitage]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[ethical-hacking]]></category>
		<category><![CDATA[hacking-tools]]></category>
		<category><![CDATA[infosec]]></category>
		<category><![CDATA[offensive-security]]></category>
		<category><![CDATA[penetration-testing]]></category>
		<category><![CDATA[red-team]]></category>
		<guid isPermaLink="false">https://hamradio.my/?p=8186</guid>

					<description><![CDATA[<p>If you&#8217;re into penetration testing, you&#8217;ve probably used Metasploit — the Swiss Army knife of offensive security. Pair it with Armitage, and you get a powerful GUI front-end for visualizing exploits, managing sessions, and collaborating with your team. But installing Armitage today is a mess. It’s outdated, full of dependencies, and prone to breaking. So [&#8230;]</p>
<p>The post <a href="https://hamradio.my/2025/07/armitage-metasploit-in-docker/">Armitage + Metasploit in Docker</a> appeared on <a href="https://hamradio.my">Hamradio.my - Amateur Radio, Tech Insights and Product Reviews</a> by <a href="https://hamradio.my/author/9m2pju/">9M2PJU</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading"></h1>



<p class="wp-block-paragraph">If you&#8217;re into <strong>penetration testing</strong>, you&#8217;ve probably used <strong><a>Metasploit</a></strong> — the Swiss Army knife of offensive security. Pair it with <strong><a>Armitage</a></strong>, and you get a powerful GUI front-end for visualizing exploits, managing sessions, and collaborating with your team.</p>



<p class="wp-block-paragraph">But installing Armitage today is a mess. It’s outdated, full of dependencies, and prone to breaking.</p>



<p class="wp-block-paragraph">So here’s the fix: <strong>Run Metasploit + Armitage in Docker</strong>, either with a one-liner or a full-blown Docker Compose setup — and make it work with X11 GUI even on modern distros like <strong>CachyOS</strong>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2699.png" alt="⚙" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Tools Used</h2>



<ul class="wp-block-list">
<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f433.png" alt="🐳" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>Docker</strong></li>



<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9f0.png" alt="🧰" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong><a href="https://hub.docker.com/r/mirogula/kali_linux_metasploit_armitage">mirogula/kali_linux_metasploit_armitage</a></strong></li>



<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f5a5.png" alt="🖥" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <strong>X11</strong> for GUI forwarding</li>



<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9ea.png" alt="🧪" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Tested on <strong>CachyOS (Arch-based)</strong></li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f680.png" alt="🚀" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Quick Start with <code>docker run</code></h2>



<p class="wp-block-paragraph">Run this if you want it fast:</p>



<h3 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 1. Install <code>xhost</code></h3>



<pre class="wp-block-code"><code>sudo pacman -S xorg-xhost
</code></pre>



<h3 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 2. Allow local Docker GUI access</h3>



<pre class="wp-block-code"><code>xhost +local:docker
</code></pre>



<p class="wp-block-paragraph">For fish shell:</p>



<pre class="wp-block-code"><code>set -x DISPLAY :0
</code></pre>



<h3 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 3. Run Armitage in Docker</h3>



<pre class="wp-block-code"><code>docker run --rm \
  --name armitage \
  --hostname="kali_armitage" \
  -e DISPLAY=$DISPLAY \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v mg_metasploit_postgresql_data:/var/lib/postgresql \
  -v mg_metasploit_framework_dir:/usr/share/metasploit-framework \
  mirogula/kali_linux_metasploit_armitage
</code></pre>



<p class="wp-block-paragraph">If everything is set up right, <strong>Armitage GUI will appear</strong> and connect to the bundled Metasploit framework + PostgreSQL.</p>



<figure class="wp-block-image size-large"><img  title="" fetchpriority="high" decoding="async" width="1024" height="343" src="https://hamradio.my/wp-content/uploads/2025/07/image-2-1024x343.png"  alt="image-2-1024x343 Armitage + Metasploit in Docker"  class="wp-image-8189" srcset="https://hamradio.my/wp-content/uploads/2025/07/image-2-1024x343.png 1024w, https://hamradio.my/wp-content/uploads/2025/07/image-2-300x100.png 300w, https://hamradio.my/wp-content/uploads/2025/07/image-2-768x257.png 768w, https://hamradio.my/wp-content/uploads/2025/07/image-2.png 1284w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f433.png" alt="🐳" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Full Setup with Docker Compose (Recommended)</h2>



<p class="wp-block-paragraph">For a more reusable and clean lab, use this:</p>



<h3 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4c4.png" alt="📄" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <code>docker-compose.yml</code></h3>



<pre class="wp-block-code"><code>services:
  armitage:
    image: mirogula/kali_linux_metasploit_armitage
    container_name: armitage
    hostname: kali_armitage
    environment:
      - DISPLAY=${DISPLAY}
    volumes:
      - /tmp/.X11-unix:/tmp/.X11-unix
      - mg_metasploit_postgresql_data:/var/lib/postgresql
      - mg_metasploit_framework_dir:/usr/share/metasploit-framework
    network_mode: host
    restart: unless-stopped
    stdin_open: true
    tty: true

volumes:
  mg_metasploit_postgresql_data:
  mg_metasploit_framework_dir:
</code></pre>



<h3 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/25b6.png" alt="▶" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Launch:</h3>



<pre class="wp-block-code"><code>xhost +local:docker
docker compose up -d
</code></pre>



<figure class="wp-block-image size-large"><img  title="" decoding="async" width="1024" height="576" src="https://hamradio.my/wp-content/uploads/2025/07/image-3-1024x576.png"  alt="image-3-1024x576 Armitage + Metasploit in Docker"  class="wp-image-8191" srcset="https://hamradio.my/wp-content/uploads/2025/07/image-3-1024x576.png 1024w, https://hamradio.my/wp-content/uploads/2025/07/image-3-300x169.png 300w, https://hamradio.my/wp-content/uploads/2025/07/image-3-768x432.png 768w, https://hamradio.my/wp-content/uploads/2025/07/image-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f6e0.png" alt="🛠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Troubleshooting</h2>



<h3 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/274c.png" alt="❌" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <code>Can't connect to X11 window server using ':0'</code></h3>



<p class="wp-block-paragraph"><strong>Fix</strong>: You didn’t run <code>xhost +local:docker</code>, or <code>$DISPLAY</code> is not set.</p>



<pre class="wp-block-code"><code>xhost +local:docker
echo $DISPLAY  # should output :0
</code></pre>



<p class="wp-block-paragraph">In fish shell:</p>



<pre class="wp-block-code"><code>set -x DISPLAY :0
</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Test Your X11 Setup</h3>



<p class="wp-block-paragraph">Before launching Armitage, test with:</p>



<pre class="wp-block-code"><code>docker run --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix archlinux xeyes
</code></pre>



<p class="wp-block-paragraph">If <code>xeyes</code> appears, GUI forwarding works.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9ef.png" alt="🧯" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Reset the Lab</h2>



<p class="wp-block-paragraph">To delete everything and start fresh:</p>



<pre class="wp-block-code"><code>docker compose down -v
</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9f0.png" alt="🧰" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Volumes Used</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Volume Name</th><th>Mounted Inside Container</th></tr></thead><tbody><tr><td><code>mg_metasploit_postgresql_data</code></td><td><code>/var/lib/postgresql</code></td></tr><tr><td><code>mg_metasploit_framework_dir</code></td><td><code>/usr/share/metasploit-framework</code></td></tr></tbody></table></figure>



<p class="wp-block-paragraph">These keep your sessions and configs between runs.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9ea.png" alt="🧪" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Tested on</h2>



<ul class="wp-block-list">
<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> CachyOS (Arch-based)</li>



<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> KDE Plasma (X11 session)</li>



<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Docker 25+</li>
</ul>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://hamradio.my/2025/07/armitage-metasploit-in-docker/">Armitage + Metasploit in Docker</a> appeared on <a href="https://hamradio.my">Hamradio.my - Amateur Radio, Tech Insights and Product Reviews</a> by <a href="https://hamradio.my/author/9m2pju/">9M2PJU</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hamradio.my/2025/07/armitage-metasploit-in-docker/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
