<?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 Ahmed Hussein on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Hussein on Medium]]></description>
        <link>https://medium.com/@M3gz0X?source=rss-ac78b3630d11------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Cp4hCYcgYVL2ClsliIqHUw.jpeg</url>
            <title>Stories by Ahmed Hussein on Medium</title>
            <link>https://medium.com/@M3gz0X?source=rss-ac78b3630d11------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:33:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@M3gz0X/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[Recon Methodology]]></title>
            <link>https://medium.com/@M3gz0X/recon-methodology-641b1d6370af?source=rss-ac78b3630d11------2</link>
            <guid isPermaLink="false">https://medium.com/p/641b1d6370af</guid>
            <dc:creator><![CDATA[Ahmed Hussein]]></dc:creator>
            <pubDate>Thu, 05 Dec 2024 00:56:54 GMT</pubDate>
            <atom:updated>2024-12-05T16:55:57.471Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>بسم الله الرحمن الرحيم</blockquote><p><strong>Ever wondered how hackers uncover hidden corners of a website? Subdomain enumeration and reconnaissance is the key. Are you ready to unlock the mysteries of the web?</strong></p><p>&gt;what is the recon?</p><p>Recon (reconnaissance) is the process of gathering all possible information about a specific target, such as a system, network, or organization, that you want to hack, including its location, IP address, open ports, services, subdomains, directories, and more, to understand its structure and identify potential vulnerabilities.</p><p>first of all I will talk only about web applications and how to gather all possible information about the web applications to start hacking.</p><p>&gt;Subdomain Enumerations:</p><p>Every domain has many subdomains</p><p>1-<a href="https://subdomainfinder.c99.nl/">https://subdomainfinder.c99.nl/</a> this site is great to gather subdomain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8pBd02UYtOxsQ4XzHyr81A.png" /></figure><p>as you can see in the image there are 12060 subdomains for google.com and the site provides more information about the domain, also it gives you option for copy all live subdomains.</p><p>2-<a href="https://securitytrails.com/">https://securitytrails.com/</a> is great site for enumerating possible subdomains about any domain or organization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GDvhTG8AS5Eb9ImwJvYDKw.png" /></figure><p>as you can see in the image there are more than 10K subdomain for google.com and more information like AAAA records.</p><p>3-<a href="https://shrewdeye.app/">https://shrewdeye.app/</a> welcome to ShrewdEye, your partner in intelligent information gathering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zjeXwYuWkcz_agDFSqqxxQ.png" /></figure><p>as you can see there are 85383 subdomains and you can install in text file.</p><p>4- <strong>amass</strong> tool (<a href="https://github.com/owasp-amass/amass">https://github.com/owasp-amass/amass</a>)</p><p>we can get the ASN number for the organization as:</p><pre>amass intel -active -asn &quot;google&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*-4-16Lvdkn-qVuzqyuYRUA.png" /></figure><p>after we got the ASN for google use this command:</p><pre>amass intel -active -asn 36040</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*9oOkXp6yLsgOWTmdEz-jmw.png" /><figcaption>domains related to google</figcaption></figure><p>if you got CIDR for organization and need use amass to get subdomains related to each CIDR:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*gr3bGUBP2o4gE5ySTcp6sA.png" /></figure><pre>amass intel -active -cidr 64.15.118.0/23 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*092jVQ77qvWcJtFKKrHdAA.png" /><figcaption>domain related to CIDR</figcaption></figure><p>5-<strong>assetfinder</strong> tool (<a href="https://github.com/tomnomnom/assetfinder">https://github.com/tomnomnom/assetfinder</a>)</p><pre>echo &quot;google.com&quot; | assetfinder --subs-only</pre><p>Used — subs-only to get only subdomains and delete<br>emails or IPs any anything else</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*NPybkeStRcJE0r33meomyg.png" /><figcaption>subdomains using assetfinder tool</figcaption></figure><p>6-<strong>subfinder</strong> tool (<a href="https://github.com/projectdiscovery/subfinder.git">https://github.com/projectdiscovery/subfinder.git</a>)</p><p>Subfinder is one of the most powerful tools but with provided API-keys</p><p>go to</p><pre>nano /home/kali/.config/subfinder/provider-config.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*mI-ENJD0hp4EoHnJpGKTzQ.png" /><figcaption>api keys</figcaption></figure><p>and add API keys from sites.</p><p>then we can start :</p><pre>subfinder -d google.com -all --recursive</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HqrUXqZByDG00OVk7aA2tw.png" /><figcaption>subdomains using subfinder tool</figcaption></figure><p>7-<strong>Virtual Host</strong></p><p>We will fuzz the IP to know all subdomains hosted<br>on it and then try to find that hidden subdomain</p><p>using tool called ffuf (<a href="https://github.com/ffuf/ffuf.git">https://github.com/ffuf/ffuf.git</a>)</p><p>first we need list of subdomains to fuzz and guess<br>from it you can download wordlist from<br>▪ (<a href="https://github.com/danielmiessler/SecLists">https://github.com/danielmiessler/SecLists</a>)</p><p>We will try to fuzz site called ffuf.me</p><pre>ffuf -u &quot;http://ffuf.me&quot; -w subdomains-top1million-110000.txt -H &quot;Host: FUZZ.ffuf.me&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-3YCcTq4HUQWzstWD_88ow.png" /></figure><p>After doing that you will find large number of fake subdomains<br>but let’s filter them by -fs 1495 as that is the size of fake<br>subdomain</p><pre>ffuf -u &quot;http://ffuf.me&quot; -w subdomains-top1million-110000.txt -H &quot;Host: FUZZ.ffuf.me&quot; -fs 1495</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3V_GaywEmG5PEBDaOeQfw.png" /></figure><p>After while you will find subdomain called<br>redhat then the full subdomain is <strong>redhat.ffuf.me</strong></p><p>Let’s browse it in firefox and see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jdtele7xaStq3KMBkrLkvQ.png" /></figure><p>Observe you can’t get into the site because it is<br>private for Company Clients</p><p>What to do …<br>▪ First you need to know the IP for the domain<br>ffuf.me<br>▪ Once you have the IP then go to /etc/hosts and put<br>IP for redhat.ffuf.me and see</p><p>to know the IP for ffuf.me :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EJhp2e1tYvoR-oMyJtmRvQ.png" /></figure><p>then take this IP and open<br><strong><em># nano /etc/hosts</em></strong><br>Then put the line<br><strong>159.65.212.111 redhat.ffuf.me</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QQ641rw34txHLYwGRS6S_w.png" /></figure><p>Now save the file and go back to firefox and let’s<br>try to access<br><strong>redhat.ffuf.me</strong><br>It will work properly.</p><p>I think you have collected all possible subdomains and put them in file called subdomains.txt then run the following command to remove all duplicates</p><pre>cat subdomains.txt | sort -u &gt;&gt; uniq_subs.txt</pre><blockquote>سبحانك اللهم وبحمدك لا اله الا انت استغفرك واتوب اليك</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=641b1d6370af" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>