<?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 Thanmai on Medium]]></title>
        <description><![CDATA[Stories by Thanmai on Medium]]></description>
        <link>https://medium.com/@thanmai01?source=rss-1a78ecdeb22f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CN3JelTIkmNVGYfI</url>
            <title>Stories by Thanmai on Medium</title>
            <link>https://medium.com/@thanmai01?source=rss-1a78ecdeb22f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:21:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thanmai01/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[My First VAPT Home Lab Project Using Kali Linux and Metasploitable]]></title>
            <link>https://medium.com/@thanmai01/my-first-vapt-home-lab-project-using-kali-linux-and-metasploitable-fcd26940cb8e?source=rss-1a78ecdeb22f------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcd26940cb8e</guid>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Thanmai]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 07:42:55 GMT</pubDate>
            <atom:updated>2026-11-26T07:42:55.941Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>I recently completed my first hands-on Vulnerability Assessment and Penetration Testing (VAPT) home lab project using Kali Linux and Metasploitable 2.</p><p>The main objective was to learn network scanning, identify open ports and services, and understand basic vulnerability testing.</p><h3>Tools Used</h3><ul><li>Kali Linux</li><li>Metasploitable 2</li><li>Nmap</li><li>Metasploit Framework</li><li>VirtualBox</li></ul><h3>Project Steps</h3><h3>1. Lab Setup</h3><p>Created an isolated virtual lab using Kali Linux and Metasploitable 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*hrcqJ3T9P0Q14Qtdo3wNYg.png" /></figure><p>metasploitable2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*lhcnyX2u9zWDk4W3Mxjrzg.png" /></figure><h3>2. Network Scanning</h3><p>Used Nmap to identify the target IP address, open ports and running services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*1IPYp3wu6BERRY005DQZng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*ZhZ4vid7yVb9Ph69DH1hhg.png" /></figure><h3>3. FTP Service Identification</h3><p>Identified FTP running on port 21 and detected the vsftpd 2.3.4 version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*njxl2aNB79e9pP0BEF-r6w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*QhwYlkffrbJ8STwA7iFfSg.png" /></figure><h3>4. Vulnerability Testing</h3><p>Used Metasploit Framework to test the known vsftpd 2.3.4 backdoor vulnerability (CVE-2011–2523) in my lab environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*sEiHOcAC_9I7or2-ZCEd-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*uPy7QOWMSzOqhb_FLdCrpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*5iNjWEs2rdvKW_UAPR9IOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ZQrbIYkQW1yCb1Wboqi8YA.png" /></figure><h3>5. Meterpreter Session</h3><p>Successfully established and verified a Meterpreter session in the intentionally vulnerable lab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*QTT78Yi7f5obPbMV7vrPAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*YqSqcQIY1maABY3-81MpWg.png" /></figure><h3>What I Learned</h3><ul><li>Basic network reconnaissance</li><li>Port scanning using Nmap</li><li>Service version detection</li><li>Vulnerability testing using Metasploit</li><li>Basic security analysis and remediation</li></ul><h3>Conclusion</h3><p>This project helped me gain practical experience with basic penetration testing tools and understand the importance of identifying and fixing security vulnerabilities.</p><p>I look forward to learning more about cyber security and ethical hacking.</p><h3>Project Repository</h3><p>GitHub: <a href="https://github.com/Thanmai04-byte/Metasploitable2-VAPT-Home-Lab">https://github.com/Thanmai04-byte/Metasploitable2-VAPT-Home-Lab</a></p><h3>Disclaimer</h3><p>This project was performed only in my own isolated virtual lab using Metasploitable2. No unauthorized systems were targeted.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcd26940cb8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Room URL: TryHackMe | Blue]]></title>
            <link>https://medium.com/@thanmai01/room-url-tryhackme-blue-63a5efd265c3?source=rss-1a78ecdeb22f------2</link>
            <guid isPermaLink="false">https://medium.com/p/63a5efd265c3</guid>
            <dc:creator><![CDATA[Thanmai]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 06:55:17 GMT</pubDate>
            <atom:updated>2026-11-18T06:55:17.199Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>The TryHackMe <strong>Blue</strong> room is a beginner-friendly Windows penetration testing lab that focuses on understanding SMB vulnerabilities, EternalBlue exploitation, and privilege escalation. This walkthrough covers the complete process, starting with initial reconnaissance and vulnerability identification, followed by exploitation and gaining administrator-level access to the target system.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*0Jfs81CCs7MEHAST.png" /></figure><h3>Tasks</h3><p><strong>Task 1 </strong>Recon</p><p>Scan and learn what exploit this machine is vulnerable to. Please note that this machine does not respond to ping (ICMP) and may take a few minutes to boot up. <strong>This room is not meant to be a boot2root CTF, rather, this is an educational series for complete beginners. Professionals will likely get very little out of this room beyond basic practice as the process here is meant to be beginner-focused.</strong></p><p>Answer the questions below</p><p>Scan the machine. (If you are unsure how to tackle this, I recommend checking out the <a href="https://tryhackme.com/room/furthernmap">Nmap</a> room)</p><blockquote><em>No answer needed</em></blockquote><p>How many ports are open with a port number under 1000?</p><p>We used</p><blockquote><em>nmap -Pn -p- -sS -sV -sC -O -oN namp.test -A — script vuln $IP is our Ip machines</em></blockquote><ol><li>-Pn: Skip host discovery (assume all hosts are online).</li><li>-p-: Scan all ports (1-65535).</li><li>-sS: Perform a SYN scan (also known as a half-open scan).</li><li>-sV: Probe open ports to determine service/version information.</li><li>-sC: Run default NSE scripts.</li><li>-O: Enable OS detection.</li><li>-oN &lt;output_file&gt;: Save results to a specified output file.</li><li>-T5: Set aggressive timing template (fastest scan).</li><li>-A: Enable OS detection, version detection, script scanning, and traceroute.</li><li>-script vuln: Run vulnerability detection scripts.</li></ol><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ARpyQc7oUh3izvqg.png" /></figure><blockquote><em>3</em></blockquote><p>What is this machine vulnerable to? (Answer in the form of: ms??-???, ex: ms08–067)</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*49WfuWdpJ1ROLw9L.png" /></figure><blockquote><em>ms17–010</em></blockquote><p><strong>Task 2 </strong>Gain Access</p><p>Exploit the machine and gain a foothold.</p><p>Answer the questions below</p><p>Start <a href="https://tryhackme.com/module/metasploit">Metasploit</a></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*3JY34K9guDBDZ1F6.png" /></figure><blockquote><em>No answer needed</em></blockquote><p>Find the exploitation code we will run against the machine. What is the full path of the code? (Ex: exploit/…….)</p><blockquote><em>search ms17_010</em></blockquote><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*0Fb3wdl3jQlGAbgX.png" /></figure><blockquote><em>exploit/windows/smb/ms17_010_eternalblue</em></blockquote><p>Show options and set the one required value. What is the name of this value? (All caps for submission)</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*JhEbg-7a6htsjNoH.png" /></figure><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*5ZhEJOrxS1Yk4VwC.png" /></figure><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*kZoV47m3aasfjJ_y.png" /></figure><blockquote><em>RHOSTS</em></blockquote><p>Usually it would be fine to run this exploit as is; however, for the sake of learning, you should do one more thing before exploiting the target. Enter the following command and press enter:</p><p>set payload windows/x64/shell/reverse_tcp</p><p>With that done, run the exploit!</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*UXyr_8bT2UT41KQO.png" /></figure><p>Now we must</p><blockquote><em>run</em></blockquote><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*--481v_gaQdym9LL.png" /></figure><blockquote><em>No answer needed</em></blockquote><p>Confirm that the exploit has run correctly. You may have to press enter for the DOS shell to appear. Background this shell (CTRL + Z). If this failed, you may have to reboot the target VM. Try running it again before a reboot of the target.</p><p>And eventually after a bit of waiting we finally get a shell.</p><blockquote><em>No answer needed</em></blockquote><p><strong>Task 3 </strong>Escalate</p><p>Escalate privileges, learn how to upgrade shells in metasploit.</p><p>Answer the questions below</p><p>If you haven’t already, background the previously gained shell (CTRL + Z). Research online how to convert a shell to meterpreter shell in metasploit. What is the name of the post module we will use? (Exact path, similar to the exploit we previously selected)</p><blockquote><em>search shell_to_meterpreter</em></blockquote><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*JPCsBQoyak0C6BmD.png" /></figure><blockquote><em>post/multi/manage/shell_to_meterpreter</em></blockquote><p>Select this (use MODULE_PATH). Show options, what option are we required to change?</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Y4jTvBqg9RjokHFb.png" /></figure><blockquote><em>SESSION</em></blockquote><p>Set the required option, you may need to list all of the sessions to find your target here.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*AT0iMO63cqZLrGYo.png" /></figure><blockquote><em>No answer needed</em></blockquote><p>Run! If this doesn’t work, try completing the exploit from the previous task once more.</p><blockquote><em>run</em></blockquote><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ITPsRtUs8o8vvBOt.png" /></figure><blockquote><em>No answer needed</em></blockquote><p>Once the meterpreter shell conversion completes, select that session for use.</p><p>sessions -i $id-for-session</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*mELdAumMfQKgiBQX.png" /></figure><blockquote><em>No answer needed</em></blockquote><p>Verify that we have escalated to NT AUTHORITY\SYSTEM. Run getsystem to confirm this. Feel free to open a dos shell via the command ‘shell’ and run ‘whoami’. This should return that we are indeed system. Background this shell afterwards and select our meterpreter session for usage again.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*g_LL9QOUZsn1iTGT.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/0*wgnZ-YY-w93Nx_uV.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/0*N0kSaQ5TDSpG6kd-.png" /></figure><blockquote><em>No answer needed</em></blockquote><p>List all of the processes running via the ‘ps’ command. Just because we are system doesn’t mean our process is. Find a process towards the bottom of this list that is running at NT AUTHORITY\SYSTEM and write down the process id (far left column).</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*6zgkg9H3bFJoK2kF.png" /></figure><blockquote><em>No answer needed</em></blockquote><p>Migrate to this process using the ‘migrate PROCESS_ID’ command where the process id is the one you just wrote down in the previous step. This may take several attempts, migrating processes is not very stable. If this fails, you may need to re-run the conversion process or reboot the machine and start once again. If this happens, try a different process next time.</p><blockquote><em>migrate $Id</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*CJ1t0D9TIZFF1Zoi.png" /></figure><blockquote><em>No answer needed</em></blockquote><p><strong>Task 4 </strong>Cracking</p><p>Dump the non-default user’s password and crack it!</p><p>Answer the questions below</p><p>Within our elevated meterpreter shell, run the command ‘hashdump’. This will dump all of the passwords on the machine as long as we have the correct privileges to do so. What is the name of the non-default user?</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*X9FOuIuKL3Ex4r3D.png" /></figure><p><strong>user:</strong> Jon<br><strong>RID:</strong> 1000<br><strong>LM hash:</strong> aad3b435b51404eeaad3b435b51404ee<br><strong>NT hash:</strong> ffb43f0de35be4d9917ac0cc8ad57f8d</p><blockquote><em>Jon</em></blockquote><p>Copy this password hash to a file and research how to crack it. What is the cracked password?</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*c6qjZomFAej8HnGl.png" /></figure><p><a href="https://hashes.com/en/tools/hash_identifier">Hash Type Identifier — Identify unknown hashes</a></p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*pGsSqHy6LVLsj8I5.png" /></figure><p><a href="https://crackstation.net/">CrackStation — Online Password Hash Cracking — MD5, SHA1, Linux, Rainbow Tables, etc.</a></p><blockquote><em>alqfna22</em></blockquote><p><strong>Task 5 </strong>Find flags!</p><p>Find the three flags planted on this machine. These are not traditional flags, rather, they’re meant to represent key locations within the Windows system. Use the hints provided below to complete this room!</p><p>Answer the questions below</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ibaqnEAegogyCRcb.png" /></figure><p>Flag1? <em>This flag can be found at the system root.</em></p><blockquote><em>Flag{access_the_machine}</em></blockquote><p>Flag2? <em>This flag can be found at the location where passwords are stored within Windows.</em></p><p>*Errata: Windows really doesn’t like the location of this flag and can occasionally delete it. It may be necessary in some cases to terminate/restart the machine and rerun the exploit to find this flag. This relatively rare, however, it can happen.</p><blockquote><em>Flag{sam_database_elevated_access}</em></blockquote><p>flag3? <em>This flag can be found in an excellent location to loot. After all, Administrators usually have pretty interesting things saved.</em></p><blockquote><em>Flag{admin_documents_can_be_valuable}</em></blockquote><h3>Conclusion</h3><p>The TryHackMe “Blue” machine write-up walks you through exploiting a Windows vulnerability using EternalBlue. It covers essential steps like reconnaissance with Nmap, exploiting SMB using Metasploit, privilege escalation to gain SYSTEM access, and cracking user passwords. The guide is beginner-friendly, providing clear instructions and explaining key concepts to help users understand the penetration testing process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63a5efd265c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Kali Linux for Beginners: Practical Commands and Essential Tools for Cybersecurity”.]]></title>
            <link>https://medium.com/@thanmai01/kali-linux-for-beginners-practical-commands-and-essential-tools-for-cybersecurity-eaff2c35b530?source=rss-1a78ecdeb22f------2</link>
            <guid isPermaLink="false">https://medium.com/p/eaff2c35b530</guid>
            <dc:creator><![CDATA[Thanmai]]></dc:creator>
            <pubDate>Fri, 25 Sep 2026 13:50:36 GMT</pubDate>
            <atom:updated>2026-09-25T13:50:36.348Z</atom:updated>
            <content:encoded><![CDATA[<p>Kali Linux is a Linux-based operating system mainly used for cybersecurity, ethical hacking, penetration testing, and security testing. Linux is an open-source operating system with many packages, commands etc..</p><ol><li>sudo: Runs a command with <strong>administrator (root) privileges</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i9UZr3fFTOofDF45_KBuiQ.png" /></figure><p>2. Su: Switches to <strong>another user</strong>, commonly the root user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*C5j1OHzQKSodVlfPFpRv5A.png" /></figure><p>3. Whoami: Shows the <strong>username of the current user</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/227/1*hqdWpSk2ekAwPnE90TqTxA.png" /></figure><p>4. id: Shows the <strong>user ID, group ID, and groups</strong> of the current user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*2qBHc2aBqgnuagmM29JUaA.png" /></figure><p>5. hostname: Displays the <strong>name of the computer/system</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*-kgRbBUCFWb26LXeXmUtWA.png" /></figure><p>6.uname: Displays <strong>system/kernel information</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*xPi6GSiZcTmskas4IyfZUA.png" /></figure><p>we can also use : uname -r, uname -s, uname -a.</p><p>7. pwd: Shows the <strong>current directory/location</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*pm3aun1TK2GjS2wcczbfLg.png" /></figure><p>8. who: Shows <strong>users currently logged into the system</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*hSIaqT0LVqxeX8zV843WZg.png" /></figure><p>9. mkdir: Creates a <strong>new directory (folder)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*PXO5KlzKSOUC5zmLpYZZEg.png" /></figure><p>10. ls: shows the listed files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*NtagXeLgNU74abkZFWqwoA.png" /></figure><p>11. mv: <strong>Moves or renames</strong> a file or folder.</p><p>12. rm: it is used to remove the files.</p><p>rmdir: uses to remove directories.</p><p>rm -rf: used for removing folders.</p><p>13. cd: uses to change different directories.</p><p>cd.. : moves one directory backward.</p><p>14. echo: uses to print the statements.</p><p>15. cat: displays content of the file.</p><p>16. cd new: moves into a new named directory.</p><p>17. history: Shows the <strong>commands previously entered</strong> in the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*EGyfJx7YwhkyrjOy7KR5tQ.png" /></figure><p>18. Locate: Quickly <strong>searches for a file or directory by name</strong>.</p><p>19. updatedb: Updates the <strong>database used by </strong><strong>locate</strong> so newly created files can be found. example-sudo updatedb</p><p>20. man: Opens the <strong>manual/help page</strong> for a command.</p><p>ex-man nmap</p><p>21.alias: Creates a <strong>shortcut name for a command</strong>.</p><p>alias ll=&#39;ls -la&#39;</p><p>22. weget: Downloads <strong>files or web content from the internet</strong>.wget <a href="https://example.com/file.txt">https://example.com/file.txt</a></p><p>23. nano: A simple <strong>terminal-based text editor</strong> for creating or editing files.nano notes.txt</p><p>24. vi: A <strong>terminal-based text editor</strong> used to create and edit files.</p><p>some of the commands for the linux package management:</p><ul><li>sudo apt install virtualbox</li><li>sudo apt remove gdm3</li><li>sudo apt update</li><li>sudo upgrade</li><li>sudo apt install discord</li><li>sudo dpkg -i zoom_amd64.deb</li><li>sudo apt autoremove</li><li>‘apt list __upgrade</li></ul><p>Linux directories:</p><p>/<strong>Root</strong> – starting point of the entire Linux filesystem.</p><p>/homePersonal folders of normal users.</p><p>/rootHome directory of the <strong>root user.</strong></p><p>/etcSystem and application <strong>configuration files.</strong></p><p>/varFrequently changing data such as <strong>logs.</strong></p><p>/tmpTemporary files.</p><p>/usrApplications, utilities, and other user-space files.</p><p>/binEssential command/program binaries.</p><p>/optOptional/additional software.</p><p>/devFiles representing hardware/devices.</p><p>/bootFiles needed to <strong>boot Linux.</strong></p><p>/procInformation about running processes and the kernel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eaff2c35b530" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“MY VAPT LEARNING JOURNEY DAY-1 :]]></title>
            <link>https://medium.com/@thanmai01/my-vapt-learning-journey-day-1-d14e99ffbbc7?source=rss-1a78ecdeb22f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d14e99ffbbc7</guid>
            <dc:creator><![CDATA[Thanmai]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 05:29:16 GMT</pubDate>
            <atom:updated>2026-08-18T05:29:16.703Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>“MY VAPT LEARNING JOURNEY DAY-1 :</em></strong></p><p><strong>Linux cmds:</strong></p><p>i have learned basic cmds for creating directory, finding the files, search inside files, and permissions.</p><p>now will see some of the cmds which i have learned with description and examples:</p><p><strong>pwd</strong>- [print working directory] it shows us the current directory.</p><p><strong>ls</strong>- used to list the files.</p><p><strong>mkdir-</strong> used to create a new directory.</p><p><strong>cd</strong>- used to display the content of the file.</p><p><strong>touch</strong>- used to create a empty file.</p><p><strong>mv</strong>- used to change the file location.</p><p><strong>rmdir</strong>- used to delete the directory.</p><p><strong>cp</strong>- used to copy the file are text.</p><p><strong>echo -</strong>used to print the statements.</p><p><strong>cat</strong>- used to display the txt.</p><p><strong>ip route</strong>- used to view and manage the routing table.</p><p>example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*SB0nBA4B29lDEBNA0idcfA.png" /></figure><p>FIND: The find cmd is used to search the specific file, text.</p><p>for using find cmd we need to create a dir and content.</p><p>examples:</p><p><strong>for text</strong>= find.-name “*.txt”</p><p><strong>for specific file</strong>= find. -name “password.txt” .</p><p><strong>for directories</strong>= find. -type d</p><p><strong>to find files</strong>= find. -type f</p><p><strong>Grep:</strong> used for serching inside file. should create the content first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*947VGX7c5QmeefwpNMbh8w.png" /></figure><p><strong>PERMISSIONS:</strong></p><p>chmod- used for change the p[assword, permissions.</p><p>permissions:</p><p>0=- -</p><p>1=- -x</p><p>2= -w-</p><p>3= -wx</p><p>4=r- -</p><p>5= r-x</p><p>6=rw -</p><p>7=rwx</p><p>numeric:</p><p>r=4, w=2, x=1.</p><p>r= read, w= write, x= execute, -= no permission.</p><p>ex: rw- [read+write but not executable].</p><p>for example:</p><p>you want : -rwx- xr- -</p><p>break into 3 parts- rwx= 7, r-x= 5, r- -= 4 so the permission number is 754.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*vgIdXEJs-toav1kVJsNMqA.png" /></figure><p>“UNDERSTANDING LINUX USER IDENTITY AND PRIVILEGES ITH WHOAMI &amp; SUDO.”</p><p>who am i ?</p><p>whoami is a cmd used to know the current logged-in username.</p><p>ex: whoami</p><p>output: root</p><p>id — for user and group information</p><p>ex: id</p><p>output: uid=100(user) gid=100(user) group=1000(user), 27(sudo)</p><p><strong>uid</strong>= user ID</p><p>gid= primary groupID</p><p>groups= groups you are a member of</p><p>sudo- it run a cmd with elevated privileges</p><p><strong>sudo -1</strong></p><p>on kali vm it shows cmds your account is allowed to run with elevated <strong>privileges.</strong></p><p><strong>sudo whoami</strong></p><p>if permitted, it should return: root</p><p><strong>su- used for switch user</strong></p><p><strong>su- username</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*y3nfi-z5H6cNzxNV708HEw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d14e99ffbbc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Burp Suite Proxy: See What Happens Behind the Browser]]></title>
            <link>https://medium.com/@thanmai01/%EF%B8%8F-burp-suite-proxy-see-what-happens-behind-the-browser-53a53b4584db?source=rss-1a78ecdeb22f------2</link>
            <guid isPermaLink="false">https://medium.com/p/53a53b4584db</guid>
            <dc:creator><![CDATA[Thanmai]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 07:52:45 GMT</pubDate>
            <atom:updated>2026-08-06T07:52:45.484Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vPL0Lc8rJKokXdm1EFtsHQ.png" /></figure><p>If you’re learning <strong>Web Application VAPT</strong>, one of the first tools you should become comfortable with is <strong>Burp Suite</strong>.</p><p>Burp Suite is widely used by penetration testers and security professionals to understand how a web application communicates with its server.</p><p>One of the most important features of Burp Suite is <strong>Proxy</strong>.</p><p>In this article, we’ll understand Burp Suite Proxy in a simple and practical way.</p><h3>What is Burp Suite?</h3><p><strong>Burp Suite</strong> is a web security testing platform developed by PortSwigger.</p><p>It provides several tools that help security testers analyze and test web applications.</p><p>Some commonly used Burp Suite tools are:</p><ul><li>Proxy</li><li>Repeater</li><li>Intruder</li><li>Scanner</li><li>Decoder</li><li>Comparer</li></ul><p>For beginners, <strong>Proxy, Repeater, and Intruder</strong> are especially important to understand.</p><h3>What is Burp Suite Proxy?</h3><p><strong>Burp Suite Proxy</strong> acts as a middle point between your browser and the web server.</p><p>Normally, communication looks like this:</p><pre>Browser<br>   ↓<br>Web Server<br>   ↓<br>Browser</pre><p>When Burp Proxy is configured:</p><pre>Browser<br>   ↓<br>Burp Suite Proxy<br>   ↓<br>Web Server<br>   ↓<br>Burp Suite Proxy<br>   ↓<br>Browser</pre><p>This allows a security tester to <strong>intercept, inspect, and modify HTTP/HTTPS traffic</strong> during authorized testing.</p><h3>Why is Proxy Important in VAPT?</h3><p>When using a web application normally, you may only see the interface.</p><p>For example:</p><pre>Username: ______<br>Password: ______</pre><pre>       Login</pre><p>But behind the interface, the browser sends an HTTP request to the server.</p><p>Burp Proxy allows us to see what is actually being sent.</p><p>For example:</p><pre>POST /login HTTP/1.1<br>Host: test.example<br>Content-Type: application/x-www-form-urlencoded</pre><pre>username=test&amp;password=test123</pre><p>Now we can inspect:</p><ul><li>HTTP method</li><li>URL/path</li><li>Parameters</li><li>Cookies</li><li>Headers</li><li>Request body</li><li>Server response</li></ul><p>This is extremely useful during web application security testing.</p><h3>Understanding an HTTP Request</h3><p>Consider this example:</p><pre>GET /profile?id=10 HTTP/1.1<br>Host: example.com<br>Cookie: session=abc123<br>User-Agent: Mozilla/5.0</pre><p>Let’s understand each part.</p><h3>HTTP Method</h3><pre>GET</pre><p>The browser is requesting information from the server.</p><p>Other common methods include:</p><pre>GET<br>POST<br>PUT<br>DELETE<br>PATCH</pre><h3>Path</h3><pre>/profile</pre><p>This identifies the resource being requested.</p><h3>Parameter</h3><pre>?id=10</pre><p>Here, id is the parameter and 10 is its value.</p><h3>Host</h3><pre>Host: example.com</pre><p>This identifies the target web server.</p><h3>Cookie</h3><pre>Cookie: session=abc123</pre><p>Cookies may contain session-related information used by the application.</p><h3>User-Agent</h3><pre>User-Agent: Mozilla/5.0</pre><p>This provides information about the client making the request.</p><h3>What Does Intercept Mean?</h3><p>The <strong>Intercept</strong> feature allows Burp Suite to pause HTTP/HTTPS requests before they are forwarded.</p><p>For example:</p><pre>Browser<br>   ↓<br>Request<br>   ↓<br>[ Burp Proxy ]<br>   ↓<br>Paused<br>   ↓<br>Tester analyzes/modifies request<br>   ↓<br>Server</pre><p>When a request is intercepted, you can choose actions such as:</p><ul><li><strong>Forward</strong> — send the request to the server</li><li><strong>Drop</strong> — discard the request</li><li><strong>Modify</strong> — change request information</li><li><strong>Send to Repeater</strong> — manually test the request later</li><li><strong>Send to Intruder</strong> — perform automated testing with different inputs</li></ul><h3>Simple Practical Example</h3><p>Imagine you’re testing an authorized lab application.</p><p>You open:</p><pre>https://test.example/product?id=10</pre><p>The browser sends:</p><pre>GET /product?id=10 HTTP/1.1<br>Host: test.example</pre><p>Burp Proxy captures the request.</p><p>You can now inspect the id parameter and understand how the application handles it.</p><p>For example, you might test:</p><pre>id=10<br>id=20<br>id=50</pre><p>and compare the responses.</p><p>The purpose isn’t simply to change values randomly. The goal is to understand <strong>how the application processes user-controlled input</strong> and whether unexpected behavior occurs.</p><h3>Burp Suite Proxy Workflow</h3><p>A beginner-friendly workflow looks like this:</p><h3>Step 1: Open Burp Suite</h3><p>Start Burp Suite and create or open your testing project.</p><h3>Step 2: Configure Your Browser</h3><p>Configure the browser to send its traffic through Burp Suite.</p><h3>Step 3: Open an Authorized Target</h3><p>Use a web application that you own or have explicit permission to test.</p><p>Good options for learning include intentionally vulnerable applications and security training labs.</p><h3>Step 4: Turn Intercept On</h3><p>Go to:</p><pre>Proxy → Intercept</pre><p>Enable interception.</p><h3>Step 5: Perform an Action</h3><p>For example:</p><ul><li>Open a page</li><li>Submit a form</li><li>Login to a test account</li><li>Search for something</li><li>Update a profile</li></ul><h3>Step 6: Analyze the Request</h3><p>Look for:</p><pre>Method<br>URL<br>Parameters<br>Headers<br>Cookies<br>Request Body</pre><h3>Step 7: Forward the Request</h3><p>After examining it, forward the request to the server.</p><h3>Step 8: Check the Response</h3><p>Analyze:</p><pre>Status Code<br>Response Headers<br>Response Body<br>Cookies<br>Redirects<br>Error Messages</pre><h3>What Can You Test Using Proxy?</h3><p>Burp Proxy is useful for investigating many web security areas, including:</p><h3>Authentication</h3><p>Understand how login requests and authentication mechanisms work.</p><h3>Authorization</h3><p>Check whether users can access resources they should not have access to, within an authorized test environment.</p><h3>Session Management</h3><p>Inspect cookies and session-related behavior.</p><h3>Input Validation</h3><p>Understand how the application handles user-controlled input.</p><h3>SQL Injection</h3><p>Investigate whether application inputs are safely handled by the backend.</p><h3>Cross-Site Scripting (XSS)</h3><p>Test how user-supplied input is processed and reflected by the application.</p><h3>CSRF</h3><p>Understand how state-changing requests are protected.</p><h3>IDOR / Broken Access Control</h3><p>Investigate whether changing object identifiers could expose unauthorized resources.</p><h3>Proxy vs Repeater vs Intruder</h3><p>As you continue learning Burp Suite, you’ll frequently use these tools together.</p><p>ToolMain Purpose<strong>Proxy</strong>Intercept and inspect traffic<strong>Repeater</strong>Manually modify and resend requests<strong>Intruder</strong>Automate requests with different inputs</p><p>A simple workflow can be:</p><pre>Browser<br>   ↓<br>Proxy<br>   ↓<br>Capture Request<br>   ↓<br>Repeater / Intruder<br>   ↓<br>Test<br>   ↓<br>Analyze Response</pre><h3>Important Things to Observe</h3><p>When analyzing requests in Burp Suite, don’t focus only on the URL.</p><p>Develop the habit of checking:</p><pre>HTTP Method<br>URL<br>Parameters<br>Headers<br>Cookies<br>Authorization<br>Request Body<br>Response Status<br>Response Body</pre><p>Over time, this will help you understand the application’s behavior much more clearly.</p><h3>Common Beginner Mistakes</h3><h3>1. Testing Without Understanding the Request</h3><p>Don’t immediately start changing values.</p><p>First understand:</p><pre>What is the request?<br>What does each parameter do?<br>What response does the server return?</pre><h3>2. Ignoring HTTP Basics</h3><p>Before becoming advanced in Burp Suite, learn:</p><ul><li>HTTP methods</li><li>Status codes</li><li>Headers</li><li>Cookies</li><li>Sessions</li><li>Parameters</li><li>Requests and responses</li></ul><h3>3. Sending Too Many Requests</h3><p>Automated testing can generate a large number of requests.</p><p>Use appropriate request rates and test only authorized systems.</p><h3>4. Learning Payloads Without Understanding the Vulnerability</h3><p>Don’t focus only on memorizing payloads.</p><p>Understand:</p><pre>Input → Processing → Server Behavior → Response</pre><p>That mindset is much more useful for VAPT.</p><h3>Practice in Safe Labs</h3><p>If you’re a beginner, practice Burp Suite with intentionally vulnerable applications and legal training labs.</p><p>You can use platforms such as:</p><ul><li>PortSwigger Web Security Academy</li><li>TryHackMe</li><li>OWASP Juice Shop</li><li>DVWA</li></ul><p>These environments are designed for security learning and practice.</p><h3>What I Learned From Burp Proxy</h3><p>The most important lesson for a beginner is that a web application is more than what we see in the browser.</p><p>The browser provides the interface.</p><p>Burp Suite helps us understand the <strong>communication happening behind that interface</strong>.</p><p>Once you become comfortable reading requests and responses, tools like <strong>Repeater and Intruder</strong> become much easier to understand.</p><h3>Conclusion</h3><p>Burp Suite Proxy is one of the most important tools to learn when starting Web Application VAPT.</p><p>The basic concept is simple:</p><pre>Browser<br>   ↓<br>Burp Proxy<br>   ↓<br>Web Server</pre><p>Learn to:</p><ol><li>Capture requests</li><li>Understand HTTP</li><li>Analyze parameters</li><li>Inspect headers and cookies</li><li>Understand responses</li><li>Modify requests in authorized labs</li><li>Use Repeater and Intruder for further testing</li></ol><p>Don’t try to memorize everything at once.</p><p><strong>First learn to read the request. Then learn to understand the response. Finally, learn how to test the application’s behavior.</strong></p><p>That’s the foundation of effective web application security testing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53a53b4584db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Injection Explained: A Beginner’s Guide to Web Security and VAPT]]></title>
            <link>https://medium.com/@thanmai01/sql-injection-explained-a-beginners-guide-to-web-security-and-vapt-b7769e8233af?source=rss-1a78ecdeb22f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7769e8233af</guid>
            <dc:creator><![CDATA[Thanmai]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 07:41:19 GMT</pubDate>
            <atom:updated>2026-08-06T07:41:19.330Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1rJ99UbjnAdGTJ0XsXbQw.png" /></figure><h3>Introduction</h3><p>Web applications communicate with databases every day to store and retrieve information such as usernames, products, orders, and customer details.</p><p>But what happens when an application does not properly handle user input before sending it to a database?</p><p>This can lead to a serious web security vulnerability called <strong>SQL Injection (SQLi)</strong>.</p><p>SQL Injection is one of the most important vulnerabilities for anyone learning <strong>Web Application Security, VAPT, or Penetration Testing</strong> to understand.</p><p>In this article, we will learn:</p><ul><li>What SQL Injection is</li><li>How SQL Injection works</li><li>Different types of SQL Injection</li><li>How VAPT professionals test for SQLi</li><li>How Burp Suite can help during testing</li><li>Potential impact</li><li>Prevention techniques</li><li>How to practice safely using PortSwigger Web Security Academy</li></ul><blockquote><strong><em>Note:</em></strong><em> All security testing discussed here should be performed only against applications you own or have explicit permission to test.</em></blockquote><h3>What is SQL Injection?</h3><p><strong>SQL Injection (SQLi)</strong> is a vulnerability that occurs when an application improperly handles user-controlled input and allows that input to influence an SQL query.</p><p>Applications commonly use databases to store information such as:</p><pre>Users<br>Passwords<br>Products<br>Orders<br>Payments<br>Customer information</pre><p>When an application interacts with a database, it may send SQL queries such as:</p><pre>SELECT * FROM users WHERE username = &#39;admin&#39;;</pre><p>If user input is inserted into SQL queries without proper protection, an attacker may be able to manipulate the intended query.</p><h3>In simple words</h3><p><strong>SQL Injection happens when an application’s input can change the intended SQL query instead of being treated only as data.</strong></p><h3>How SQL Injection Works</h3><p>Let’s understand the basic flow.</p><pre>User<br>  ↓<br>Web Application<br>  ↓<br>SQL Query<br>  ↓<br>Database<br>  ↓<br>Response<br>  ↓<br>User</pre><p>Imagine a website has a product page:</p><pre>https://example.com/product?id=10</pre><p>The application may internally execute something similar to:</p><pre>SELECT * FROM products WHERE id = &#39;10&#39;;</pre><p>Here, 10 is supplied by the user through the id parameter.</p><p>If the application directly combines user input with SQL syntax instead of using safe query mechanisms, the input may potentially affect the query’s logic.</p><h3>Vulnerable approach</h3><pre>User Input<br>     ↓<br>Application<br>     ↓<br>Input directly combined with SQL<br>     ↓<br>Database</pre><h3>Secure approach</h3><pre>User Input<br>     ↓<br>Parameterized Query<br>     ↓<br>Database<br>     ↓<br>Input treated as data</pre><p>The second approach is much safer because SQL structure and user-supplied values are handled separately.</p><h3>Types of SQL Injection</h3><p>SQL Injection can appear in different forms.</p><h3>1. Error-Based SQL Injection</h3><p>In <strong>Error-Based SQL Injection</strong>, the application may return database errors when unexpected input is supplied.</p><p>These errors can sometimes reveal information about:</p><ul><li>Database technology</li><li>SQL syntax</li><li>Tables</li><li>Columns</li><li>Database versions</li></ul><p>From a VAPT perspective, exposing detailed database errors can provide useful information to an attacker.</p><h3>2. Union-Based SQL Injection</h3><p>The SQL UNION operator can combine the results of multiple SELECT queries.</p><p>For example:</p><pre>SELECT name FROM products<br>UNION<br>SELECT name FROM users;</pre><p>If an application is vulnerable to this type of SQL Injection, an attacker may potentially retrieve information that was not intended to be displayed.</p><p>The important concept is understanding that <strong>unsafe input can influence the structure of the database query</strong>.</p><h3>3. Boolean-Based Blind SQL Injection</h3><p>Sometimes an application does not display database errors or database results.</p><p>This is known as <strong>Blind SQL Injection</strong>.</p><p>A tester may instead observe differences between two application responses.</p><pre>Condition is TRUE<br>        ↓<br>Response A</pre><pre>Condition is FALSE<br>        ↓<br>Response B</pre><p>Differences may include:</p><ul><li>Page content</li><li>Response length</li><li>HTTP status</li><li>Redirect behavior</li><li>Application functionality</li></ul><p>The tester uses these behavioral differences to determine whether the application is processing the input in an unsafe way.</p><h3>4. Time-Based Blind SQL Injection</h3><p>Sometimes even response content does not change.</p><p>In such situations, a tester may look at response timing.</p><pre>Normal request<br>      ↓<br>Fast response</pre><pre>Test condition<br>      ↓<br>Noticeable delay</pre><p>A consistent, controlled timing difference can indicate that database processing is being influenced by the supplied input.</p><p>Time-based testing should only be performed in authorized environments because intentionally causing delays can affect application performance.</p><h3>SQL Injection in VAPT</h3><p>In a <strong>Vulnerability Assessment and Penetration Testing (VAPT)</strong> engagement, the goal is not simply to find a vulnerability.</p><p>A tester should:</p><ol><li>Identify the vulnerable input.</li><li>Verify that the behavior is reproducible.</li><li>Understand the security impact.</li><li>Collect appropriate evidence.</li><li>Assess severity.</li><li>Recommend remediation.</li><li>Document the finding clearly.</li></ol><h3>Common places to check</h3><p>A VAPT tester may investigate user-controlled input such as:</p><ul><li>Login forms</li><li>Search fields</li><li>URL parameters</li><li>POST parameters</li><li>Cookies</li><li>HTTP headers</li><li>API parameters</li><li>JSON fields</li></ul><h3>Basic VAPT methodology</h3><pre>Identify Input<br>      ↓<br>Capture Request<br>      ↓<br>Establish Baseline<br>      ↓<br>Modify Input<br>      ↓<br>Compare Responses<br>      ↓<br>Verify Vulnerability<br>      ↓<br>Assess Impact<br>      ↓<br>Document Finding</pre><p>The objective is to understand <strong>why the vulnerability exists</strong>, not simply to memorize payloads.</p><h3>Testing SQL Injection with Burp Suite</h3><p><strong>Burp Suite</strong> is one of the most commonly used tools for web application security testing.</p><p>A basic testing workflow is:</p><h3>Step 1: Capture the Request</h3><p>Suppose the application has:</p><pre>GET /products?id=10 HTTP/1.1<br>Host: lab.example</pre><p>The parameter being investigated is:</p><pre>id=10</pre><h3>Step 2: Establish a Baseline</h3><p>First, send the normal request and record:</p><ul><li>HTTP status code</li><li>Response length</li><li>Page content</li><li>Response time</li><li>Redirect behavior</li></ul><h3>Step 3: Modify the Parameter</h3><p>Change the parameter using controlled test inputs in an authorized lab.</p><p>Observe whether the application’s behavior changes.</p><h3>Step 4: Compare Responses</h3><p>Look for differences in:</p><pre>Status Code<br>Response Length<br>Page Content<br>Error Messages<br>Response Time</pre><h3>Step 5: Verify the Finding</h3><p>A security finding should be reproducible.</p><p>Document:</p><pre>Affected URL:<br>HTTP Method:<br>Parameter:<br>Observed Behavior:<br>Evidence:<br>Impact:<br>Recommendation:</pre><p>This is much more useful in a professional VAPT report than simply writing “SQL Injection found.”</p><h3>Impact of SQL Injection</h3><p>The impact depends on the application’s implementation, database permissions, and security controls.</p><p>Potential consequences include:</p><h3>Authentication Bypass</h3><p>An attacker may potentially bypass application authentication if login functionality is vulnerable.</p><h3>Sensitive Data Exposure</h3><p>Unauthorized access to database information may expose:</p><ul><li>User information</li><li>Customer records</li><li>Application data</li><li>Business information</li></ul><h3>Data Modification</h3><p>An attacker may potentially modify database records.</p><h3>Data Deletion</h3><p>In severe cases, unauthorized database operations could result in data loss.</p><h3>Business Impact</h3><p>A successful SQL Injection vulnerability may lead to:</p><pre>SQL Injection<br>      ↓<br>Unauthorized Database Access<br>      ↓<br>Sensitive Data Exposure<br>      ↓<br>Financial / Reputation Damage</pre><p>The actual severity should always be determined based on the demonstrated impact and application context.</p><h3>How to Prevent SQL Injection</h3><p>The best defense is to ensure that user input cannot modify the intended SQL query structure.</p><h3>1. Use Parameterized Queries</h3><p>Instead of directly combining input with SQL, use parameters.</p><p>Example:</p><pre>SELECT * FROM users<br>WHERE username = ?;</pre><p>The user-provided value is supplied separately from the SQL statement.</p><h3>2. Use Prepared Statements</h3><p>Prepared statements help separate SQL commands from user-provided data.</p><h3>3. Validate Input</h3><p>Applications should validate input according to expected formats.</p><p>For example, if an ID is expected to be numeric:</p><pre>Expected:<br>123</pre><pre>Unexpected:<br>abc</pre><p>Input validation is useful as an additional security control but should not replace parameterized queries.</p><h3>4. Follow Least Privilege</h3><p>Database accounts used by applications should have only the permissions they require.</p><p>An application should not unnecessarily use a highly privileged database account.</p><h3>5. Handle Errors Securely</h3><p>Avoid exposing detailed database errors to users.</p><p>Do not reveal unnecessary information such as:</p><ul><li>SQL queries</li><li>Database usernames</li><li>Table names</li><li>Column names</li><li>Database versions</li><li>Internal system information</li></ul><h3>6. Use Secure Database APIs</h3><p>Developers should use secure ORM/database APIs and avoid unsafe construction of raw SQL queries with untrusted input.</p><h3>Practice with PortSwigger Labs</h3><p>One of the best ways to understand SQL Injection is through hands-on practice.</p><p><strong>PortSwigger Web Security Academy</strong> provides intentionally vulnerable labs that allow beginners to learn web security in a safe environment.</p><p>A useful learning progression is:</p><pre>SQL Injection Basics<br>        ↓<br>WHERE Clause Testing<br>        ↓<br>Authentication Bypass<br>        ↓<br>UNION-Based SQLi<br>        ↓<br>Database Information<br>        ↓<br>Blind SQL Injection<br>        ↓<br>Time-Based Blind SQL Injection</pre><h3>Recommended Lab Workflow</h3><pre>Read the Lab Objective<br>        ↓<br>Identify Input<br>        ↓<br>Capture Request in Burp Suite<br>        ↓<br>Find Interesting Parameter<br>        ↓<br>Establish Baseline<br>        ↓<br>Test Controlled Input<br>        ↓<br>Compare Responses<br>        ↓<br>Understand the Behavior<br>        ↓<br>Solve the Lab<br>        ↓<br>Write Your Notes</pre><p>The most important part is not memorizing a large list of payloads.</p><p>Instead, ask yourself:</p><p><strong>“Why did this input change the application’s behavior?”</strong></p><p>That mindset will help you become a better VAPT tester.</p><h3>Key Takeaways</h3><p>Here are the main points to remember:</p><ul><li>SQL Injection is caused by unsafe handling of user-controlled input in SQL queries.</li><li>SQLi can affect web applications and APIs.</li><li>Common types include Error-Based, Union-Based, Boolean-Based Blind, and Time-Based Blind SQL Injection.</li><li>Burp Suite is useful for manually analyzing and modifying HTTP requests.</li><li>SQL Injection testing should always be performed with proper authorization.</li><li>Parameterized queries and prepared statements are important defenses.</li><li>Database accounts should follow the principle of least privilege.</li><li>Detailed database errors should not be exposed to users.</li><li>VAPT findings should include clear evidence, impact, severity, and remediation.</li><li>Practical labs are one of the best ways to understand SQL Injection.</li></ul><h3>Conclusion</h3><p>SQL Injection is an important vulnerability for anyone starting a career in <strong>Web Application Security or VAPT</strong>.</p><p>Understanding SQL Injection is more than learning payloads. A good security tester should understand how applications communicate with databases, how user input reaches SQL queries, how vulnerable behavior can be identified, and how developers can fix the underlying issue.</p><p>A strong learning path is:</p><pre>Learn the Concept<br>      ↓<br>Understand the Request<br>      ↓<br>Practice in a Safe Lab<br>      ↓<br>Use Burp Suite<br>      ↓<br>Analyze the Response<br>      ↓<br>Understand the Root Cause<br>      ↓<br>Learn the Fix<br>      ↓<br>Document the Finding</pre><p>Keep practicing with intentionally vulnerable applications, document your findings, and focus on understanding the <strong>reason behind the vulnerability</strong>.</p><p>That foundation will be valuable as you progress toward more advanced web application security and VAPT topics.</p><p><strong>Happy Learning &amp; Ethical Testing! 🔐</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7769e8233af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Browsers Talk to Servers: HTTP Demystified for Beginners]]></title>
            <link>https://medium.com/@thanmai01/how-browsers-talk-to-servers-http-demystified-for-beginners-0cb1e3307967?source=rss-1a78ecdeb22f------2</link>
            <guid isPermaLink="false">https://medium.com/p/0cb1e3307967</guid>
            <category><![CDATA[web-security]]></category>
            <dc:creator><![CDATA[Thanmai]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 11:06:20 GMT</pubDate>
            <atom:updated>2026-08-03T11:06:20.981Z</atom:updated>
            <content:encoded><![CDATA[<h3>-&gt;Introduction</h3><p>The web works because browsers and servers communicate using HTTP (Hypertext Transfer Protocol). Every website you open sends and receives HTTP messages.</p><h3>-&gt;What is HTTP?</h3><p>HTTP is a protocol that allows communication between:</p><ul><li>Client (Browser)</li><li>Server (Website)</li></ul><p>Example:</p><p>You type: <a href="https://example.com/">https://example.com</a></p><p>Browser sends a request.</p><p>Server sends back a response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rxkfImUn-CbbfE8-TSJltQ.png" /></figure><h3>-&gt;HTTP Request</h3><p>Explain every part.</p><h3>-&gt;Request Line</h3><p>Get /login HTTP/1.1</p><p>Meaning for above terms</p><ul><li>GET → Method</li><li>/login → Resource</li><li>HTTP/1.1 → Protocol Version</li></ul><h3>-&gt;Headers</h3><p>Example:</p><p>Host: example.com</p><p>User-Agent: Chrome</p><p>Cookie: session=abc123</p><p>Headers contain extra information.</p><h3>-&gt;Body</h3><p>Used mainly in POST requests.</p><p>Example:</p><p>username=admin</p><p>password=test123</p><h3>-&gt;HTTP Methods</h3><ul><li>GET : Retrieves data from the server without making any changes.</li></ul><p>ex: 📖 Read a book from the library.</p><ul><li>POST : Sends new data to the server to create a resource or perform an action.</li></ul><p>ex: ➕Donate a new book to the library.</p><ul><li>PUT : Updates or completely replaces an existing resource on the server.</li></ul><p>ex:✏️ Replace an old edition with a new one</p><ul><li>DELETE : Removes a specified resource from the server.</li></ul><p>ex: 🗑️ Remove a damaged book from the library.</p><h3>-&gt;HTTP Response</h3><p>Example:</p><p>HTTP/1.1 200 OK</p><p>Content-Type: text/html</p><p>Set-Cookie: session=xyz123</p><p>Above it Explain about-</p><p>Status Code, Headers, Body.</p><h3>-&gt;Common Status Codes</h3><p><strong>*200 OK</strong> : Request processed successfully.</p><p><strong>*301 Redirect</strong> : The requested resource has been permanently moved to a new URL.</p><p><strong>*302 Temporary Redirect</strong> : The requested resource has been temporarily moved to a different URL.</p><p><strong>*400 Bad Request</strong> : The server cannot process the request because it is invalid or malformed.</p><p><strong>*401 Unauthorized</strong> : Authentication is required because the user has not provided valid login credentials.</p><p><strong>*403 Forbidden</strong> : The server understands the request but refuses to allow access.</p><p><strong>*404 Not Found </strong>: The requested resource or page could not be found on the server.</p><p><strong>*500 Internal Server Error</strong> : The server encountered an unexpected error while processing the request.</p><h3>-&gt;Real-world example</h3><p>Login page</p><p>Browser sends</p><p>POST /login</p><p>Server checks credentials.</p><p>Returns</p><p>200 OK</p><p>or</p><p>401 Unauthorized</p><h3>Key Takeaways</h3><p>✔ HTTP is client-server communication</p><p>✔ Requests go to server</p><p>✔ Responses come back</p><p>✔ Burp Suite captures these requests</p><h3>-&gt;HTTPS (HyperText Transfer Protocol Secure)</h3><p>HTTPS is the secure version of HTTP. It encrypts all communication between your browser and the web server using <strong>SSL/TLS</strong>, ensuring that sensitive information such as login credentials, personal data, and payment details cannot be easily read or modified by attackers during transmission.</p><h3>-&gt;Why is HTTPS Important?</h3><p>When you visit a website using HTTPS, your browser first verifies the website’s digital certificate and establishes an encrypted connection with the server. Once this secure connection is created, all data exchanged between the browser and the server is encrypted, protecting it from eavesdropping, tampering, and man-in-the-middle attacks.</p><h3>-&gt;HTTP vs HTTPS</h3><p>*Http:</p><ul><li>Data is sent in plain text</li><li>Less secure.</li><li>Uses port 80</li><li>URL starts with http://</li><li>No padlock icon</li><li>Suitable for non-sensitive websites.</li></ul><p>*Https:</p><ul><li>Data is encrypted using SSL/TLS</li><li>Highly secure</li><li>Uses port 443</li><li>URL starts with https://</li><li>Displays a padlock icon in the browser</li><li>Recommended for all modern websites</li></ul><h3>-&gt;Real-World Example</h3><p>Imagine you’re logging into your online banking account.</p><ul><li>If the website uses <strong>HTTP</strong>, your username and password travel across the internet in plain text, making them vulnerable if intercepted.</li><li>If the website uses <strong>HTTPS</strong>, your credentials are encrypted before being sent. Even if someone intercepts the data, they cannot read or use it without the encryption key.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nMTboi1gj0URgneov9vi_Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0cb1e3307967" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Helllo ppl,,,]]></title>
            <link>https://medium.com/@thanmai01/helllo-ppl-08bd475cb3ce?source=rss-1a78ecdeb22f------2</link>
            <guid isPermaLink="false">https://medium.com/p/08bd475cb3ce</guid>
            <dc:creator><![CDATA[Thanmai]]></dc:creator>
            <pubDate>Sat, 20 Dec 2025 14:42:57 GMT</pubDate>
            <atom:updated>2025-12-20T14:42:57.041Z</atom:updated>
            <content:encoded><![CDATA[<p>Helllo ppl🥳,,,</p><p>Thanks for reading my first blog about “<strong>Offensive security intro</strong>” .</p><p>Let’s starttttttttttttt…🏃‍</p><p><strong><em>The concept of offensive security:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RAHWSYjIV9MDlSP2YkeKbg.png" /></figure><p>The use of offensive security intro in cyber security uses ethical hackers to simulate real-world cyberattacks (like Penetrarion, testing, red teaming, social engineering) against organization system it discover and exploits vulnerabilities.</p><ul><li>Risk identification</li><li>Incident response</li><li>proactive vulnerability discovery</li></ul><p><strong>Tools &amp; Platforms</strong></p><ul><li><a href="https://www.google.com/search?gs_ssp=eJzj4tVP1zc0TK_ItSwxMipRYDRgdGDwEspPS0vNK84sS1UoTk0uLcosqQQA3vUMWw&amp;q=Kali+Linux&amp;rlz=1C1CHBD_en-GBIN1168IN1168&amp;oq=offensive+&amp;gs_lcrp=EgZjaHJvbWUqEAgBEC4YxwEYsQMY0QMYgAQyBggAEEUYOzIQCAEQLhjHARixAxjRAxiABDIHCAIQABiABDIHCAMQABiABDIHCAQQABiABDIGCAUQRRg8MgYIBhBFGDwyBggHEEUYPNIBCDk4MjdqMGo3qAIAsAIA&amp;sourceid=chrome&amp;ie=UTF-8&amp;mstk=AUtExfBxijfhLt_loDX-B2-uc0RDjUN3qM2BgAYE87tmSreXcY3Rv56H9OG-JcItMuQiY2_cgUFWmbbdC_3BT8oVFx0WWaUbrh1n6tb5rhYZXVJBsMbIjI848ASekaKEVbUb7lo42hc6PSn46LKrMJOvM0ctciaBUU1rXoKKz_MvisLKux9WXSu8As5DHyETAEkcLmxXyXviaY2VIK1ObXgQKFKyx0NZhKDjJLVWqbDtYRXOkZz5FObOcAMYPUwYnLN3j5p5CYie1eaNwRCjeBlVTrxz5RC5a_CTORpP4n1vsvLCHF41kSiGbOxpTQzFtvjJfQ&amp;csui=3&amp;ved=2ahUKEwiE57LbrMyRAxVds1YBHRjBGK4QgK4QegQIBRAB"><strong>Kali Linux</strong></a>: A popular operating system for penetration testing.</li><li><a href="https://www.google.com/search?gs_ssp=eJzj4tVP1zc0TK_ItSwxMipRYDRgdGDwEspPS0vNK84sS1UoTk0uLcosqQQA3vUMWw&amp;q=Metasploit&amp;rlz=1C1CHBD_en-GBIN1168IN1168&amp;oq=offensive+&amp;gs_lcrp=EgZjaHJvbWUqEAgBEC4YxwEYsQMY0QMYgAQyBggAEEUYOzIQCAEQLhjHARixAxjRAxiABDIHCAIQABiABDIHCAMQABiABDIHCAQQABiABDIGCAUQRRg8MgYIBhBFGDwyBggHEEUYPNIBCDk4MjdqMGo3qAIAsAIA&amp;sourceid=chrome&amp;ie=UTF-8&amp;mstk=AUtExfBxijfhLt_loDX-B2-uc0RDjUN3qM2BgAYE87tmSreXcY3Rv56H9OG-JcItMuQiY2_cgUFWmbbdC_3BT8oVFx0WWaUbrh1n6tb5rhYZXVJBsMbIjI848ASekaKEVbUb7lo42hc6PSn46LKrMJOvM0ctciaBUU1rXoKKz_MvisLKux9WXSu8As5DHyETAEkcLmxXyXviaY2VIK1ObXgQKFKyx0NZhKDjJLVWqbDtYRXOkZz5FObOcAMYPUwYnLN3j5p5CYie1eaNwRCjeBlVTrxz5RC5a_CTORpP4n1vsvLCHF41kSiGbOxpTQzFtvjJfQ&amp;csui=3&amp;ved=2ahUKEwiE57LbrMyRAxVds1YBHRjBGK4QgK4QegQIBRAD"><strong>Metasploit</strong></a>: A framework for developing and executing exploits.</li><li><strong>Burp Suite</strong>: A web application security testing tool.</li><li><a href="https://www.google.com/search?gs_ssp=eJzj4tVP1zc0TK_ItSwxMipRYDRgdGDwEspPS0vNK84sS1UoTk0uLcosqQQA3vUMWw&amp;q=Nmap&amp;rlz=1C1CHBD_en-GBIN1168IN1168&amp;oq=offensive+&amp;gs_lcrp=EgZjaHJvbWUqEAgBEC4YxwEYsQMY0QMYgAQyBggAEEUYOzIQCAEQLhjHARixAxjRAxiABDIHCAIQABiABDIHCAMQABiABDIHCAQQABiABDIGCAUQRRg8MgYIBhBFGDwyBggHEEUYPNIBCDk4MjdqMGo3qAIAsAIA&amp;sourceid=chrome&amp;ie=UTF-8&amp;mstk=AUtExfBxijfhLt_loDX-B2-uc0RDjUN3qM2BgAYE87tmSreXcY3Rv56H9OG-JcItMuQiY2_cgUFWmbbdC_3BT8oVFx0WWaUbrh1n6tb5rhYZXVJBsMbIjI848ASekaKEVbUb7lo42hc6PSn46LKrMJOvM0ctciaBUU1rXoKKz_MvisLKux9WXSu8As5DHyETAEkcLmxXyXviaY2VIK1ObXgQKFKyx0NZhKDjJLVWqbDtYRXOkZz5FObOcAMYPUwYnLN3j5p5CYie1eaNwRCjeBlVTrxz5RC5a_CTORpP4n1vsvLCHF41kSiGbOxpTQzFtvjJfQ&amp;csui=3&amp;ved=2ahUKEwiE57LbrMyRAxVds1YBHRjBGK4QgK4QegQIBRAG"><strong>Nmap</strong></a>: A network scanner.</li></ul><p>The common techniques of offensive security intro:</p><p><strong><em>Penetration testing :</em></strong></p><p>Penetration testing was authorized simulated attacks on a system to find vulnerabilities.</p><p><strong><em>Red teaming:</em></strong></p><p>It was full scale adversarial campaign, often involving multiple tactics to test an entire security program.</p><p><strong><em>Vulnerability scanning:</em></strong></p><p>It is a tool to scan for know weakness and map out potential attack paths.</p><p>Mitigations in the offensive security intro :</p><p><strong>ATTACK MITIGATION:</strong></p><p>Works for Mitigation</p><ol><li><strong>Identify Weaknesses:</strong> OffSec experts use attacker techniques to find gaps (e.g., misconfigurations, weak passwords, unpatched software, logic flaws).</li><li><strong>Exploit &amp; Document:</strong> They demonstrate <em>how</em> these vulnerabilities can be exploited, showing the real impact (e.g., gaining access, stealing data).</li><li><strong>Report &amp; Prioritize:</strong> Findings are detailed in reports, prioritizing critical issues that pose the biggest risk.</li><li><strong>Remediate:</strong> Organizations then patch, reconfigure, update, or strengthen controls to fix the identified problems.</li><li><strong>Verify:</strong> Often, follow-up testing confirms that the mitigation efforts were successful.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*8WSi9SKbYOh2m5yuhyxK-w.png" /></figure><p><strong><em>essential 8 mitigation strategies</em></strong></p><p>▪ application control ▪ patch applications ▪ configure Microsoft Office macro settings ▪ user application hardening ▪ restrict administrative privileges ▪ patch operating systems ▪ multi-factor authentication ▪ regular backups.</p><p>Offensive security has a profound impact by shifting an organization from a one, allowing it to identify, test remediate vulnerabilities before malicious actor can exploit them.</p><p><strong><em>Real-World Educational Example: The “FakeBank” Simulation</em></strong></p><p>A standard real-world introduction to this field is the TryHackMe “Offensive Security Intro” module, which simulates a controlled attack on a mock financial institution.</p><ul><li>Objective: Gain unauthorized access to a banking application and transfer $2,000 to a personal account.</li><li>The Reconnaissance: Users use GoBuster, a directory brute-forcing tool, to scan the website for hidden pages.</li><li>The Discovery: The tool reveals a hidden administrative directory (e.g., /bank-transfer) that is not linked on the public homepage.</li><li>The Exploitation: By accessing this unauthenticated admin portal, the user can execute a transfer, proving that a real attacker could drain funds due to poor access controls.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*GzsK9aZVXcNgiUgj6gILZQ.jpeg" /></figure><p>The conclusion of an introduction to offensive security emphasizes that it is an <strong>essential, proactive component</strong> of a mature cybersecurity strategy, not just an optional measure. The core idea is encapsulated by the mindset: <strong>“to beat a hacker, you must think like one”</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08bd475cb3ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>