<?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 0xC1ph3r on Medium]]></title>
        <description><![CDATA[Stories by 0xC1ph3r on Medium]]></description>
        <link>https://medium.com/@mohamed11kasem2?source=rss-9561e8d5d496------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by 0xC1ph3r on Medium</title>
            <link>https://medium.com/@mohamed11kasem2?source=rss-9561e8d5d496------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:41:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohamed11kasem2/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[ARP Poisoning Attack]]></title>
            <link>https://medium.com/@mohamed11kasem2/arp-poisoning-attack-54dc0fb9d5a7?source=rss-9561e8d5d496------2</link>
            <guid isPermaLink="false">https://medium.com/p/54dc0fb9d5a7</guid>
            <category><![CDATA[arp-poisoning]]></category>
            <dc:creator><![CDATA[0xC1ph3r]]></dc:creator>
            <pubDate>Thu, 24 Oct 2024 13:42:25 GMT</pubDate>
            <atom:updated>2024-10-24T23:00:40.155Z</atom:updated>
            <content:encoded><![CDATA[<p>بسم الله، اللهم علِّمنا ما ينفعنا، وانفعنا بما علَّمتنا، وزِدنا علمًا.</p><p>اللهم كن عونًا لإخواننا في غزة ولكل المسلمين المستضعفين، احفظهم بحفظك، وارفع عنهم البلاء، وانصرهم على من ظلمهم، واجعل لنا ولهم من كل ضيق مخرجًا ومن كل هم فرجًا.</p><p><strong>Today, I invite you to join me on a brief journey to explore the ARP protocol, which stands for Address Resolution Protocol. Additionally, you’ll learn what an ARP Poisoning attack is, how it works, its risks, and how you can avoid it.</strong></p><h4><strong>What is ARP?</strong></h4><blockquote><strong>ARP (Address Resolution Protocol)</strong> is a protocol located in the Network Layer (Layer 3) of the OSI model. Its primary function is to link IP addresses (Layer 3) with MAC addresses in the Data Link Layer (Layer 2).</blockquote><h4>How does it work?</h4><blockquote>When a device in a network wants to send data to another device, it needs to know the MAC address of the target device that it doesn’t recognize. The protocol performs the conversion from the IP address to the MAC address.</blockquote><h4>Here’s how it works in steps:</h4><ol><li>The sending device sends an ARP Request, which is a broadcast message sent to all devices in the network. This message contains the IP address for which it is trying to find the corresponding MAC address. Any device whose IP address does not match the one in the request will ignore the ARP Request.</li><li>The target device, whose IP address matches the IP address in the request, responds with an ARP Reply, providing its MAC address.</li><li>Finally, the sending device receives the reply and stores the MAC address in the ARP cache for future use, instead of requesting it each time. By The Way, this protocol reduces network traffic.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*ueKFozQ3Zf-INxVpFLV34Q.jpeg" /></figure><h4>What is ARP Poisoning attack?</h4><blockquote>It’s an attack that falls under MITM (Man-in-the-Middle) attacks. The goal of this attack is to manipulate the victim’s ARP table, which leads to redirecting traffic between the victim’s device and another device through the attacker’s device.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*85iC69gz5ohBIn63QDUvtg.png" /></figure><h3><strong>From here, the fun begins.</strong></h3><h4>How it works?</h4><p><strong>Our friend on today’s journey is <em>Ettercap.</em></strong></p><p><strong>But first, I’ll show you the IP address and MAC address of the attacker and the target device.</strong></p><p><strong>Here’s the IP address and MAC address of the attacker:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*3R0_q49FMo71xjteiM_x5Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*3f-cHyB6M754-sm2OXEJgw.png" /></figure><h4>Let’s start the ARP Poisoning attack.</h4><p>First, we will launch the Ettercap tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/193/1*0BjSSXiHmkclORFw6qDwRw.png" /></figure><ol><li><strong>sudo</strong>: runs the command that follows it with root privileges. <strong><em>ettercap </em></strong>requires elevated permissions to interact with the network and avoid any errors.</li><li><strong>ettercap</strong>: This is the name of the tool.</li><li><strong>-G</strong>: This runs the tool in GUI mode.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*buxL5DOA1Hp9Aejc9YinHA.png" /><figcaption>Screenshot №1</figcaption></figure><ol><li>Select the interface.</li><li>Click on the button.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*UNl_VLDTKRc5LG0AM9vXUw.png" /><figcaption>Screenshot №2</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*jGhdqv4GEo28epFInSjAmw.png" /><figcaption>Screenshot №3</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*V-vMg2_2Lu_GQmwXAkFNdQ.png" /><figcaption>Screenshot №4</figcaption></figure><p>In screenshot №4 i performed a scan for the devices in the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*95BLvqgrI6863MSebMf7oA.png" /><figcaption>Screenshot №5</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*-811BQAmS6DitO4T2xdOOQ.png" /><figcaption>Screenshot №6</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*Vu4ghXKmPfSrqxJESfEpog.png" /><figcaption>Screenshot №7</figcaption></figure><p>In screenshot №7 It showed me the five IPs in the screenshot, including the target’s IP and the gateway’s IP, i select the gateway’s IP as Target1, and target’s (Windows Machine) IP as target2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*fAAJ1nxwlBrJlNiOSnOgqw.png" /><figcaption>Screenshot №8</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*sk66WWnU6rtreq0L2B-Xiw.png" /><figcaption>Screenshot №9</figcaption></figure><p>In screenshot №9, I selected the ARP Poisoning attack from the MITM menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*m3W7luovxpAJuEul2CPS1g.png" /><figcaption>Screenshot №10</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*K_MFqIQz3lSJA810LXPS5w.png" /><figcaption>Screenshot №11</figcaption></figure><p>In screenshot №11, the attack has been successfully executed. Let’s check the ARP cache.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*rlLkFVAkVgHw0FR6iFVLHw.png" /><figcaption>Screenshot №12</figcaption></figure><p>As we can see, the MAC address of the router’s machine has been successfully changed to match the MAC address of the attacker’s machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PseGwXiyhi10OeccORcA6g.png" /><figcaption>Screenshot №13</figcaption></figure><p>Here, I opened Wireshark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2y8YwIn7lNrDfIDD7n3wQ.png" /><figcaption>Screenshot №14</figcaption></figure><p>In screenshot №14, i selected my interface</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*0rCG0IptJ6WOxcpgZoVoVA.png" /><figcaption>Screenshot №15</figcaption></figure><p>In screenshot №15, i opened an HTTP website, and I went to the login page, where I entered the credentials as shown in Screenshot №16.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBWd-OHx-fUL0d0mniOS8A.png" /><figcaption>Screenshot №16</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*q62lQMVuK5JKoc3HgrU5yA.png" /><figcaption>Screenshot №17</figcaption></figure><p>In screenshot №17, I was able to retrieve the credentials by using the filter: http.request.method == “POST” &amp;&amp; http contains “password”.</p><h4>What are the risks?</h4><ol><li>The attacker can intercept the data between the two devices and gather information from it.</li><li>The attacker can modify the data being sent before it reaches the other device, such as the username or password.</li><li>After intercepting the data, the attacker can prevent the device from accessing websites, networks, or services.</li><li>The attacker can redirect the traffic to a phishing site owned by him, so that after the victim enters the site and submits his credentials, this information goes to the attacker without the victim noticing anything.</li></ol><h4>How can you avoid it?</h4><ol><li>By using a VPN.</li><li>Using network monitoring tools like Wireshark. As shown in Screenshot №18, it was able to identify that the IP address is duplicated.</li><li>Using a private or reliable network.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X5M2_8nSt2zhJPoWcw9hQA.png" /><figcaption>Screenshot №18</figcaption></figure><p><strong>And here concludes this short and enjoyable journey. Thank you for your precious time.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54dc0fb9d5a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>