<?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 Pradeep on Medium]]></title>
        <description><![CDATA[Stories by Pradeep on Medium]]></description>
        <link>https://medium.com/@Pradeepnote?source=rss-4d211091a0c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Pradeep on Medium</title>
            <link>https://medium.com/@Pradeepnote?source=rss-4d211091a0c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 14:38:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Pradeepnote/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[Wi-Fi Penetration Testing : Part-1]]></title>
            <link>https://medium.com/@Pradeepnote/wi-fi-penetration-testing-part-1-da5cd7d0a916?source=rss-4d211091a0c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/da5cd7d0a916</guid>
            <category><![CDATA[monitor]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[wifi-stories]]></category>
            <category><![CDATA[wifihacking]]></category>
            <category><![CDATA[wifi-pentesting]]></category>
            <dc:creator><![CDATA[Pradeep]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 17:33:19 GMT</pubDate>
            <atom:updated>2026-02-20T17:57:16.049Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8kQyRMLxZI0OrH4C4Gr2Q.png" /></figure><h3>🔍Basics of Wi-Fi and its Networking</h3><p>Wi-Fi stands for <strong>Wireless Fidelity</strong> is a wireless networking technology that allows devices such as computers (laptops and desktops), mobile devices (smartphones and wearables), and other equipment (printers and video cameras) to connect to the internet and communicate with each other. It allows these devices to exchange data and form a network by transmitting signals through the air.</p><h4>🛡️Wi-Fi bands 2.4ghz &amp; 5ghz frequency</h4><p>The two main frequencies used in Wi-Fi network are <strong>2.4GHz &amp; 5GHz</strong></p><p><strong>2.4 GHz</strong> band is the frequency range from 2.4 GHz to 2.4835 GHz. This band is used by 802.11b, 802.11g, and 802.11n standards. The 2.4GHz band is divided into 14 fixed-frequency channels. Each channel is 20MHz wide</p><p><strong>5GHz </strong>band is used by 802.11a, 802.11n and 802.11ac standards. 5GHz band is divided into UNII-1, UNII-2 Extended, UNII-3 and UNII-3 and ISM. UNII stand for Unlicensed National Information Infrastructure, ISM stands for Industrial Scientific and medical. They are simply labels, specifications and regulations for different parts of the band for example, UNII-1 band is designed mainly for indoor Wi-Fi networks.</p><h4>🛡️Wi-Fi Security Protocols:</h4><p>1️⃣<strong>WEP (Wired equivalent privacy)</strong></p><p>It is the earliest security protocol that was used for wireless network. Developed in 1999. It used 40-bit encryption key. It was found that the encryption it used is vulnerable and not secure.</p><p>2️⃣<strong>WPA (Wi-Fi Protected access)</strong></p><p>It was developed to solve the problems of a WEP. WPA is far better than WEP and this is because it uses a stronger encryption method called TKIP (Temporal key integrity protocol) and TKIP dynamically changes its keys as its being used and this ensures data Integrity. Today WPA is outdated because TKIP did have some Vulnerabilities.</p><p>3️⃣<strong>WPA2</strong></p><p>It was developed to provide even stronger security than WPA. WPA uses AES (Advanced Encryption Standard). AES used a symmetric encryption algorithm which makes it strong enough to resist a brute-force attack.</p><p>4️⃣<strong>WPA3</strong></p><p>It was introduced in 2018 and The WPA3 standard also replaces the Pre-shared key (PSK) exchange with Simultaneous Authentication of Equals(SAE) exchange, a method originally introduced with <a href="https://en.wikipedia.org/wiki/IEEE_802.11s">IEEE 802.11s</a>, resulting in a more secure initial key exchange in personal mode and <a href="https://en.wikipedia.org/wiki/Forward_secrecy">forward secrecy</a>. The Wi-Fi Alliance also claims that WPA3 will mitigate security issues posed by weak passwords and simplify the process of setting up devices with no display interface.</p><h4>🛡️Understanding how AP and client Communicate:</h4><p>Now, let understand each stage how this device connects with each other and start transmit data.</p><figure><img alt="Stages in Establishing a Connection to network Wi-Fi" src="https://cdn-images-1.medium.com/max/850/1*26-Qo_Tf9tCV1lUw5QmpgQ.png" /></figure><p>Stages in Establishing a Connection to network Wi-Fi</p><p>This process works in 3 main parts:</p><p><strong>PROBE</strong> (It is the first stage in connecting to a wireless network)</p><ol><li>Probe Request(Broadcasting requesting) — when you start your Wi-Fi connection Client start Broadcasting Probe requests on all channels to find the Access points.</li><li>Probe Response — Now Access points in range start sending this response to client, this is the time you can see near-by Access point list.</li></ol><p><strong>AUTHENTICATION</strong></p><ol><li>Authentication Request- One we select the Access point from the list, the client sends the Authentication request packet to the Access point.</li><li>Authentication Response-If Authentication Request is Successful then client receive the Authentication Successful response from the Access Point.</li></ol><p><strong>ASSOCIATION </strong>(Final stage)</p><ol><li>Association Request-Now, Client sends this request to AP, it means that they are ready to start communicating with each other.</li><li>Association Response- finally AP sends final response to client.</li></ol><p>After completion of this 3 main steps, data exchanging started</p><h4>🔍What is wireless card?</h4><p>A wireless adapter is a USB device that connects to your computer, and it allows you to communicate with a wireless network. Most computers and laptops come with a built-in wireless card.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dx4gp9XLokBM7PtI2vxmSg.png" /></figure><h4>🔍If we have a Built-in Wireless card, why do we need an external adapter?</h4><p>The only problem is, first of all, you can’t access built-in wireless cards from a virtual machine, or if you install kali as the main machine, the built-in wireless card is not good for hacking because we need a powerful adapter that supports monitor mode and packet injection. Thus, a built-in wireless card does not support these modes and can’t be used for hacking. That’s why powerful Wi-Fi adapter is recommended.</p><h4>🔍What is MAC address?</h4><p>Media Access Control addresses hardware address that uniquely identifies each node of a network. It Assigned by the device manufacturer. The MAC address is used within the network to identify devices and transfer data between devices So each piece of data or packet that is sent within the network contains a source MAC address &amp; Destination. MAC address MAC addresses are 12-digit hexadecimal numbers (48 bits in length).</p><ul><li>(Manufacturer)MM-MM-MM-SS-SS-SS (serial number)*</li><li>*00 : A0 : C9 : 14 : C8 :29*</li></ul><h4>🔍Why to Change the MAC Address?</h4><p><strong>MAC </strong>Address is a unique physical address to each network device, and it is used to identify devices, then changing it will make you anonymous on the network.</p><h4>🔍How to hide MAC address?</h4><p>You may think that how you can change the MAC address if the computer reads it from hardware? You are not going to modify hardware; you are going to change RAM. When the computer starts, the MAC address loads in RAM and we are going to change the already loaded MAC address. So, when you change your MAC address so the victim will find your fake MAC address and they will not be able to trace you.</p><h4>🔍How to Change MAC address</h4><p>Boot up your Kali machine from virtual box and open terminal. So, I am going to use the <strong>ifconfig</strong> command to list all the network interfaces available on our machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*XjAm86Knu9IQjJ8jCY0WAg.png" /></figure><p>In the upper image you can see eth0 is a Virtual interface created by virtual box, lo is Linux default interface and wlan0 is our wireless adapter.</p><p>🛡️<strong>Method 1 (To change Mac Address):</strong></p><p>Now, we want to change the MAC address which is in wlan0 followed by ether. To change any value of the Interface we can see in above image. we have to first disable the Interface. In which we are going to make some changes.</p><p>To disable an interface, we are going to do <strong>ifconfig </strong>followed by the interface name and followed by down to disable it. So, the final Command will be</p><pre>ifconfig &lt;interface_name&gt; down</pre><p>(This command will stop every wireless service and it is necessary to stop network card before changing any value of it)</p><p>Now we want to change the MAC Address that is represented by ether. So, type <strong>ifconfig</strong> followed by <strong>Interface</strong> that we want to change followed by the option that we want to change in this we want to change the hardware address. So, type <strong>hw ether</strong> then we give it the address that we want to change the current MAC address</p><pre>Ifconfig &lt; Interface name&gt; &lt; Option&gt; &lt; MAC address&gt;</pre><p>(example <strong>ifconfig wlan0 hw ether 00:11:12:13:14:15</strong> you can use any address that you want to use just follow the same format and make sure that your address start with 00: )</p><p>Now, we just need to enable the interface because we disabled it. To enable it type ifconfig followed by interface name followed by up.</p><pre>Ifconfig &lt; Interface name&gt; up</pre><p>Do “<strong>ifconfig</strong>” again and see that the MAC Address is changed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*9y8x4UxsCtPB_jS4aKagBg.png" /></figure><p>🛡️<strong>Method 2 (To change MAC address):</strong></p><p>Kali Linux has already installed program called “macchanger” which lets us to change loaded MAC address.</p><p>Open terminal</p><p>We need first to stop our wireless card to change the MAC address.</p><pre>ifconfig wlan0 down</pre><p>Then type in the following command</p><pre>macchanger –help</pre><p>(This command call macchanger and show help. There are program usage instructions.)</p><p>In my case, I will use random MAC address by entering</p><pre>macchanger –random wlan0</pre><p>macchanger is a program name, –random is an option and wlan0 is wireless card. If everything is correct, then the screen should look like below image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*XwAQO8ZNyiwSs8ZA4IKM4A.png" /></figure><h3>🔍Wireless mode (managed and monitor mode)</h3><p>If we want to hack Wi-Fi we need to capture “<strong>Handshake</strong>”. This handshake is connection between Victim computer and the wireless network with this handshake we can hack the password, Wi-Fi Name (Will do this in Part-2).</p><p>As all the data is sent as packets in the network devices to that these packets go in the right direction using the mac address. So, each packet has a source MAC address and a Destination MAC address and it flows from the source to destination.</p><h4>🔍If the MAC address is used to ensure that each packet gets delivered to the right place then how we capture it?</h4><p>So, this only applied to the default mode of wireless card, which is “<strong>managed</strong>” mode”.</p><p>If we are in the Wi-Fi range then, we are able to capture all of this communication because these packets are sent in the air, so we can capture them even if they do not have our MAC address as the destination MAC.</p><p>Monitor mode allows a wireless card to “<strong>monitor</strong>” the packets that are received without any filtering. When using some wireless drivers, this mode allows for the sending of raw 802.11 frames.</p><p>To do this, we need to change the mode of operation of our wireless interface so that it operates in monitor mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDHnjD_CYvity6ZJotiriQ.png" /></figure><p>In the above Image, we can see the mode of this adapter is set to managed. This means that, this is the default mode of all wireless devices and it means this device will only capture packets that has the destination MAC as the MAC address of this device. So basically, it will only capture devices that are directed to our kali Machine but this is not we are looking for what we want is too able to capture all the packets that are within our range, even if they are sent to router and even if they are set to another device so to do this, we need to set the mode to “<strong>Monitor Mode</strong>”.</p><h3>🔥Putting card in monitor mode</h3><p>So, before we change the option of interface, we have to disable it and we can do it by</p><pre>Ifconfig &lt; Interface name&gt; down</pre><p>Now we can enable monitor mode but before we do that, we are going to run a command to kill any process that could interfere with, while using my interface in monitor mode. Killing the process is not mandatory but it will actually give you better results in upcoming attacks. Command will be-</p><pre>airmon-ng check kill</pre><p>Now you will see that when you run this command it will kill the network manager. So, you’ll lose the internet connection but there is no problem in it because we will only need to be in monitor mode when we are running pre connection attacks. So, we do not need internet connection to run any of attacks that require monitor mode. (More Discussion on this in Part-2).</p><p>Now, we are going to enable the monitor mode</p><p>🛡️<strong>Method -1</strong></p><pre>iwconfig &lt; Interface name&gt; mode monitor<br>ifconfig &lt; Interface name&gt; up</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*Vr1779ZraZ8x6xPjjc1NlQ.png" /></figure><p>🛡️<strong>Method -2</strong></p><pre>airmon-ng start &lt; Interface name&gt;</pre><p>Again, we need to enable the interface as we did previously while changing the MAC address.</p><p>I Mentioned both the Methods so you can understand this command easily. So, run all the command in below diagram and you can see the mode is now set to Monitor now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*3mQj1HQCkIx170SFl_dHWg.png" /></figure><p>Note:</p><p>✅ After mode is change to monitor the interface name can be change to wlan0, mon0 &amp; wlan0mon0. So, it not an issue just selects the name what you get after iwconfig.</p><p>✅ Not all adapters support the monitor mode</p><p>So here we end the Part-1 of this Series. Soon we upload the upcoming parts. Have you encountered ? Share your thoughts in the comments! 🚀</p><h3>About QSEAP</h3><blockquote><a href="https://qseap.com/">Qseap</a> is a boutique security testing and services organization specialized in Products, Application, and Infrastructure security assessments and deep technical security testing. If you are looking for security testing services then let’s talk, share your requirements:</blockquote><p><a href="https://qseap.com/"><strong>Click on</strong></a>, Get in touch with us.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da5cd7d0a916" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NoSQL Injection : A Beginner’s Penetration Testing Guide]]></title>
            <link>https://medium.com/@Pradeepnote/nosql-injection-a-beginners-penetration-testing-guide-229504e50852?source=rss-4d211091a0c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/229504e50852</guid>
            <dc:creator><![CDATA[Pradeep]]></dc:creator>
            <pubDate>Thu, 03 Apr 2025 09:41:02 GMT</pubDate>
            <atom:updated>2025-04-03T09:41:02.551Z</atom:updated>
            <content:encoded><![CDATA[<h3>NoSQL Injection : A Beginner’s Penetration Testing Guide</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*4000hHPJ-lh899s_4B7G-w.png" /></figure><h3>Introduction</h3><p>NoSQL databases like MongoDB, CouchDB, and Firebase are widely used due to their scalability and flexibility. However, they are vulnerable to <strong>NoSQL Injection</strong>, an attack where malicious input manipulates database queries, similar to SQL Injection but tailored for NoSQL environments.</p><p>This blog explains <strong>NoSQL Injection</strong>, how attackers exploit it, and how penetration testers can identify and mitigate it.</p><h3>Understanding NoSQL Injection</h3><h3>1️⃣ How NoSQL Works</h3><p>Unlike relational databases (MySQL, PostgreSQL), NoSQL databases store data in <strong>key-value pairs, documents, or graphs</strong>, often using JSON-like structures. For example, in MongoDB:</p><pre>db.users.find({&quot;username&quot;: &quot;admin&quot;, &quot;password&quot;: &quot;password123&quot;});</pre><p>This query searches for a user with the given <strong>username</strong> and <strong>password</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqKLcstknJ2EIdTev5gW4g.png" /><figcaption>No SQL Injection Work flow</figcaption></figure><h3>2️⃣ How NoSQL Injection Happens</h3><p>Since NoSQL databases process <strong>unstructured queries</strong>, attackers can inject malicious input to bypass authentication or extract sensitive data.</p><p>For example, if an application executes:</p><pre>db.users.find({&quot;username&quot;: userInput, &quot;password&quot;: passwordInput});</pre><p>An attacker could enter:</p><pre>username: { &quot;$ne&quot;: null }  <br>password: { &quot;$ne&quot;: null }</pre><p>Since $ne (not equal) is always <strong>true</strong>, it can bypass authentication and grant unauthorized access.</p><h3>NoSQL Operator Injection</h3><p>NoSQL databases often use query operators, which provide ways to specify conditions that data must meet to be included in the query result. Examples of MongoDB query operators include:</p><ul><li><strong>$ne</strong> — Matches all values that are not equal to a specified value.</li><li><strong>$in</strong> — Matches all of the values specified in an array.</li><li><strong>$where</strong> — Matches documents that satisfy a JavaScript expression.</li><li><strong>$regex</strong> — Selects documents where values match a specified regular expression.</li></ul><h3>Submitting Query Operators</h3><p>You may be able to inject query operators to manipulate NoSQL queries. To do this, systematically submit different operators into a range of user inputs, then review the responses for error messages or other changes.</p><p>In JSON messages, you can insert query operators as nested objects. For example:</p><pre>{&quot;username&quot;:&quot;wiener&quot;}</pre><p>becomes:</p><pre>{&quot;username&quot;:{&quot;$ne&quot;:&quot;invalid&quot;}}</pre><p>For URL-based inputs, you can insert query operators via URL parameters. For example:</p><pre>username=wiener</pre><p>becomes:</p><pre>username[$ne]=invalid</pre><p>If this doesn’t work, you can try the following:</p><ul><li>Convert the request method from GET to POST.</li><li>Change the Content-Type header to application/json.</li><li>Add JSON to the message body.</li><li>Inject query operators in the JSON.</li></ul><p><strong>Note:</strong> You can use the <strong>Content Type Converter extension</strong> to automatically convert the request method and change a URL-encoded POST request to JSON.</p><h3>Detecting Operator Injection in MongoDB</h3><p>Consider a vulnerable application that accepts a username and password in the body of a POST request:</p><pre>{&quot;username&quot;:&quot;wiener&quot;,&quot;password&quot;:&quot;peter&quot;}</pre><p>Test each input with a range of operators. For example, to test whether the username input processes the query operator, you could try:</p><pre>{&quot;username&quot;:{&quot;$ne&quot;:&quot;invalid&quot;},&quot;password&quot;:&quot;peter&quot;}</pre><p>If the $ne operator is applied, this queries all users where the username is not equal to invalid.</p><p>If both the username and password inputs process the operator, it may be possible to bypass authentication using the following payload:</p><pre>{&quot;username&quot;:{&quot;$ne&quot;:&quot;invalid&quot;},&quot;password&quot;:{&quot;$ne&quot;:&quot;invalid&quot;}}</pre><p>This query returns all login credentials where both the username and password are not equal to invalid. As a result, you&#39;re logged into the application as the first user in the collection.</p><p>To target an account, you can construct a payload that includes a known username, or a username that you’ve guessed. For example:</p><pre>{&quot;username&quot;:{&quot;$in&quot;:[&quot;admin&quot;,&quot;administrator&quot;,&quot;superadmin&quot;]},&quot;password&quot;:{&quot;$ne&quot;:&quot;&quot;}}</pre><h3>NoSQL Injection Penetration Testing</h3><h3>🔍 1. Identifying NoSQL Injection Vulnerability</h3><h4>✅ Test for Authentication Bypass</h4><p>Try logging in with:</p><pre>Username: { &quot;$ne&quot;: null }<br>Password: { &quot;$ne&quot;: null }</pre><p>If authentication is bypassed, the app is vulnerable.</p><h4>✅ Test for Boolean-Based Injection</h4><p>Submit:</p><pre>username: &quot;admin&quot; || true<br>password: &quot;password&quot;</pre><p>If the response is <strong>successful</strong>, the application is vulnerable.</p><h4>✅ Test for Time-Based Injection</h4><p>If the database supports sleep functions (e.g., MongoDB’s $where), try:</p><pre>db.users.find({ &quot;$where&quot;: &quot;sleep(5000)&quot; })</pre><p>If the server delays its response, it confirms the injection.</p><h3>Exploiting NoSQL Injection</h3><h3>🔥 Extracting Data</h3><p>You can manipulate queries to extract hidden information. For example, checking if a user exists:</p><pre>username: &quot;admin&quot; &amp;&amp; this.password.match(/.*/)</pre><p>If successful, it indicates the user exists.</p><h3>🔥 Privilege Escalation</h3><p>By modifying queries, an attacker might escalate privileges:</p><pre>role: &quot;admin&quot; || true</pre><p>This can grant <strong>admin access</strong> to unauthorized users.</p><h3>Mitigation &amp; Prevention</h3><p>🛡️ <strong>1. Use Proper Input Validation</strong></p><ul><li>Restrict inputs to expected data types.</li><li>Implement strict schema validation.</li></ul><p>🛡️ <strong>2. Use Parameterized Queries</strong> Instead of:</p><pre>db.users.find({ username: userInput, password: passwordInput });</pre><p>Use parameterized queries:</p><pre>db.users.find({ username: sanitize(userInput), password: hash(passwordInput) });</pre><p>🛡️ <strong>3. Implement Web Application Firewalls (WAFs)</strong> WAFs help detect and block NoSQL injection attempts.</p><p>🛡️ <strong>4. Monitor and Log Suspicious Activity</strong> Track unusual login attempts, query patterns, and high-volume database requests.</p><h3>Conclusion</h3><p>NoSQL Injection is a serious security risk, especially for web applications using MongoDB, CouchDB, or Firebase. By understanding <strong>how attackers exploit vulnerabilities</strong>, penetration testers and developers can implement <strong>effective security measures</strong> to protect applications.</p><p>✅ Always validate inputs. ✅ Use parameterized queries. ✅ Monitor for suspicious activity.</p><p>Have you encountered a NoSQL Injection vulnerability? Share your thoughts in the comments! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=229504e50852" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>