<?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 Bhagwat Singh Bhati  on Medium]]></title>
        <description><![CDATA[Stories by Bhagwat Singh Bhati  on Medium]]></description>
        <link>https://medium.com/@bhagwatbhati16?source=rss-160d2d59b418------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NyCBTKPozD0kO__3</url>
            <title>Stories by Bhagwat Singh Bhati  on Medium</title>
            <link>https://medium.com/@bhagwatbhati16?source=rss-160d2d59b418------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:11:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhagwatbhati16/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[How I Gained Wi-Fi and Admin Access by Exploiting MAC Authentication]]></title>
            <link>https://medium.com/@bhagwatbhati16/how-i-gained-wi-fi-and-admin-access-by-exploiting-mac-authentication-346c044954ea?source=rss-160d2d59b418------2</link>
            <guid isPermaLink="false">https://medium.com/p/346c044954ea</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[wifi-security]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[network-security]]></category>
            <dc:creator><![CDATA[Bhagwat Singh Bhati ]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 10:38:06 GMT</pubDate>
            <atom:updated>2025-01-31T10:38:06.628Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, I’m <strong>Bhagwat Singh Bhati</strong>, a BCA student with a passion for cybersecurity. From exploring networks to uncovering vulnerabilities, I’m always eager to learn and experiment.</p><h4><strong>Background</strong></h4><p>It all started when I connected to my college’s Wi-Fi for the first time. The password was painfully weak , but even after entering it, I couldn’t get online. The IT staff explained they used “MAC-based authentication” — meaning they manually approved devices by their MAC addresses.<br>I realized that MAC addresses can be easily spoofed. Since the authentication was based only on MAC addresses, anyone could change theirs to an approved one and connect.</p><p>Curious about this, I asked the IT staff if they were aware of the issue. They said they hadn’t tested it before. I explained how MAC addresses can be changed easily and asked if I could test the network. They were very supportive and told me, <strong>“You can do anything, just don’t take down the network. 😅”</strong></p><h4>Testing the Network</h4><p>To start, I ran an <strong>nmap</strong> scan to find the router and other devices on the network. The scan revealed that the college was using a <strong>MikroTik</strong> router.</p><pre>sudo nmap 192.168.0.1 -sV</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IZU7WzcX1BX82XaiCqEhjw.png" /></figure><p>Next, I needed to find an authenticated MAC address. I used <strong>wifite</strong> to scan for connected devices and collected their MAC addresses.</p><pre>sudo wifite</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwxGLCytQHHz7D5jkXUwNQ.png" /></figure><p>With this information, I used <strong>macchanger</strong> to spoof my MAC address to match one of the authenticated ones. So first</p><pre>sudo ip link set wlo1 down</pre><p>Now we can spoof the mac address,</p><pre>sudo macchanger --mac=xx:xx:xx:xx:xx:xx wlo1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*tZsrocb6tLdj2jdgeoyANw.png" /></figure><p>After this we have to turn on wlo1 so,</p><pre>sudo ip link set wlo1 up</pre><p>Before changing my MAC address, whenever I connected to the Wi-Fi, I was redirected to a captive portal where I had to wait for approval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8oFa77pfrHhmwS7ISFg3yg.png" /></figure><p>However, after spoofing my MAC to an authenticated one, the captive portal was completely bypassed, and I was directly connected to the network.</p><h3>Exploring Further: Accessing Winbox</h3><p>After successfully connecting to the network, I started thinking — if MAC-based authentication was this easy to bypass, what else could be accessible? Since the router was a <strong>MikroTik</strong>, I wondered if I could connect to <strong>Winbox</strong>, the MikroTik management tool.</p><p>While scanning the network with <strong>nmap</strong>, I found an IP with <strong>SMB (file sharing) and open shared drives</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XypYI3U2adhYhEqUpDDTDQ.png" /></figure><p>This made me suspect it could be an important system, possibly an IT staff computer. I checked its MAC address and realized that when I changed my MAC to an authenticated device, the router assigned me that device’s IP.</p><p>So, I changed my MAC address to match the one associated with the computer that had open shared drives. As expected, I received its assigned IP. With that, I opened <strong>Winbox</strong> and tried connecting. It worked — I had access to the router’s management interface.</p><h4><strong>Submitting My Security Report</strong></h4><p>After successfully gaining access, I decided to report my findings to the IT staff. I explained how I had bypassed the MAC-based authentication and accessed the router’s management interface. I also shared my steps and offered recommendations to improve the security of the network, particularly highlighting the vulnerability in relying solely on MAC addresses for authentication. They were appreciative of the report and took immediate action to enhance the network’s security measures.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=346c044954ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>