<?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 Akshatnigam on Medium]]></title>
        <description><![CDATA[Stories by Akshatnigam on Medium]]></description>
        <link>https://medium.com/@akshatnigam84?source=rss-aebc18f9380b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ihq4aBLxGil9qDwS5LgP3g.jpeg</url>
            <title>Stories by Akshatnigam on Medium</title>
            <link>https://medium.com/@akshatnigam84?source=rss-aebc18f9380b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 01:23:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akshatnigam84/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[Configuring Suricata on OPNSense Firewall]]></title>
            <link>https://akshatnigam84.medium.com/configuring-suricata-on-opnsense-firewall-b04ed6dee2a1?source=rss-aebc18f9380b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b04ed6dee2a1</guid>
            <category><![CDATA[idp]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[suricata]]></category>
            <category><![CDATA[firewall-security]]></category>
            <category><![CDATA[opnsense]]></category>
            <dc:creator><![CDATA[Akshatnigam]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 12:07:53 GMT</pubDate>
            <atom:updated>2026-09-23T12:07:53.575Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever wanted to get hands-on with intrusion detection and prevention, OPNsense paired with Suricata is a fantastic playground. In my lab, I swapped out my RHEL box for a Kali machine(my RHEL machine files got corrupted) and decided to go all-in on configuring Suricata, writing custom rules, and testing them against stealth scans.</p><p>If you don’t know how to install OPNsense, here’s my another article for the same: <a href="https://medium.com/@akshatnigam84/how-to-deploy-a-firewall-from-scratch-a-step-by-step-guide-af3a8159fda8">How to Deploy a Firewall from Scratch: A Step-by-Step Guide | by Akshatnigam | Medium</a></p><h3><strong>Getting Comfortable with OPNsense</strong></h3><p>The first step was simple: log in, poke around the <strong>Lobby</strong> and <strong>Dashboard</strong>, and make sure the firewall was up to date. OPNsense makes this easy — just head to <strong>System → Firmware → Status</strong> and apply any updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L5PwWoOfGPKsfpqH6O_D0w.png" /><figcaption>Applying the updates</figcaption></figure><p>I also installed the <strong>os-vmware plugin</strong> (though mine was already in place). Plugins like this help OPNsense integrate better with virtualized environments, which is perfect for lab setups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sP8AHH0MtkVGm2wAUErg0Q.png" /><figcaption>Updating the plugins</figcaption></figure><h3>Why Suricata Needs Clean Packets</h3><p>Before diving into rules, I had to make sure Suricata was actually seeing traffic the way it exists on the wire. That meant disabling a few NIC offloading features under <strong>Interfaces → Settings</strong>:</p><ul><li><strong>Checksum Offload</strong>: Normally, the NIC calculates checksums. Suricata inspects packets before that happens, so it thinks packets are broken.</li><li><strong>TCP Segmentation Offload (TSO)</strong>: The NIC splits giant packets, but Suricata expects the OS to handle segmentation.</li><li><strong>Large Receive Offload (LRO)</strong>: The NIC merges multiple packets into one, which destroys signatures and timing.</li></ul><p>In short: Suricata works at the packet level. If the NIC modifies packets first, Suricata loses visibility. Turning these off ensures accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wJxRMqKJpIvq2v-SXOQG9Q.png" /></figure><h3>Enabling Intrusion Detection</h3><p>With the groundwork set, I went to <strong>Services → Intrusion Detection → Administration</strong> and flipped on <strong>Advanced Mode</strong>. This unlocks the good stuff — custom rules, external rule sets, and fine-grained control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tq2BjSVxrs92-KGx3lhsNQ.png" /></figure><h3>Rule Sets: Free vs. Pro</h3><p>OPNsense offers two main options:</p><ul><li><strong>Emerging Threats (ET)</strong>: Free, community-maintained rules.</li><li><strong>Proofpoint OPN Threat Pro Telemetry</strong>: Professionally maintained, production-ready rules. Free if you share telemetry back with OPNsense.</li></ul><p>For my lab, I wanted to see Suricata catch something I threw at it. So I wrote a custom rule to detect Nmap stealth scans:</p><pre>alert tcp $HOME_NET any -&gt; 10.200.200.254/24 any \<br>(msg:&quot;POSSIBLE NMAP SYNSTEALTH SCAN DETECTED&quot;; \<br>flow:stateless; flag:S; priority:5; \<br>threshold:type threshold, track by_src, count 50, seconds 1; \<br>classtype:attempted-recon; sid:1234;)</pre><p>This rule basically says: if someone fires off 50 SYN packets in a second, raise an alert for attempted reconnaissance.</p><h3>Hosting and Transferring Custom Rules</h3><p>Once you’ve written your custom Suricata rules, the next challenge is making sure OPNsense can actually fetch and apply them. This involves two parts: <strong>getting the files onto the firewall</strong> and <strong>hosting them so OPNsense can download updates automatically</strong>. Let’s break it down.</p><h4>1. Preparing the Rule Files</h4><p>Suricata expects two files:</p><ul><li>customrules.rules → contains the actual detection logic (your Suricata rules).</li><li>customrules.xml → acts like a manifest, telling OPNsense where to fetch the rules and how to interpret them.</li></ul><p>Here’s an example XML file:</p><pre>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;ruleset documentation_url=&quot;http://docs.opnsense.org/&quot;&gt;<br>  &lt;location url=&quot;http://10.200.200.10/&quot; prefix=&quot;customrules&quot;/&gt;<br>  &lt;files&gt;<br>    &lt;file description=&quot;Custom Nmap rules&quot; url=&quot;/customrules.rules&quot;&gt;customrules.rules&lt;/file&gt;<br>  &lt;/files&gt;<br>&lt;/ruleset&gt;</pre><ul><li>10.200.200.10 is the IP of my <strong>Kali machine</strong>.</li><li>The &lt;location&gt; tag points OPNsense to the HTTP server we’ll set up.</li><li>The &lt;files&gt; section lists the rules file that OPNsense should download.</li><li>These files should be created in /var/www/html/ within the directory rules.</li></ul><h3>2. Enabling SSH on OPNsense</h3><p>By default, OPNsense only allows GUI access. To transfer files directly, I enabled SSH:</p><ul><li>Navigate to <strong>System → Settings → Administration</strong>.</li><li>Enable <strong>Secure Shell access</strong>.</li><li>Assign it to the <strong>admins group</strong> (for lab use; in production, avoid root/admin SSH).</li><li>Restrict SSH to <strong>LAN only</strong> for safety.</li></ul><p>This gives us a secure way to connect from Kali.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H_VphZb96VyTMhBZmoVhiQ.png" /></figure><h3>3. Installing FileZilla on Kali</h3><p>FileZilla is a simple way to move files via SFTP:</p><pre>sudo apt-get install filezilla</pre><p>Once installed:</p><ul><li>Host: sftp://10.200.200.254 (your OPNsense LAN IP)</li><li>Username: root</li><li>Password: &lt;your-password&gt;</li><li>Click <strong>Quick Connect</strong></li></ul><p>You’ll now see the OPNsense filesystem in FileZilla.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zrQ2ALPxwxDhvhGuutHK7Q.png" /><figcaption>Filezilla</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d76cnvLNsRl7Xl8by8AHRA.png" /><figcaption>Drag and drop the xml file</figcaption></figure><h3>4. Transferring the Files</h3><p>Drag and drop yourcustomrules.xml into:</p><pre>/usr/local/opnsense/scripts/suricata/metadata/rules</pre><p>This directory already contains pre‑populated rule metadata files. Adding yours here ensures OPNsense recognizes them alongside the built‑in sets.</p><h3>5. Hosting the Rules via HTTP</h3><p>OPNsense doesn’t just read the files locally — it expects to <strong>download them</strong>. To simulate this, I hosted the files from my Kali machine using Python’s built‑in HTTP server:</p><pre>cd ~/var/www/html/rules/<br>python3 -m http.server 80<br></pre><ul><li>Run this command inside the folder containing both files.</li><li>This spins up a lightweight web server on port 80.</li><li>OPNsense will now be able to fetch customrules.rules using the XML manifest.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*Y3Jq-OF0oQWEh0OF7cLBpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aUL-f10i8fzdBrsVLDZWBA.png" /></figure><h3>6. Linking Everything Together</h3><p>Back in OPNsense:</p><ol><li>Go to <strong>Services → Intrusion Detection → Administration → Download</strong>.</li><li>Restart Suricata services.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mBqNxBwyK3IwJSph1EW-Ww.png" /></figure><ol><li>You should now see your <strong>custom ruleset</strong> listed.</li><li>Enable it by checking the box.</li><li>Click <strong>Download &amp; Update Rules</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K-mpHB1JzCvYvpSS_GI1rw.png" /></figure><p>If everything is configured correctly, OPNsense will pull your rules from the Kali HTTP server and integrate them into Suricata.</p><h3>7. Verifying Success</h3><p>Once enabled, your custom rules will appear in the rules list with a tick mark. From here, you can:</p><ul><li>Schedule automatic updates under the <strong>Schedule tab</strong>.</li><li>Test the rules by running scans or attacks that match your signatures.</li></ul><p>For example, my Nmap stealth scan rule fired immediately when I ran</p><pre>nmap -sS 10.200.200.254</pre><p>Seeing your own rule trigger in real time is the best confirmation that the pipeline works.</p><p>If you learnt something, share this so that others can too.</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Akshat Nigam<br>Cybersecurity Professional</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b04ed6dee2a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy a Firewall from Scratch: A Step-by-Step Guide]]></title>
            <link>https://akshatnigam84.medium.com/how-to-deploy-a-firewall-from-scratch-a-step-by-step-guide-af3a8159fda8?source=rss-aebc18f9380b------2</link>
            <guid isPermaLink="false">https://medium.com/p/af3a8159fda8</guid>
            <category><![CDATA[firewall]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[firewall-security]]></category>
            <dc:creator><![CDATA[Akshatnigam]]></dc:creator>
            <pubDate>Fri, 24 Jul 2026 12:38:35 GMT</pubDate>
            <atom:updated>2026-07-24T12:38:35.661Z</atom:updated>
            <content:encoded><![CDATA[<p>As a cyber-security professional, it is mandatory to know about firewall. <br>But what actually do we know? It’s definition, usage? <br>Today what we are going to learn is far beyond that. <br>Today we will deploy a firewall.</p><p><strong>Pre-requisites :</strong></p><ul><li>VMware / Virtual box</li><li>RHEL machine</li><li>FreeBSD machine</li></ul><p>The firewall we will be deploying is <strong>Opnsense firewall</strong> as it is an open-source freeBSD based firewall.</p><p>What is <strong>FreeBSD</strong>? FreeBSD is an opensource unix-like operating system known for it’s rock stability and unmatched networking performance.</p><p><strong>INSTALLATION STEPS</strong></p><p><strong>Step 1:</strong></p><ul><li>Install FreeBSD 64bit on VMWare as on this opnsense firewall will be deployed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*WagTYubIz1b7hBEPlawJMw.png" /></figure><ul><li>Here we will keep 2 network adapters, so add additional adapter in the settings.</li><li>one is for WAN → NAT connection type</li><li>Second is switch → internal network LAN</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*VsTg3S8yghWfR4fw42MSjA.png" /></figure><ul><li>Add Opnsense Iso to it. Link to download : <a href="https://opnsense.org/download/">https://opnsense.org/download/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OJgt0vfdHFZEOIG3ilrkhA.png" /></figure><ul><li>Select the system architecture according to your system, image type as dvd and minor location to the location nearest to your place.</li></ul><p><strong>Step 2:</strong></p><ul><li>Now when the boot is completed you will be prompted for login credentials:</li><li>The default login credentials are</li><li><strong>username</strong>: root or installer</li><li><strong>password</strong>: opnsense</li><li>When you are logged into it, it will prompt for keyboard layout like</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*ITlT3-4GET5o61gWWSCl6A.png" /></figure><ul><li>Then it will prompt to perform the following tasks, here select UFS (unix file system)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*HiXWDqT_B3n9Mxwby81LSw.png" /></figure><ul><li><strong>UFS </strong>is more beginner friendly choice whereas ZFS is enterprise edition of filesystem.</li><li><strong>ZFS </strong>keeps tracks of where files are stored, free space, deleted files, permissions and directories.</li><li>Then it will prompt to select a disk to continue</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*QBs3rcFvRY8gQjKS2LfPqw.png" /></figure><ul><li>Here, the hard disk that we have allocated should be selected, (ada0) 10gb in my case.</li><li>Then it will prompt again for confirming the same, we press yes.</li><li>Now the process of setting up takes time.</li><li>Once done with the complete setup, remove the ISO bootable image. Opnsense boots directly from the hardisk we have installed in the previous step.</li></ul><p><strong>Step 3:</strong></p><ul><li>When the system boots up again and a login page is presented, we will login as root to setup out interfaces LAN and WAN.</li><li>There, select the option 1 stating assigning interfaces. This will prompt to configure LAGG now, select no.</li><li><strong>LAGG </strong>→ Link Aggregation, it’s a networking feature that lets you combine multiple physical network interfaces (NICs) into one logical interface. Two main reasons to use LAGG — Provides higher bandwidth and Redundancy (failover)</li><li>Then it will prompt to configure any VLANs, select no.</li><li>Following that it will prompt to select the interface</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*MlPjYI41mRq3SnVRLtyJFQ.png" /></figure><ul><li>Then it will ask us to enter the interface name for WAN from the two interfaces present → <strong>em0 and em1</strong></li><li>Here, i have selected <strong>em0</strong> as my WAN interface</li><li>Then it will prompt me to select the LAN interface, which i have selected as <strong>em1</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*MhEvBYvbxoMPboZORCdJFA.png" /></figure><ul><li>Leave the optional interface as default and press enter.</li><li>After this, it will configure the interfaces for us.</li><li>Now we will <strong>Set the interface IP address</strong></li></ul><p><strong>Step 4:</strong></p><ul><li>Select option 2 from the menu.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*iiEOBSEySNdvpzip1sO8Gw.png" /></figure><ul><li>For my LAN interface i have given the IP → 10.200.200.254 with the CIDR as /24</li><li>Since we want our firewall to have static IP we will not assign it using the DHCP service and will not configure the same.</li><li>Also, when in enterprise we will want our WEB GUI of the firewall to run on HTTPS traffic instead of HTTP.</li><li>It prompts us to degrade the site from HTTPS to HTTP. since it is a lab environment we can do it. But for enterprise it is not preferred.</li><li>For WAN network, our connection will be estabilshed using a DHCP server, that in my case VMWare setting has NAT network.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*kFv-Cmk6If_Th0wJu3LaaA.png" /></figure><ul><li>After this we will reset the password of the root, as using the default password is a security vulnerability, so we will select the option 3</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*kFv-Cmk6If_Th0wJu3LaaA.png" /></figure><p><strong>Step 5:</strong></p><ul><li>Now we will create a VM with the interface having the same subnet of the firewall to access the GUI web page.</li><li>In my case i’m creating an <strong>RHEL</strong> machine</li><li>Once you have created an RHEL machine, add an additional network interface card, and configure it with the same ip subnet as of firewall.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*MwM_1nHS4U9Yl-XwEL6CBw.png" /></figure><ul><li>To configure, create an config file for the new network interface card command: <strong>sudo vi /etc/sysconfig/network-scripts/ifcfg-eth1</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*TcQRR4yf2MpzFM_aTi7HGQ.png" /></figure><ul><li>Then restart the network manager using the command : <strong>service network restart</strong></li><li>Ping the firewall to check the connectivity</li><li>Once connected, navigate to mozila firefox and enter the firewall ip, you will be able to see the GUI interface of firewall.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*tgZx8mQt_OZq40c8eLhXvg.png" /></figure><ul><li>Enter your credentials, which you have set for root user, and now you have entered your firewall.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mBdUZ26BHfWjD4fiA9Q09w.png" /></figure><p>There is much more to this, since now you know how to deploy a firewall. <br>Next, we will see how to configure the firewall. <br>Stay tuned and keep learning.</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Akshat Nigam <br>Cybersecurity Professional</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af3a8159fda8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inside Wi-Fi Hacking: Cracking WEP, WPA, and WPA2]]></title>
            <link>https://akshatnigam84.medium.com/wifi-hacking-e5d7e7a096ea?source=rss-aebc18f9380b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5d7e7a096ea</guid>
            <category><![CDATA[wifi-attack]]></category>
            <category><![CDATA[network-attacks]]></category>
            <dc:creator><![CDATA[Akshatnigam]]></dc:creator>
            <pubDate>Sun, 19 Apr 2026 10:40:17 GMT</pubDate>
            <atom:updated>2026-07-24T12:37:14.639Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Tried Breaking My Own WiFi — Here’s What Actually Happened</h3><p>Most people think WiFi security is just about having a password.</p><p>I used to think the same.</p><p>You type a password, connect, and assume everything is secure. But the reality is very different — wireless networks are constantly broadcasting data into the air, and with the right setup, anyone can observe what’s happening.</p><p>So instead of just reading about it, I decided to test it myself.</p><p>Not on someone else’s network — but on my own controlled lab.</p><p>What started as curiosity quickly turned into a deep dive into how WiFi security actually works… and where it quietly fails.</p><h3>Before You Try Anything</h3><p>Let’s get this out of the way:</p><p>This was done in a <strong>personal lab setup</strong>.<br>If you try this on networks you don’t own or don’t have permission to test, it’s illegal.</p><h3>The Setup (Simpler Than You Think)</h3><p>I didn’t use anything fancy. Just:</p><ul><li>Kali Linux</li><li>A WiFi adapter that supports monitor mode</li><li>My own router (as the target)</li><li>One device connected to it</li></ul><p>That’s enough to simulate real-world conditions.</p><h3>The First Realization: Your WiFi Is Always Talking</h3><p>Normally, your WiFi card connects to a single network. It ignores everything else.</p><p>But when you switch it into <strong>monitor mode</strong>, that changes completely.</p><p>Suddenly, your system can “hear” every wireless conversation happening around it.</p><p>I started with:</p><pre>iwconfig</pre><p>Then switched modes:</p><pre>ifconfig wlan0 down<br>airmon-ng check kill<br>iwconfig wlan0 mode monitor<br>ifconfig wlan0 up</pre><p>At this point, I wasn’t connected to anything anymore.</p><p>I was just listening.</p><h3>Seeing What’s Around You</h3><p>The next step was simple — scan the environment.</p><pre>airodump-ng wlan0</pre><p>Within seconds, I could see:</p><ul><li>Every nearby network</li><li>Their encryption type</li><li>The devices connected to them</li></ul><p>This was the moment it clicked:</p><p>None of this required authentication.</p><p>I wasn’t inside any network. I was just observing what was already being broadcast.</p><h3>Locking Onto My Own Network</h3><p>Once I identified my test network, I focused on it:</p><pre>airodump-ng --bssid &lt;BSSID&gt; --channel &lt;CH&gt; --write capture wlan0</pre><p>Now I was:</p><ul><li>Tracking one specific network</li><li>Saving its traffic into a file</li></ul><p>That file would later become the key to everything.</p><h3>Looking Inside the Traffic</h3><p>I opened the captured file in Wireshark.</p><p>At first, it looked like noise.</p><p>But slowly, patterns started appearing:</p><ul><li>Devices communicating with the router</li><li>Regular intervals of activity</li><li>Repeated packet structures</li></ul><p>You don’t need to understand everything immediately.<br>Just seeing this traffic changes your perspective.</p><p>WiFi is not invisible — it’s just usually ignored.</p><h3>The Turning Point: Forcing a Reconnection</h3><p>Here’s where things got interesting.</p><p>Modern networks don’t constantly send useful data. So instead of waiting, I triggered it.</p><pre>aireplay-ng --deauth 4 -a &lt;target_bssid&gt; -c &lt;client_bssid&gt; wlan0</pre><p>This forced a connected device to disconnect.</p><p>And like most devices do — it automatically reconnected.</p><p>That reconnection process generated something important:</p><p>A <strong>handshake</strong>.</p><h3>The Most Misunderstood Part: You’re Not Capturing the Password</h3><p>This is where many people get it wrong.</p><p>I wasn’t capturing the WiFi password.</p><p>What I captured was a <strong>4-way handshake</strong> — a process used to verify the password.</p><p>This handshake doesn’t reveal the password directly.<br>But it allows you to test password guesses offline.</p><p>Which means:</p><ul><li>If the password is weak → it can be cracked</li><li>If it’s strong → the attack fails</li></ul><h3>Why WEP Never Stood a Chance</h3><p>I also tested WEP, just to understand older systems.</p><pre>aircrack-ng capture.cap</pre><p>WEP relies on something called initialization vectors (IVs). The issue is — they repeat.</p><p>That repetition makes the encryption predictable.</p><p>It’s not just “less secure.”<br>It’s fundamentally broken.</p><h3>When Nothing Happens: Creating Traffic</h3><p>Sometimes the network was just… quiet.</p><p>No useful packets. No progress.</p><p>So I forced activity:</p><pre>aireplay-ng --fakeauth 0 -a &lt;target_bssid&gt; -h &lt;your_mac&gt; wlan0<br>aireplay-ng --arpreplay -b &lt;target_bssid&gt; -h &lt;your_mac&gt; wlan0</pre><p>This made the router generate more traffic.</p><p>More traffic = more data = faster results.</p><h3>The Shortcut Most People Ignore: WPS</h3><p>Then I checked something most people don’t think about:</p><p>WPS.</p><pre>wash -i wlan0</pre><p>If enabled, it opens a completely different path.</p><p>Instead of cracking a password, you brute-force a PIN:</p><pre>reaver --bssid &lt;target_bssid&gt; --channel &lt;ch&gt; -i wlan0 -vvv --no-associate</pre><p>This was one of the biggest lessons:</p><p>Security doesn’t fail where it’s strongest.<br>It fails where it’s weakest.</p><h3>The Final Step: Cracking WPA/WPA2</h3><p>Once I had a handshake, I moved to password cracking.</p><p>First, I generated a wordlist:</p><pre>crunch 8 10 abc123 -o wordlist.txt</pre><p>Then:</p><pre>aircrack-ng handshake.cap -w wordlist.txt</pre><p>And here’s the truth:</p><p>If the password isn’t in your wordlist, you won’t crack it.</p><p>That’s it.</p><p>No magic. No shortcuts.</p><h3>What This Actually Changed for Me</h3><p>This wasn’t about “hacking WiFi.”</p><p>It changed how I think about systems.</p><p>I started seeing:</p><ul><li>How small weaknesses connect</li><li>How predictable behavior creates opportunities</li><li>How security is often about configuration, not complexity</li></ul><h3>If You Take One Thing Away From This</h3><p>It should be this:</p><p>Your network is only as secure as its weakest point.</p><p>Not its strongest feature.</p><h3>How to Stay Secure (Simple but Effective)</h3><ul><li>Disable WPS</li><li>Use strong, unpredictable passwords</li><li>Upgrade to WPA3 if possible</li><li>Keep firmware updated</li><li>Watch for unusual disconnections</li></ul><p>You don’t need to be unbreakable.</p><p>You just need to not be the easiest target.</p><h3>Final Thoughts</h3><p>I started this as a hands-on experiment.</p><p>But it turned into something more valuable — understanding.</p><p>At first, it’s just commands.<br>Then it becomes patterns.<br>Then it becomes intuition.</p><p>And that’s when you actually start thinking like a security professional.</p><h3>Full Project</h3><p>If you want to try this yourself in a lab:</p><p><a href="https://github.com/AkshatNigam12/Network-Attacks">https://github.com/AkshatNigam12/Network-Attacks</a></p><h3>About Me</h3><p>Akshat Nigam<br>Working in cybersecurity with a focus on practical learning, web application testing, and cloud security.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5d7e7a096ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>