<?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 Elghazaly on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Elghazaly on Medium]]></description>
        <link>https://medium.com/@elghzaly?source=rss-1f1234ec7267------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*o4sG9a8M0593EFAaIE4nzw.jpeg</url>
            <title>Stories by Ahmed Elghazaly on Medium</title>
            <link>https://medium.com/@elghzaly?source=rss-1f1234ec7267------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 18:23:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@elghzaly/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[Exposing Sensitive Data via Web Cache Deception]]></title>
            <link>https://medium.com/@elghzaly/exposing-sensitive-data-via-web-cache-deception-23bc41756746?source=rss-1f1234ec7267------2</link>
            <guid isPermaLink="false">https://medium.com/p/23bc41756746</guid>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[web-cache-deception]]></category>
            <category><![CDATA[bugbounty-tips]]></category>
            <dc:creator><![CDATA[Ahmed Elghazaly]]></dc:creator>
            <pubDate>Sat, 14 Jun 2025 18:51:04 GMT</pubDate>
            <atom:updated>2025-06-14T18:59:43.402Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone, Today I’m sharing an impactful vulnerability I discovered on bug bounty program at hackerone, The bug? A classic case of Web Cache Deception — but with real consequences, including exposure of email addresses, billing data, and subscription information through a cached response.</p><p>Let’s walk through how a small tweak to a URL led to data leakage, and how you can spot and prevent similar issues in your own apps.</p><h3>A Quick Word About Web Cache Deception</h3><p>Web Cache Deception is a technique where attackers trick caching servers (like CDNs or proxies) into caching sensitive content that should <strong>never</strong> be cached. The deception happens by adding a fake file extension (like .js, .css, or .jpg) to a sensitive endpoint URL.</p><p>If the server doesn’t validate that URL properly and responds with user-specific content, the cache may store that response. If another user later visits the same manipulated URL, they might receive the <strong>cached version of someone else’s private data</strong>.</p><h3>The Discovery</h3><p>While navigating the authenticated endpoint at:<br><a href="https://console.target.com/app/settings/profile">https://console.target.com/app/settings/profile</a><br>I observed that it returned a JSON response containing user-specific data such as:</p><ul><li>Authenticated user’s email address</li><li>Billing account ID and subscription plan</li><li>Console configuration settings</li><li>Various internal metadata that should not be publicly accessible</li></ul><p>As expected, this data was only accessible when a valid session was active.</p><p>However, by appending a semicolon followed by a fake file extension to the same path:<br><a href="https://console.target.com/app/settings/profile;test.js">https://console.target.com/app/settings/profile;test.js</a><br>the server still responded with the same sensitive JSON payload. This behavior introduced a Web Cache Deception vulnerability, as intermediary caching systems could mistakenly interpret this as a static asset and cache it. As a result, there was a risk that the sensitive user data could be served to unauthorized parties.</p><p><strong>Steps to reproduce</strong></p><ol><li>Create <strong>two accounts</strong> on <a href="https://console.target.com./">https://console.target.com.</a></li><li>Log into your own account and open <strong>Burp Suite</strong> to capture traffic.</li><li>In <strong>HTTP History</strong>, access the authenticated endpoint:</li></ol><ul><li>GET /app/settings/profile</li></ul><p>It returns a JSON response containing your account data.</p><p>4. Now change the URL to:</p><ul><li><a href="https://console.target.com/app/settings/profile;test.js">https://console.target.com/app/settings/profile;test.js</a></li></ul><p>5. You’ll notice in the response headers:</p><p><strong>cf-cache-status: HIT</strong></p><p>This confirms that the response was <strong>cached</strong> and could now be served to unauthorized users.</p><p>6. This new URL still returns the <strong>same sensitive JSON</strong> data.</p><p>7. Share the link with the <strong>victim</strong>. When they open it while logged in, the <strong>response is cached</strong> under that fake extension.</p><p>8.Revisit the same URL again — the <strong>cached response</strong> now contain the <strong>victim’s data</strong>, exposing PII like email, billing info, and settings.</p><p>I reported this vulnerability via HackerOne, but the submission was marked as a duplicate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*yxPS8Agj5t579zfasKlEiA.png" /></figure><h3>Resources:</h3><ol><li><a href="https://book.hacktricks.xyz/pentesting-web/cache-deception">https://book.hacktricks.xyz/pentesting-web/cache-deception</a></li><li><a href="https://bxmbn.medium.com/how-i-test-for-web-cache-vulnerabilities-tips-and-tricks-9b138da08ff9">https://bxmbn.medium.com/how-i-test-for-web-cache-vulnerabilities-tips-and-tricks-9b138da08ff9</a></li><li><a href="https://portswigger.net/research/gotta-cache-em-all">https://portswigger.net/research/gotta-cache-em-all</a></li><li><a href="https://www.tenable.com/blog/identifying-web-cache-poisoning-and-web-cache-deception-how-tenable-web-app-scanning-can-help">https://www.tenable.com/blog/identifying-web-cache-poisoning-and-web-cache-deception-how-tenable-web-app-scanning-can-help</a></li><li><a href="https://blog.cloudflare.com/understanding-our-cache-and-the-web-cache-deception-attack/">https://blog.cloudflare.com/understanding-our-cache-and-the-web-cache-deception-attack/</a></li></ol><p>Thanks for reading!</p><p><strong>Follow me </strong><a href="https://www.linkedin.com/in/elghzaly/"><strong>linkedin</strong></a><strong> </strong><a href="https://x.com/0xghazaly"><strong>twitter</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23bc41756746" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Account Takeover via Facebook OAuth Misconfiguration]]></title>
            <link>https://medium.com/@elghzaly/account-takeover-via-facebook-oauth-misconfiguration-f5eb1a943873?source=rss-1f1234ec7267------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5eb1a943873</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[account-take-over]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[facebook-oauth]]></category>
            <dc:creator><![CDATA[Ahmed Elghazaly]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 20:48:54 GMT</pubDate>
            <atom:updated>2025-06-13T20:48:54.769Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone, Today I’m excited to share a bug I discovered in a Bugcrowd VDP target involving <strong>Facebook login</strong> — and it led to <strong>full account takeover</strong> without any victim interaction. Grab your coffee and let’s dive in.</p><h3><strong>A quick word about oAuth</strong></h3><p>OAuth is a widely-used authorization framework that allows third-party applications to grant limited access to user accounts without sharing credentials. It’s what enables you to “Log in with Facebook”, “Sign in with Google”, etc. While OAuth improves user experience and security, it introduces risks when developers assume identity data (like email) is trustworthy without additional validation.</p><p>Today, I’m sharing a Facebook OAuth misconfiguration that led to full account takeover without any victim interaction — exploited entirely from the frontend.</p><h3><strong>Finding the Flaw</strong></h3><p>While reviewing the login page of the target application, I noticed the classic <strong>“Login with Facebook”</strong> option. This immediately piqued my interest — OAuth implementations often seem secure, but that surface hides a surprising number of edge cases and assumptions.</p><p>I clicked the button and authenticated via Facebook. As expected, Facebook presented the <strong>“Edit Access”</strong> screen, allowing me to customize the data shared with the target app.</p><p>I clicked <strong>“Edit Access”</strong> and unchecked the permission to share my <strong>email address</strong> with the application. Then I clicked <strong>“Continue”</strong> to finalize the login.</p><h3>Exploiting the Logic</h3><p>Since the app didn’t receive my email from Facebook, it redirected me back and prompted me to <strong>manually enter an email address</strong>.</p><p>So, I typed in: victim@example.com<br> And… that was it. No verification, No confirmation email</p><p>The app <strong>immediately logged me in as the victim</strong></p><p><strong>Steps to reproduce:</strong><br>1. Navigate to <a href="http://example.com/">example.com</a> and initiate the login process using Facebook.<br>2. When prompted for permissions, deny access to your email address.<br>3. The site will then ask you to manually enter an email address.<br>4. Input the victim’s email, and you’ll be granted full access to their account — no password or verification required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*whEJnOwA-sBhxR3tlBfsBA.png" /></figure><p>Thanks for reading!</p><p><strong>Follow me </strong><a href="https://www.linkedin.com/in/elghzaly/"><strong>linkedin</strong></a><strong> </strong><a href="https://x.com/0xghazaly"><strong>twitter</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5eb1a943873" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypassing Subscription Expiry with Client-Side Time Manipulation]]></title>
            <link>https://medium.com/@elghzaly/bypassing-subscription-expiry-with-client-side-time-manipulation-d048fe0a3b3f?source=rss-1f1234ec7267------2</link>
            <guid isPermaLink="false">https://medium.com/p/d048fe0a3b3f</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[business-logic-flaw]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <dc:creator><![CDATA[Ahmed Elghazaly]]></dc:creator>
            <pubDate>Mon, 30 Dec 2024 15:04:05 GMT</pubDate>
            <atom:updated>2024-12-30T18:12:07.282Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LLVSgDG0H9pgWV56LTNgIQ.png" /></figure><p>Let’s dive straight to it. While exploring a subscription-based platform, I stumbled upon an intriguing flaw in how subscription expiration was being validated. Platforms like this often rely on server-side timestamps to enforce subscription limits, but what happens when the validation depends on the client-side clock instead?</p><h3>The Scenario</h3><p>The platform offers time-bound subscription plans (e.g., monthly access). As the subscription expiration date approaches, users are expected to renew their plan to continue accessing the platform.</p><p>Curious about how the subscription expiration was handled, I wondered: <em>Is the validation entirely server-side, or could it be influenced by the local system clock on my device?</em></p><h3>Steps to Exploit</h3><ol><li><strong>Start with a valid subscription:</strong> I purchased a one-month subscription voucher.</li><li><strong>Wait for expiration:</strong> As the expiration date approached, I prepared to test my theory.</li><li><strong>Manipulate the system clock:</strong></li></ol><ul><li>Opened my device’s date and time settings.</li><li>Disabled the <strong>“Set time automatically” </strong>option.</li><li>set the clock back.</li></ul><p><strong>4. Revisit the platform:</strong> After changing the system time, I logged back in. To my surprise, the subscription still appeared active despite the original expiration date having passed.</p><h3>Root Cause</h3><p>The vulnerability originates from the reliance on <strong>client-side time validation</strong>, which is inherently insecure. Any data or processes controlled by the client are susceptible to manipulation, making it critical to shift validation to a secure server-side process.</p><p>I reported this issue to an external bug bounty program, and I was excited about the possibility of earning my first bounty</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*3LCOW3_7lxnsWZlDqNVVFA.png" /></figure><p>Unfortunately it was deemed low impact and not eligible for a reward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Zsa1alRbmfD1k9DHaBskpA.png" /></figure><p>To be honest, the impact of this flaw may seem low in certain scenarios. In the case of manipulating the time on a device to bypass the subscription expiration, most users would likely avoid doing so. Time manipulation can cause issues with other applications that rely on the actual system time, making it impractical for everyday use.</p><p>However, there are tools and extensions that can automate time manipulation at the application level, allowing users to bypass time-based restrictions like subscription expiration without affecting the actual system time.</p><p>Thanks for reading!</p><p><a href="https://www.linkedin.com/in/elghzaly/"><strong>Linkedin</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d048fe0a3b3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introductory Networking — TryHackMe]]></title>
            <link>https://medium.com/@elghzaly/introductory-networking-tryhackme-a706c119244?source=rss-1f1234ec7267------2</link>
            <guid isPermaLink="false">https://medium.com/p/a706c119244</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Ahmed Elghazaly]]></dc:creator>
            <pubDate>Tue, 07 Mar 2023 10:16:41 GMT</pubDate>
            <atom:updated>2023-03-21T08:24:30.201Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://tryhackme.com/room/introtonetworking"><strong>Introductory Networking — TryHackMe</strong></a></p><p>An introduction to networking theory and basic networking tools</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qH5OvSiypojlHlB8m-XcCA.png" /></figure><h3><strong>#Task1:-Introduction</strong></h3><p>The aim of this room is to provide a beginner’s introduction to the basic principles of networking. Networking is a <em>massive</em> topic, so this really will just be a brief overview; however, it will hopefully give you some foundational knowledge of the topic, which you can build upon for yourself<em>.</em></p><p>The topics that we’re going to cover in this room are:</p><ul><li>The OSI Model</li><li>The TCP/IP Model</li><li>How these models look in practice</li><li>An introduction to basic networking tools</li></ul><h3>#Task2:-The OSI Model: An Overview</h3><p>The OSI (Open Systems Interconnection) model is a conceptual framework for understanding the communication between different devices in a network. It is divided into seven layers, with each layer responsible for a specific set of tasks that contribute to the end-to-end communication. The layers are as follows:</p><p><strong>7-Application Layer:</strong> This layer provides access to network services for applications. It includes protocols for email, file transfer, remote login, and other applications.</p><p><strong>6-Presentation Layer:</strong> This layer is responsible for data formatting, encryption, and compression. It ensures that data is presented in a way that is meaningful to the receiving application.</p><p><strong>5-Session Layer:</strong> This layer manages the session between two communicating devices. It sets up, maintains, and terminates sessions between applications.</p><p><strong>4-Transport Layer</strong>: This layer provides end-to-end communication between the source and destination hosts and ensures that data is reliably transferred. It includes mechanisms for error detection, retransmission of lost packets, and flow control.</p><p><strong>3-Network Layer:</strong> This layer provides logical addressing and routing services to enable data to be transferred between different networks. It is responsible for the delivery of packets across multiple network segments.</p><p><strong>2-Data Link Layer:</strong> This layer provides error-free transmission of data between adjacent devices on a network. It ensures that the data sent over the network is transmitted without errors and in the correct order,as it checks the received information to make sure that it hasn’t been corrupted during transmission,It also provides flow control and access control to the physical layer.</p><p><strong>1-Physical Layer</strong>: This is the lowest layer of the OSI model and deals with the physical transmission of data over the network. It defines the physical characteristics of the transmission medium, such as the voltage levels, cable types, connectors, and data rates.</p><p>The OSI model is a conceptual framework that helps network engineers to design, implement, and troubleshoot networks. It defines a clear set of functions and responsibilities for each layer, which helps to ensure that different devices and applications can communicate with each other in a standardized way. However, it is important to note that the OSI model is just a model, and many real-world networks do not strictly adhere to it.</p><p><strong>Questions:-</strong></p><p><strong><em>For the “Which Layer” Questions below, answer using the layer number (1–7)</em></strong></p><p>1-Which layer would choose to send data over TCP or UDP?</p><p><strong>Answer →4</strong></p><p>2-Which layer checks received information to make sure that it hasn’t been corrupted?</p><p><strong>Answer →2</strong></p><p>3-In which layer would data be formatted in preparation for transmission?</p><p><strong>Answer →2</strong></p><p>4-Which layer transmits and receives data?</p><p><strong>Answer →1</strong></p><p>5-Which layer encrypts, compresses, or otherwise transforms the initial data to give it a standardised format?</p><p><strong>Answer →6</strong></p><p>6-Which layer tracks communications between the host and receiving computers?</p><p><strong>Answer →5</strong></p><p>7-Which layer accepts communication requests from applications?</p><p><strong>Answer →7</strong></p><p>8-Which layer handles logical addressing?</p><p><strong>Answer →3</strong></p><p>9-When sending data over TCP, what would you call the “bite-sized” pieces of data?</p><p><strong>Answer →segments</strong></p><p>10-<strong>[Research]</strong> Which layer would the FTP protocol communicate with?</p><p><strong>Answer →7</strong></p><p>11-Which transport layer protocol would be best suited to transmit a live video?</p><p><strong>Answer →UDP</strong></p><h3>#Task3:-Encapsulation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ruwnuhT-9i1rFMetKc7hPg.jpeg" /></figure><p>Encapsulation is a fundamental concept in computer networking and refers to the process of wrapping data and the associated control information into a single unit, called a packet or frame, that can be transmitted across a network. Encapsulation is one of the key functions provided by the data link layer and network layer in the OSI model.</p><p>The process of encapsulation involves adding a header and a trailer to the original data at each layer of the OSI model. At the data link layer, the header contains information such as the source and destination MAC addresses, while at the network layer, the header contains the source and destination IP addresses. The trailer typically contains a checksum that can be used to detect errors in the transmitted data.</p><p>Each layer of the OSI model encapsulates data in its own format, adding its own header and trailer to the data. When the data is transmitted across the network, each layer of the receiving device’s protocol stack removes its own header and trailer before passing the data up to the next layer. This process is called decapsulation.</p><p>Encapsulation provides several benefits, including the ability to transmit data across heterogeneous networks, where different devices may use different protocols and encapsulation formats. It also allows different layers of the protocol stack to add their own information to the data, which can be used for error detection, flow control, and other purposes. Finally, encapsulation provides a modular design for networking protocols, where each layer can be developed and tested independently of the other layers.</p><p><strong>Questions:-</strong></p><p>1-How would you refer to data at layer 2 of the encapsulation process (with the OSI model)?</p><p><strong>Answer →frames</strong></p><p>2–How would you refer to data at layer 4 of the encapsulation process (with the OSI model), if the UDP protocol has been selected?</p><p><strong>Answer →</strong>datagrams</p><p>3-What process would a computer perform on a received message?</p><p><strong>Answer →</strong>de-encapsulation</p><p>4-Which is the only layer of the OSI model to add a <em>trailer</em> during encapsulation?</p><p><strong>Answer →</strong>data link</p><p>5-Does encapsulation provide an extra layer of security <strong>(Aye/Nay)</strong>?</p><p><strong>Answer →</strong>Aye</p><h3>#Task4:- The TCP/IP Model</h3><p>The TCP/IP model is a protocol suite that is used to transfer data over the internet. It consists of four layers:</p><p><strong>1-Network Access Layer:</strong> This layer is responsible for the physical transmission of data, including the encoding and decoding of data packets. It includes protocols such as Ethernet and Wi-Fi.</p><p><strong>2-Internet Layer</strong>: This layer is responsible for addressing and routing data packets across different networks. It includes the Internet Protocol (IP), which provides the logical addressing system used to identify devices on a network.</p><p><strong>3-Transport Layer: </strong>This layer provides reliable end-to-end data transmission and is responsible for segmenting and reassembling data packets. It includes protocols such as Transmission Control Protocol (TCP) and User Datagram Protocol (UDP).</p><p>4-<strong>Application Layer:</strong> This layer provides protocols that enable applications to communicate with each other over a network. It includes protocols such as Hypertext Transfer Protocol (HTTP), Simple Mail Transfer Protocol (SMTP), and File Transfer Protocol (FTP).</p><p>As mentioned earlier, TCP is a <em>connection-based</em> protocol. In other words, before you send any data via TCP, you must first form a stable connection between the two computers. The process of forming this connection is called the <em>three-way handshake</em>.</p><p>When you attempt to make a connection, your computer first sends a special request to the remote server indicating that it wants to initialise a connection. This request contains something called a <em>SYN</em> (short for <em>synchronise</em>) bit, which essentially makes first contact in starting the connection process. The server will then respond with a packet containing the SYN bit, as well as another “acknowledgement” bit, called <em>ACK</em>. Finally, your computer will send a packet that contains the ACK bit by itself, confirming that the connection has been setup successfully. With the three-way handshake successfully completed, data can be reliably transmitted between the two computers. Any data that is lost or corrupted on transmission is re-sent, thus leading to a connection which appears to be lossless.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*Dr4bpFZ1W9vhxz1czEgS_w.png" /></figure><p><strong>Questions: -</strong></p><p>1-Which model was introduced first, OSI or TCP/IP?</p><p><strong>Answer →</strong>TCP/IP</p><p>2-Which layer of the TCP/IP model covers the functionality of the Transport layer of the OSI model <strong>(Full Name)</strong>?</p><p><strong>Answe →</strong>transport</p><p>3-Which layer of the TCP/IP model covers the functionality of the Session layer of the OSI model <strong>(Full Name)</strong>?</p><p><strong>Answer →</strong>Application</p><p><strong>4-T</strong>he Network Interface layer of the TCP/IP model covers the functionality of two layers in the OSI model. These layers are Data Link, and?.. <strong>(Full Name)</strong>?</p><p><strong>Answer →</strong>physical</p><p>5-Which layer of the TCP/IP model handles the functionality of the OSI network layer?</p><p><strong>Answer →</strong>internet</p><p>6-What kind of protocol is TCP?</p><p><strong>Answer →</strong>connection-based</p><p>7-What is SYN short for?</p><p><strong>Answer →</strong>Synchronise</p><p>8-What is the second step of the three way handshake?</p><p><strong>Answer →</strong>SYN/ACk</p><p>9-What is the short name for the “Acknowledgement” segment in the three-way handshake?</p><p><strong>Answer →ACK</strong></p><h3><strong>#Task5:-Networking Tools “Ping”</strong></h3><p>At this stage, hopefully all of the theory has made sense and you now understand the basic models behind computer networking. For the rest of the room we’re going to be taking a look at some of the command line networking tools that we can use in practical applications. Many of these tools do work on other operating systems, but for the sake of simplicity, I’m going to assume that you’re running Linux for the rest of this room. The first tool that we’re going to look at will be the <strong>“ping” </strong>command.</p><p><strong>Ping</strong> is a networking utility used to test the reachability of a host on an Internet Protocol (IP) network. It sends Internet Control Message Protocol (ICMP) packets to the target host and waits for a response. The results of a ping test can indicate the amount of time it takes for data to travel between the source and destination, as well as the reliability of the connection. Ping is commonly used for troubleshooting network issues and determining the latency of a network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DiWsQAXC5OvGDMiiynutJg.png" /></figure><p><strong>Questions: -</strong></p><p>1-What command would you use to ping the bbc.co.uk website?</p><p><strong>Answer →</strong>ping bbc.co.uk</p><p>2Ping <em>muirlandoracle.co.uk</em><br>What is the IPv4 address?-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TviLVCb95x05-_O3VGdlYg.png" /></figure><p><strong>Answer →</strong>217.160.0.152</p><p>3-What switch lets you change the interval of sent ping requests?</p><p><strong>Answer →</strong>-i</p><p>4-What switch would allow you to restrict requests to IPv4?</p><p><strong>Answer →</strong>-4</p><p>5-What switch would give you a more verbose output?</p><p><strong>Answer →</strong>-v</p><h3>#Task6:-<strong>Networking Tools</strong> “Traceroute”</h3><p>Traceroute is a networking tool that tracks the path taken by a packet on an IP network from source to destination, showing the series of intermediate hosts that the packet passes through before it reaches its destination.</p><p>Traceroute works by sending a series of ICMP echo request packets with gradually increasing time-to-live (TTL) values to the target host. Each router on the path to the destination decrements the TTL value of the packet by one and then forwards it to the next router until it reaches its final destination. When the packet’s TTL value reaches zero, the router discards the packet and sends an ICMP time-exceeded message back to the sender, indicating that the packet has expired. Traceroute captures these ICMP messages to build a list of all the routers that the packet traverses on its way to the destination.</p><p>Traceroute provides useful information for network troubleshooting and performance analysis, such as the network topology, packet loss, and latency between hosts.</p><p><strong>Questions: -</strong></p><p>1-What switch would you use to specify an interface when using Traceroute?</p><p>use the following command:-”man traceroute”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4gDnIChi80d_JwoABEmr_g.png" /></figure><p>Answer →-i</p><p>2-What switch would you use if you wanted to use TCP SYN requests when tracing the route?</p><p>use the following command:-”man traceroute”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hHeSvtw-6jmcL4ssZGaO2g.png" /></figure><p>Answer →-T</p><p>3-<strong>[Lateral Thinking] </strong>Which layer of the <strong><em>TCP/IP</em></strong> model will traceroute run on by default (Windows)?</p><p>Answer →internet</p><h3>#Task7:-<strong>Networking Tools</strong> “WHOIS”</h3><p>WHOIS is a networking tool used to look up information about domain names, IP addresses, and autonomous system numbers (ASNs). It is commonly used to find the owner of a domain name, the registrar where it was registered, and other relevant contact information.</p><p>When using WHOIS, you can typically enter a domain name or IP address, and the tool will return information about that domain or IP address, including the registrar, the name servers, the registration date, and the expiration date. Some WHOIS tools also provide information about the owner of the domain or IP address, such as their name, address, and phone number.</p><p>WHOIS can be accessed through various websites or through command-line tools, depending on the operating system you are using.</p><p><strong>Questions: -</strong></p><p>1-What is the registrant postal code for facebook.com?</p><p><strong>Perform a whois search on </strong><strong>facebook.com</strong></p><p>use the following command:-<strong>”whois facebook.com”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*8pd28YreDL-9OeKBP1v5fg.jpeg" /></figure><p><strong>Answer →</strong>94025</p><p>2-When was the facebook.com domain first registered (Format: DD/MM/YYYY)?</p><p><strong>Perform a whois search on </strong><strong>facebook.com</strong></p><p>use the following command:-<strong>”whois facebook.com”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cAS_d31f0dzRplk1qLKihA.jpeg" /></figure><p><strong>Answer →</strong>29/03/1997</p><p>3-Which city is the registrant based in?</p><p><strong>Perform a whois search on </strong><strong>microsoft.com</strong></p><p>use the following command:-<strong>”whois microsoft.com”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*Ve_GXQws_-gM8_0IFUHeUA.jpeg" /></figure><p><strong>Answer →</strong>Redmond</p><p>4-<strong>[OSINT] </strong>What is the name of the golf course that is near the registrant address for microsoft.com?</p><p>this question related to OSINT (Open Source Intelligence)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*B-TlqATgnsKoXV2w2AKCkA.png" /></figure><p><strong>Answer →</strong>Bellevue Golf Course</p><p>5-What is the registered Tech Email for microsoft.com?</p><p><strong>Perform a whois search on </strong><strong>microsoft.com</strong></p><p>use the following command:-<strong>”whois microsoft.com”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*rWeGCDrp2FwhYnpNahrvQw.jpeg" /></figure><p><strong>Answer →msnhst@microsoft.com</strong></p><h3>#Task8:-<strong>Networking Tools</strong> “Dig”</h3><p>When you visit a website in your web browser this all happens automatically, but we can also do it manually with a tool called dig . Like ping and traceroute, dig should be installed automatically on Linux systems.</p><p>Dig allows us to manually query recursive DNS servers of our choice for information about domains:<br>dig &lt;domain&gt; @&lt;dns-server-ip&gt;</p><p>It is a very useful tool for network troubleshooting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qz9FjwoZoONsqtBSHHUmFw.png" /></figure><p>Another interesting piece of information that dig gives us is the TTL (Time To Live) of the queried DNS record. As mentioned previously, when your computer queries a domain name, it stores the results in its local cache. The TTL of the record tells your computer when to stop considering the record as being valid — i.e. when it should request the data again, rather than relying on the cached copy.</p><p><strong>Questions: -</strong></p><p>1-What is DNS short for?</p><p><strong>Answer →domain name system</strong></p><p>2-What is the first type of DNS server your computer would query when you search for a domain?</p><p><strong>Answer →</strong>recursive</p><p>3-What type of DNS server contains records specific to domain extensions (i.e. <em>.com,</em> .co.uk*, etc)*? Use the long version of the name.</p><p><strong>Answer →</strong>Top-Level Domain</p><p>4-Where is the very first place your computer would look to find the IP address of a domain</p><p><strong>Answer →</strong>local cache</p><p>5-<strong>[Research]</strong> Google runs two public DNS servers. One of them can be queried with the IP 8.8.8.8, what is the IP address of the other one?</p><p><strong>Answer →</strong>8.8.4.4</p><p>6-If a DNS query has a TTL of 24 hours, what number would the dig query show?</p><p>f a DNS query has a TTL of 24 hours, the dig query would show a TTL value of 86400 seconds (24 hours * 60 minutes/hour * 60 seconds/minute).</p><p><strong>Answer →86400</strong></p><h3>#Task9:-Further Reading</h3><p>That’s us completed our whirlwind tour of networking basics. Hopefully you’ve found it informative!</p><p>Networking is one of those things that you just need to learn. We’ve covered the very basics, but it would be a very good idea to continue to learn by yourself.</p><p>In terms of further information, feel free to reach out in the TryHackMe Discord if you want any help with the contents of this room. Additionally, if you want to expand your knowledge of networking theory, the <a href="https://www.amazon.co.uk/Interconnecting-Cisco-Network-Devices-ICND1/dp/1587054620/ref=sr_1_1?keywords=Interconnecting+Cisco+Network+Devices%2C+Part+1&amp;qid=1583683766&amp;sr=8-1">CISCO Self Study Guide by Steve McQuerry</a> is a great resource to work from. There may be a more up to date version available; however, this edition is cheap, readily available, and most importantly, still very relevant. Whilst it is designed to as a study guide for the CCNA exam, that book serves equally well as a very rounded introduction to networking principles.</p><p><a href="https://www.linkedin.com/in/ahmed-elghazaly-026693243/">Ahmed Elghazaly | LinkedIn</a></p><p><strong><em>Thanks for reading! I hope you learned well from these writeup.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a706c119244" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>