<?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 Mohamed El-Hamadi on Medium]]></title>
        <description><![CDATA[Stories by Mohamed El-Hamadi on Medium]]></description>
        <link>https://medium.com/@cyberesident?source=rss-9dc2dc4f5071------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*daQWhBCGG6smV9y5a0k0kg.jpeg</url>
            <title>Stories by Mohamed El-Hamadi on Medium</title>
            <link>https://medium.com/@cyberesident?source=rss-9dc2dc4f5071------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 15:05:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cyberesident/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[Google Dorking for Cyber Investigations]]></title>
            <link>https://medium.com/@cyberesident/google-dorking-for-cyber-investigations-82d22196c293?source=rss-9dc2dc4f5071------2</link>
            <guid isPermaLink="false">https://medium.com/p/82d22196c293</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[investigation]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cybercrime]]></category>
            <dc:creator><![CDATA[Mohamed El-Hamadi]]></dc:creator>
            <pubDate>Mon, 17 Apr 2023 11:49:03 GMT</pubDate>
            <atom:updated>2023-04-17T12:49:50.811Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tuYTyrXORsZ522DUcUdEcQ.png" /></figure><blockquote>“If you know the enemy and know yourself, you need not fear the result of a hundred battles. If you know yourself but not the enemy, for every victory gained you will also suffer a defeat. If you know neither the enemy nor yourself, you will succumb in every battle.” — Sun Tzu, The Art of War</blockquote><h3><strong>What is dorking?</strong></h3><p>Google dorks are special search queries that can be used to identify vulnerable websites or web applications. The most common use of dorking is that hackers use Google dorks to find specific information or vulnerable targets for exploitation.</p><h3><strong>Blue Dorking</strong></h3><p>Security teams need to be aware of the usage of dorks and try to see how their assets are exposed on the internet themselves.</p><p>It can also be leveraged to conduct investigations against threat actors’ domains. By using complex search queries and refining the search results, investigators can potentially uncover sensitive information and hidden online assets associated with the threat actors. This method can aid in identifying potential targets, patterns, or weaknesses in the threat actor’s infrastructure, and could be used as a starting point for further investigation or analysis.</p><h3><strong>Getting to the nitty-gritty</strong></h3><p>Google dorking involves using advanced search operators to refine search results on Google and other search engines. Operators like “site:”, “intitle:”, “inurl:”, “filetype:”, and “-” can be used to narrow down search results to a specific set of information. By combining these operators and refining the search queries, users can obtain highly targeted search results for cyber investigations or other research purposes.</p><p>Example search query using Google dorking:-</p><pre>site:malicious.com filetype:pdf leaks</pre><p>This query will return all PDF files with the keyword “leaks” on the website “example.com”. Try it on your favorite shady sites.</p><p>Remember that Google dorking can be a powerful tool in cyber investigations, but it must be used responsibly and ethically to avoid any legal or ethical implications.</p><p>Another example:-</p><pre>site:*.example.com intext:admin inurl:sql -site:example.com</pre><ul><li>“site:*.example.com”: — Limits the search to all subdomains of “example.com”.</li><li>“intext:admin” — Searches for pages that contain the word “admin” within the body text.</li><li>“inurl:sql” — Searches for pages that have “sql” in their URL.</li><li>“-site:example.com” — Excludes any pages from the main “example.com” domain.</li></ul><p>This search query looks for web pages that have the words “admin” in their content and “sql” in their URL, but only on subdomains of “example.com” and not including “example.com” in results.</p><p><strong>The cyber space is your oyster</strong></p><p>Don’t limit yourself to these queries and try different combinations of search operators and keywords.</p><p>Here are more operators you can use in your future endeavors:</p><pre>site: - Limits the search results to a specific website or domain.<br>inurl: - Searches for a specific word or phrase within the URL of a page.<br>intext: - Searches for a specific word or phrase within the body text of a page.<br>intitle: - Searches for a specific word or phrase within the title of a page.<br>filetype: - Searches for a specific file type (e.g., PDF, DOC) within a website or domain.<br>link: - Searches for pages that link to a specific URL.<br>cache: - Displays the cached version of a page.<br>info: - Provides information about a website or domain, including cached versions and related pages.<br>define: - Provides the definition of a word or phrase.<br>related: - Searches for pages related to a specific URL.<br>allintext: - Searches for multiple keywords or phrases within the body text of a page.<br>allintitle: - Searches for multiple keywords or phrases within the title of a page.<br>allinurl: - Searches for multiple keywords or phrases within the URL of a page.<br>author: - Searches for pages written by a specific author.<br>ext: - Searches for pages with a specific file extension.<br>inanchor: - Searches for a specific word or phrase within the anchor text of a link.<br>phonebook: - Searches for phone numbers associated with a specific person or business.<br>numrange: Searches for pages containing numbers within a specified range.<br>map: - Displays a map of a specific location.</pre><p><strong>Google Hacking Database</strong></p><p><a href="https://www.exploit-db.com/google-hacking-database">The Google Hacking Database</a> (GHDB) is a collection of google dorks with more queries added everyday. You can find more advanced queries there.</p><p><strong>I hope you have learned something new today.<br>“Thanks for reading. If you liked this article, make sure to </strong><a href="https://medium.com/@cyberesident/subscribe"><strong>follow</strong></a><strong> for more! and give it some claps from 1 to 50”</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82d22196c293" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BGP, ASN: Know your attack surface]]></title>
            <link>https://medium.com/@cyberesident/bgp-asn-know-your-attack-surface-9b3d9faa95fe?source=rss-9dc2dc4f5071------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b3d9faa95fe</guid>
            <category><![CDATA[networking-tips]]></category>
            <category><![CDATA[bgp]]></category>
            <category><![CDATA[autonomous-system]]></category>
            <category><![CDATA[network]]></category>
            <category><![CDATA[attack-surface]]></category>
            <dc:creator><![CDATA[Mohamed El-Hamadi]]></dc:creator>
            <pubDate>Sat, 15 Apr 2023 15:33:45 GMT</pubDate>
            <atom:updated>2023-04-15T15:33:45.152Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*KvPOu5Jze0dIxgMg4Tblow.jpeg" /></figure><p>Getting information on the <strong>network range</strong> is essential to all security professionals. Whether you are on the defensive side like a SOC Analyst, or on the offense like a Penetration tester or a Bug Bounty Hunter, the attack surface is a must know.</p><p>We are going to use Amass and BGP Hurricane to get our desired IP ranges. So, push through the boring stuff :)</p><p><strong>Border Gateway Protocol (BGP)</strong></p><p>When two or more networks connect to each other to share traffic, BGP helps a router choose the best connection option among those available in nearest distance geographically. The protocol enables the networks to exchange routing information between autonomous systems (AS).</p><p><strong>Autonomous System Numbers (ASNs)</strong></p><p>A network operator like an ISP or cloud providers may manage a set of IP address ranges that are governed by a consistent routing policy. In other words, the network operator may define a specific network range for a certain organization. This is known as Autonomous System. An AS number is a a unique number assigned to a Network. This unique number is known globally.</p><p><strong>Connecting the Dots….</strong></p><p>Let’s get to the juice. I am choosing Tesla as example since it has bug bounty program.</p><blockquote>Note that the information shared here is for educational purposes only. The readers are responsible for using the information shared in this blog at their own risk and should exercise caution and ethical behavior.</blockquote><p>The first method to get the IP ranges of Tesla is by using a service like <a href="https://bgp.he.net/">https://bgp.he.net</a>. There are many other services, I just prefer this one.</p><p>All the service needs to provide you with juicy stuff, is just the organization’s name or domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wpBPXWcHzmd3TYqgbr3JoQ.png" /></figure><p>As you can see, it provided us with different ASNs and ranges, but note that some of the are false positive. We are interested in the ASNs belonging to Tesla Motors, Inc. Let’s click on <a href="https://bgp.he.net/AS394161">AS394161</a>, then choose <a href="https://bgp.he.net/AS394161#_prefixes">Prefixes v4</a> from options above.</p><p>Voila</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-nh6im11te5Yw1MLOtG1jA.png" /></figure><p>Now you have IP ranges belonging to Tesla.</p><p>But wait! What if you also want the domains on these ranges?</p><p>We can use <a href="https://github.com/owasp-amass/amass">Amass</a> to obtain domain name by providing the ASN, as following:</p><pre>amass intel -active -asn 394161</pre><p>You can also use Amass to get the ASNs:</p><pre>amass intel -org &#39;Tesla&#39;</pre><p>Just be aware that returned data may contain false positive.</p><p><em>Please </em><a href="https://medium.com/@cyberesident/subscribe"><em>subscribe </em></a><em>if you like to see more content.</em></p><p>Until next time 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b3d9faa95fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>