<?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 Firat Demir on Medium]]></title>
        <description><![CDATA[Stories by Firat Demir on Medium]]></description>
        <link>https://medium.com/@firat.demir1337?source=rss-da047d6f977f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WNub48ymFOWPUgkGecDPlg.jpeg</url>
            <title>Stories by Firat Demir on Medium</title>
            <link>https://medium.com/@firat.demir1337?source=rss-da047d6f977f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:59:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@firat.demir1337/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[TryHackMe Reset Writeup]]></title>
            <link>https://infosecwriteups.com/tryhackme-reset-writeup-446a2bb3f4d8?source=rss-da047d6f977f------2</link>
            <guid isPermaLink="false">https://medium.com/p/446a2bb3f4d8</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[writeup]]></category>
            <dc:creator><![CDATA[Firat Demir]]></dc:creator>
            <pubDate>Mon, 08 Jul 2024 18:22:49 GMT</pubDate>
            <atom:updated>2024-07-30T07:19:51.754Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5q4cQAMZEthNxFzEWinNFQ.png" /></figure><p>In this walkthrough, we are going to attack a hard-rated Active Directory machine on TryHackMe, utilizing various advanced techniques. The journey began with an <strong>Nmap</strong> scan and exploring <strong>SMB shares</strong>. Initial attempts with <strong>ExifTool</strong> yielded no results, but we discovered a <strong>user and password</strong> in a PDF file. Progress seemed stalled until employing <strong>RID brute-forcing</strong> and <strong>Kerbrute</strong> for user enumeration, leading to a successful <strong>AS-REP roasting</strong> attack. Using <strong>Hashcat</strong>, we cracked the hash for user Tabatha but struggled with others.</p><p>Examining Tabatha’s privileges via <strong>SMB</strong> revealed writable access, setting the stage for a phishing technique known as <strong>SCF</strong>. After setting up the payload and placing it on the SMB server, we launched <strong>Responder</strong> and captured an <strong>NTLMv2 hash</strong>, which was cracked with <strong>Hashcat</strong>.</p><p>With updated credentials, we verified users via <strong>rpcclient</strong> and tested privileges over various protocols using <strong>NXC</strong>. Gaining access through <strong>WinRM</strong> and <strong>RDP</strong>, we encountered active antivirus protection, which blocked typical post-exploitation tools. Adapting our approach, we utilized <strong>BloodHound</strong> to map the AD environment, identifying a path from Tabatha to Darla. By exploiting <strong>constrained delegation</strong> rights, we ultimately escalated to Domain Admin. Without speaking too much, let’s jump in!</p><p>Scenario:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rEbtt1eZxWP5J7EVCjKl-w.png" /></figure><h3>1. Enumeration</h3><p>As always we start with an nmap scan. -sV to get the version data, -sC to run default scripts and -o to save the output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c3e60ChZiNsZeC3vAzTMQg.png" /></figure><p>It looks like we are dealing with a classical AD built, nothing intresting here. We saved the hostname that we got from nmap scan to our /etc/hosts file and let’s check the SMB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*J6W7NV7afi6UNj-6ipl1OA.png" /></figure><p>We’ve found 3 files under onboarding directory, let’s check whether if we can find anything interesting in them or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7kuTJYFQS1-xyOSqYoQhQ.png" /></figure><p>Indeed we’ve got a possible username and a password, but unfortunately I wasn’t able to proceed with these credentials in any protocol or login interface.</p><p>We used NetExec’s --rid-brute function to obtain possible usernames from the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mUaxep5NAGpeVetTNO52nw.png" /></figure><p>We got a bunch of usernames, let’s check whether they are real or not with Kerbrute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*XQ6jzKKhMPpTOaZFi4qeFg.png" /></figure><p>It looks like these users actually does exist. Now let’s make an Asrep-Roasting attack to see if we can get anything with the users we have.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qs8quznn1OYiMlX-wH_Jvg.png" /></figure><p>We got Tabatha’s hash as well as 2 others, but no matter which wordlist I used or which rule I used, I couldn’t crack the other two.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t9n526_M5qty3Edg_Egw3Q.png" /></figure><p>But at least I was able to crack Tabatha’s hash. Now let’s check what she is can do with these credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uEXAn9W4AMRohue9lfWrHw.png" /></figure><h3>2. Exploitation</h3><p>In looks like we can write or upload stuff to the smb server. Here in this case we can do a <strong>Phising </strong>attack. We are going to make a <strong>SCF File Attack </strong>to get possible hashes of other users. This technique is taught in OSCP — Pen200. It can be summarized like this:</p><p>SCF (Shell Command File) attacks exploit a feature in Windows that automatically executes commands in SCF files when they are viewed in a directory. Here’s a brief overview of how these attacks work:</p><p>1. <strong>Crafting the SCF File</strong>:<br> — An attacker creates an SCF file containing a command to connect to a malicious server, like <em>\\attacker-server\share</em></p><p>2. <strong>Placing the SCF File</strong>:<br> — The attacker places the SCF file in a location the victim will access, such as a shared drive or an email attachment.</p><p>3.<strong> Capturing Credentials</strong>:<br> — When the victim’s system processes the SCF file, it attempts to authenticate to the attacker’s server, sending hashed credentials.<br> — The attacker captures these hashes.</p><p>4. <strong>Cracking the Hash</strong>:<br> — Using tools like Hashcat, the attacker cracks the captured hash to obtain the victim’s password.</p><p>We’ll firstly create a file ,name it randomly and Put an @ at the beginning of its name to make it on top of the files list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*2vKh7_Wf-KPIigTwzMNQDw.png" /></figure><p>Now we&#39;re going to apply stage 2. Upload the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*d4n_EMyrKWtQN-F7h9hzRw.png" /></figure><p>Now that we are ready to go, we can lauch responder to capture the hashes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*TvtujvLAftCao8T93SM_Fw.png" /></figure><p>After a short while ,we got a click on our “Gift” :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EtappPHmX67E0sG01Z5eKw.png" /></figure><p>looks like user “automation” just ran our .url file now we have it’s hash in NTLMv2 . Let’s crack it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MV9IVBqXBmoK46odEcC7Vw.png" /></figure><p>We have got the password, let’s add it to our passwords list and proceed to attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*HZFWoxLGdYLQgy1zymVnIg.png" /></figure><p>Checking what can we do on which protocol, I see we can log into Winrm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A_-cgj0yfMH4fUfFtvDozw.png" /></figure><p>As well as we can login rdp via Tabatha user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jMyqydHHy4vU_7ysgzT3qg.png" /></figure><p>Let’s log in winrm with automation’s account and check our privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qEiQbGo6b6Ab67uz_6GOeQ.png" /></figure><p>No dangerous token, no any interesting file, server is fully patched and up to date as what TryHackMe stated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ctrAlbBsl37z3yTYXg2PBg.png" /></figure><p>And the AV is running too, blocking our PE tools. Let’s check whether the Real-Time Protection is on or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*P-D2q9o80lft6G39UiH_fg.png" /></figure><p>Yes, it is working. Tried to shut it down too. But Access Denied</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*-pR0dOOMCVv_fY5HJinYgA.png" /></figure><p>After so many tries to bypass the AV and get my things working I finally decided to continue our operations remotely, not on the windows. We’ll firstly use bloodhound-python remotely to map out the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qT4VE6nUrZKMsf4OcrmfTA.png" /></figure><p>Let’s start to analyze what we have here.</p><h3>3. Privilege Escalation</h3><p>Well, the situation looks a bit “unfortunate” :D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EFHcPCgbDsdg--LWn4EWNA.png" /></figure><p>After some research, we discovered that the user “TABATHA_BRITT” has <strong>GenericAll</strong> privileges over “SHAWNA_BRAY”. This means that “TABATHA_BRITT” has full control over “SHAWNA_BRAY”.</p><p>In turn, “SHAWNA_BRAY” has <strong>ForceChangePassword</strong> control over “CRUZ_HALL”, allowing “SHAWNA_BRAY” to change “CRUZ_HALL”’s password.</p><p>Finally, “CRUZ_HALL” has <strong>GenericWrite</strong> permissions over “DARLA_WINTERS”, giving “CRUZ_HALL” the ability to modify properties of “DARLA_WINTERS”</p><p>Thankfully, bloodhound also explains to us how to exploit these kinds of misconfigurations. So let’s get into work! : )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*C6wLpCIsOHjLehubNIttww.png" /></figure><p>We’ll “reset” the password of those users, name of the machine suggests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V0TlUHORCufKexyX-m-Bgw.png" /></figure><p>Now we’ve got RDP control ever “DARLA_WINTERS” she is able to make Constrained Delegations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*h43Hdm3WjsK3pbcc6DPJ5g.png" /></figure><p>At this point, we’ll use Impacket’s getST.py tool to perform this attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*XmsPjlj8d5QXmfNdUe1cIA.png" /></figure><p>We’ll make the syntax up for our case and use cifs as service and export the ticket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gOJjuZ5D6uuwbGRrvRZH4A.png" /></figure><p>Boom, we elevated our privileges to the Administrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JcDi4Ob1-0BMrn4-FeylpA.png" /></figure><p>This was one of the best machine for me in THM, I enjoined it a lot. It was a fantastic experience for me, and I had a lot of fun solving the challenge and writing the walkthrough. Thanks for reading, and I hope you enjoyed it!</p><p>Please do not hesitate if you have any questions, you can reach me out from:</p><p>LinkedIN — <a href="https://www.linkedin.com/in/f%C4%B1rat-demir/">https://www.linkedin.com/in/f%C4%B1rat-demir/</a></p><p>Discord — @ rootofnull</p><p>E-Mail — Firat.Demir1337@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=446a2bb3f4d8" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/tryhackme-reset-writeup-446a2bb3f4d8">TryHackMe Reset Writeup</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe Takedown Writeup]]></title>
            <link>https://infosecwriteups.com/tryhackme-takedown-writeup-686bd324b1b3?source=rss-da047d6f977f------2</link>
            <guid isPermaLink="false">https://medium.com/p/686bd324b1b3</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Firat Demir]]></dc:creator>
            <pubDate>Tue, 12 Dec 2023 17:00:54 GMT</pubDate>
            <atom:updated>2023-12-22T04:35:01.607Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5CR1wKwzpucm6Rkie0HUA.jpeg" /></figure><p>Hello everyone ,this is my first writeup after passing <a href="https://medium.com/@firat.demir1337/my-oscp-journey-and-tips-tricks-18234cd40c5e">my OSCP exam</a>.</p><p>Today we are going to solve a machine from TryHackMe called “Takedown” that is listed as an Insane machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*C8ppZxOKeTvOTBi8eveQ2Q.png" /></figure><p>challenge link : <a href="https://tryhackme.com/room/takedown">https://tryhackme.com/room/takedown</a></p><p>But before dive in let’s check what we have in the pdf that is attached to this machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*8BZxHA2Z_Bskik-yK6-TRQ.png" /><figcaption>OPORDOVERCOOKEDRISOTTO.pdf</figcaption></figure><h3>1. Enumeration</h3><p>Let’s hop in since we did read the pdf and understood the objectives.</p><p>As always we are going to start with a basic nmap scan</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*ZcR7tFVeAHD_u6LtACu9gg.png" /></figure><p>As we can see from the above image ,only port 22 and 80 is open. So let’s start with 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bu8oiWmUqSTN9n9J8cRiWA.png" /></figure><p>We firstly visited the target to see if there’s anything interesting stands out, but looks like there are none.</p><p>let’s launch a web directory bruteforcer to create a map of the target. I use feroxbuster because it’s fast, user-friendly and so easy to customize.</p><p>We found 2 interesting stuff; “robots.txt” and “/inc”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*GkaWXMIcturflylE8mUMpg.png" /></figure><p>Let’s start with robots.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*bTgzAYz8FpcBj07WHQXFdQ.png" /></figure><p>robots.txt disallowing web bots to visit favicon.ico. When we check favicon we came to a conclusion that it is not an icon file, it is in fact a Portable Executable (PE) file.</p><p>Plus, its hash matches the hash we obtained from the pdf. According to the pdf that we have been provided the attacker before us ,gained the access via this file.</p><p>Now It’s time to check “/api” directory. When we run feroxbuster for that specific directory we’ll see that it has a directory named “agents”. We can come to the same conclusion by checking the source code of “favicon.ico”. As well as we can see 6 possible commands to run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*sdL_hCaVP5_q606dM9H1Dw.png" /><figcaption>strings output of favicon.ico</figcaption></figure><h3>2. Exploitation</h3><p>Let’s go and launch burp suite to have a close look-up into this directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VemXL66m4R_w4Ax4-yhi5A.png" /></figure><p>As you can see, we are getting 404 Not found. Let’s try to change the user agent to something else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Un9V8iNv7Kf4wYfMWYsa2g.png" /></figure><p>Now we are getting 200 OK with a possible UID and HOSTNAME. Let’s proceed to specify the “agent” and change the variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZnMMucdoZMKeRUKHdttkbw.png" /></figure><p>We gave the agent UID to the url, changed the content type to application/json and used “file” parameter that we obtain it’s intelligence from favicon.ico to test file read ability and successfully read the content of /etc/passwd.</p><p>After confirming that “upload” command works, let’s use “exec” command to our initial foothold on the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mtp8UaaQD1Nfcs2qeA1iuA.png" /></figure><p>We used a base64 encoded shell code to bypass the security, used pwncat-cs to automate the stabilizing shell process in order to have way more smooth experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hK-Ld7lPCt9rlU9N_ZY4HA.png" /></figure><p>And we got our shell. Yippiiiee : D</p><h3>3. Privilege Escalation</h3><p>We didn’t find anything interesting in our situational awareness stage. No SUID-GUID, we are not part of any interesting group, no capabilities, no wrongly configured root only file, we can&#39;t read or edit /etc/passwd , /etc/shadow or /etc/sudoers. HOWEVER, during the casual checks, I found an anonymous cronjob via pspy that runs every minute. Let’s zoom in.</p><p>We’re first going to upload pspy to the target machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ODMBiNNlAwvTXTwg5x_3qQ.png" /></figure><p>Make pspy an executable file and check the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CLWIZ55-XbXPwAe4QQK7-A.png" /><figcaption>Result of pspy64</figcaption></figure><p>There’s a weird file is running (/usr/share/diamorphine_secret/svcgh0st) in the background, let’s see what we can find about it from the google.</p><p>Looks like it’s a popular rootkit that has 1.5k stars from github and originally knows as “Diamorphine”.</p><ul><li><a href="https://github.com/m0nad/Diamorphine/tree/master">https://github.com/m0nad/Diamorphine/tree/master</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAYm2j81XxQubxFPvZiw0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*Fcm1-AMSmRmB5d3O7ARoOA.png" /></figure><p>Regarding to the creator of this toolkit, sending 64 signal to any pid makes us root. I love the sound of it! Let’s try it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*Pvja-uaihkcaMrEzAl2-6w.png" /></figure><h3>4. Post Exploitation</h3><p>Finally ,let’s capture those flags!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*KJD2jA9Y9e1IEpbAqhLgSQ.png" /><figcaption>User Flag</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*s4ZguCICUGyZQ_PcKujw2g.png" /><figcaption>Root Flag</figcaption></figure><p>Regarding to TryHackMe this is one of their 6 insane machines (there are more than 700 boxes in tryhackme). But I’d say it’s Medium-Hard. It was a great experience to me I had a lot of fun while solving it and writing the walkthrough. Thanks for reading, hope you enjoyed.</p><p>Please do not hesitate if you have any questions, you can reach me out from:</p><p>LinkedIN — <a href="https://www.linkedin.com/in/f%C4%B1rat-demir/">https://www.linkedin.com/in/f%C4%B1rat-demir/</a></p><p>Discord — @ rootofnull</p><p>E-Mail — Firat.Demir1337@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=686bd324b1b3" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/tryhackme-takedown-writeup-686bd324b1b3">TryHackMe Takedown Writeup</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My OSCP journey Tips&Tricks]]></title>
            <link>https://medium.com/@firat.demir1337/my-oscp-journey-and-tips-tricks-18234cd40c5e?source=rss-da047d6f977f------2</link>
            <guid isPermaLink="false">https://medium.com/p/18234cd40c5e</guid>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Firat Demir]]></dc:creator>
            <pubDate>Thu, 02 Nov 2023 18:18:04 GMT</pubDate>
            <atom:updated>2023-11-03T14:30:19.875Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g8e7Ja2maatitSHigFDKog.jpeg" /></figure><h3>1. Introduction</h3><p>Hello everyone<br>Today we are going to discuss about Offsec Certified Professional certification or aka OSCP and how you can beat it based upon my experience.I passed the oscp exam in my first try with 100/90 points <br>without Metasploit. I overkilled the exam if you want to take lessons from my mistakes/experiences hang thigt and grab a coffee.</p><h4>1.1 Whoami</h4><p>My name is Firat ,I am 21 years old. My interest in cyber security is from my childhood. I left the school when I was 15. I believe it was waste of time ,we (I) was learning nothing useful from there so I decided to leave the school and focus the improve myself. But things weren’t that straightforward ,someone needed work hard to bring food on the table.</p><p>I always tried to educate myself about how the things works ,seeing the big picture ,understanding the reason behind it.. I had a special interest about how to infiltrate the systems and exploit vulnerabilities so I started with learning programming. At the age of 17 I was fluent in Python ,I applied a job which required me to learn C# ,I did my internship in that company. for 3 years I worked in a restaurant and was trying to improve myself in my free time. Following 2 years I worked in a hotel as receptionist and other different roles.</p><h4>1.2 How it started</h4><p>I was hearing OSCP from every major player in the industry they said it’s challenging and worthy. I convinienced myself to take the OSCP ,to prove my knowledge to myself and earn industrial recognition. So in my last year at Tourism I was saving money up for my oscp.</p><p><em>When I look back to that time I am glad about this decision. Since I focused on OSCP ,things started to look organized. I believe overall it was a great opportunity to learn more and improve my skillset.</em></p><h3>2. Preperation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*qY6-Y8hB-aH3t7af1rKrjA.gif" /></figure><h4>2.1 Pre-preperation</h4><p>I started my oscp preperation back in november of 2022 in my first month I did nothing but watching ippsec/john hammond videos. I was taking notes about every video ,what they are doing ,how they are doing and exploring the unintended routes. The reason behind this is to make the methodology as a instinct. I was trying to make it as a reflex and I guess I succeed on this.</p><p>but before even beginning to pre-preparation ,I had fair amount of CTF experience so I had my basics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Vro1fWWYfcDz0bnR4h8qg.png" /><figcaption>TjNull’s vulnhub list</figcaption></figure><p>In my second month I started to work on <a href="https://docs.google.com/spreadsheets/u/1/d/1dwSMIAPIam0PuRBkCiDI88pU3yzrqqHkDtBngUHNCw8/htmlview">TjNulls vulnhub list</a>. I finished 60~ machines in a month and wrote short writeups about all the machines I solved. Overall I think this was the most enjoyable month for me. I improved my notes greatly thanks to those challenges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kp3mABneMCXqGda6ykDAhw.png" /><figcaption>My short writeups about each machine I solved from vulnhub</figcaption></figure><p>Once I achieved my goal on vulnhub I moved on to learn BoF ,I gave myself 15 days to master it ,thankfully after that time interval I felt comfortable about Buffer Overflow but sadly this is when offsec removed this from the exam structure. You can guess how I felt about it :D</p><p>After BoF I gave myself 10 days to understand the basics of the Active Directory. What is it ,how it works etc. I used HTB Academia. I love their technique to teach stuff. They teach you how to Administer an AD environment and how things works before trying to crack it.</p><p>This is when we have been hit by 2 massive earthquakes (I live in Turkey/Diyarbakir) we had to leave the city. I was afk for a while.</p><p>When the things settled I resumed my study. I bought a month of membership from CyberSecLabs to start applying what I knew about AD and practicing it but in my 3rd day of membership they announced this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*Y9SMYNveoEQFc7oM33DRng.png" /></figure><p>My vpn doesn’t working as well because of certification expire. So I decided to move on to the next stage. THM subscription.</p><p>I finished almost every path from there and ranked as 59th in Turkey</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I4_1da7C3IOvleqkCP500g.png" /></figure><p>But my main focus was Active Directory ,I knew if I fail that part in the exam I’ll most likely fail it. So I finished every single room in the TryHackMe regarding to AD (except the Insane ones)</p><p>once I was done with THM ,I moved on to the next stage : HackTheBox</p><p>at that point I knew I have enough experience about linux machines but I had very few experience about windows. So I focused on the TjNull’s HTB windows list and ignored the linux list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nQ35XA33cpIFg_UvlLXxZg.png" /><figcaption>TjNull’s HTB list</figcaption></figure><p>I was writing short writeups for Hackthebox as well. “<em>Anything you don’t write it down flies away” </em>this is the lesson I learned in a hard way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FW6kHY90YEq_gFh34prYjA.png" /><figcaption>My writeups for each HTB machine I solved from the TJNull’s list</figcaption></figure><p>I tried to solve as many HTB machine I can but pretty much like THM my main focus is AD in here as well ,so I started to solve AD-101 path from hackthebox ,they are great but in my opinion overkill for the oscp.</p><p>At this point I was drawning in my own notes. So once my vip membership expired on HTB I gave myself a week to rest and orginize my notes. Lastly I made a Pivoting schema for chisel as well as Windows and Linux Priviliege Escalation mindmaps based upon my experience so If I was ever stuck on any step of PrivEsc I had a road map to follow. Here they are :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4JE0vk1VbYn0f-lkcms2Q.png" /><figcaption>Chisel Work Logic</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AjaDDWFz2C_Ey83FYFxpbg.png" /><figcaption>Linux Privilege Escalation Mindmap</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GqxT6KLqPHlStOGqyukZPw.png" /><figcaption>Windows Privilege Escalation Mindmap</figcaption></figure><h4>2.2 Preperation — The PWK Time</h4><p>2.2.1 Exercises</p><p>I bought PWK in 15th of june ,in the first 2 weeks I finished KLCP (but I didn’t have exam voucher) to make a solid base for oscp. In my opinion KLCP has nothing to do with Pentesting it’s a certification for a linux based operation system so expect nothing more</p><p>Untill the last month of my pwk subscription I did read the pdf ,watched the videos ,solved the exercises and spent some time with Offsec Academia. Once I hit at least 80 percent of every module I started to work on the Challenge Labs</p><p>2.2.2 Challenges</p><p>Once I joined the challenge labs room of the offsec discord I felt lost :D we only seen 1 machine at one time but here in the challenge labs things are not that simple. There are subnetworks in challenges and you can’t revert one machine ,you can only revert entire challenge. That was a problem ,that means you need to exploit same vulnereability once again and setup your pivoting for your each try.</p><p>But pretty much like anything else ,once you have experience you can deal with it just fine. Challenge labs weren’t a nightmare for me. In fact I was enjoying it so much. Offsec did a great job on the challenge labs I believe. It’s realistic and still fun to play. Those were great times I still miss it :(</p><p>As what offsec says “Challenge labs can be seperated into two part : First 3 labs are Scenario and last 3 labs are Simulation”. I solved every Challenge labs at least twice in a month (except Skylark). The key thing here is I prepared full professional report for OSCP-A,B,C I highly recommend you the same. In the end you solved only a CTF if you cannot write an Exam report as how offsec specified since it’s very strict and doesn’t forgive.</p><h3>3. The Exam</h3><p>Unfortunutly in where I live you may experience random electrical cuts so I was afraid of the same thing that it might happen in my exam day. So I called the power distribution company and asked for the day I am intended the take my exam they said “No sir ,there’s no any kind of planned power cut or maintainence” to make things sure I told them to message me 30 minutes before any power cut in my district and indeed they sent me the messages so I knew I had 30 minutes to switch the power source.</p><h4>3.1 Pre exam preperations</h4><p>Once my PWK bundle expired I bought Proving Grounds Practice and tried to solve the machines from there. At this point I was feeling the burnout, since I was studying 100~ hours per week my last month I was very much sleeples and tired of all this stuff. So I couldn’t evaluate my PG Practice subscription like any other subscription I bought. But still I finished all the intermediate boxes and wrote my writeups about them.</p><p>I made a Todo list before taking the exam ,things like “buy a backup IPCam, solve this machine once again before taking it”. I did my shopping the day before the exam ,bought the redbulls and snacks. The night bofore the exam I was so nervous. I knew I have what it takes but you cannot control this feeling right? so I watched a nice movie ,tried to chill. Since my exam was scheduled to 9 AM of tomorrow I headed to bed at 10 PM but couldn’t sleep untill 2 AM no matter what I did.</p><h4>3.2 Big Day</h4><p>I woke up at 6 AM ,prepared my breakfest ,went to the bathroom and took a cold shower ,sat to my exam desk at 8 PM to check all my notes ,made sure I have all I need.</p><p>After that I started to create my exam environment, I used 4 workstations ,first one is for AD and vpn connection and rest of them for 3 stand alone. Launched my webservers , and all other stuff to not waste any time during my exam.</p><blockquote>I created a file named syntax.txt to hold most common tools’s syntaxes. So I won’t waste time to remember the syntax for an exact tool. It helped a lot ,you can find it <a href="https://pastebin.com/VPjnpjq2"><strong>here</strong></a></blockquote><p>I logged into proctoring interface ,showed my room ,exam desk they OK’d. Then the Id confirmation step ,it took little longer then it should. By the 9:10PM I started my exam</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*xLts4Qfvdyj80XtLv8bpHA.gif" /></figure><h4>3.2.1 AD Set</h4><p>Before beginning to my exam I reverted whole exam set once to make sure things are setup correctly. Once that is done fired up my auto-enumeration scans ,nmap and web crawlers to avoid wasting time while I was reading the “Objectives” from the flag submission panel. I made sure I fully understood that. When that is done I proceed to manually enumerate first AD machine I couldn’t get my foothold nearly 5 straight hours ,I had an alarm for beginning of the each hour to rest 10 minutes.</p><p>I was working on my exam the same way I was working on oscp-a,b,c I had hostnames, IP addresses ,next to them ports ,next to them a brief explaination of what it might be. I was writing down exactly what I found at what time. Bottom of that I had my detailed notes about each machine what I tried and what I didn’t. Below of that I had credential area for each machine like this“hostname-IP:username:hash:password”</p><p>I tried literally everything in my notes ,everything I knew but nothing was working plus there was couple of rabbit holes ,I tried to make it work but nothing coming up, at that point I knew I missed something small yet crucial. I stepped back reverted the AD set and restarted my enumertion on that machine after a 30 minute long break. There it is! I found what I was looking for.</p><blockquote>Do not make the mistake I did ,I didn’t take it serios a small detail but turned out it was my way into AD kingdom. Take your time and READ everything you have slowly.</blockquote><p>By 2PM I had my initial access into AD it took me 90 minutes to conquer whole AD kingdom. The hardest moment was the initial access for me ,I underestimated something and it cost me 5 hours of chasing ghosts. I can’t say anything about the AD set because of the obvious reason but what I can tell you is; be prepared for every kind of situation. Have a second way to get the things done ,I am so glad that on my second time of solving challenge labs I used different tools and paths.</p><p>Now I had 50 points ( + 10 Bonus points ) I could have relieve. Ordered some food ,went to balkony and tried to chill. That was the most crucial part of the exam now all I need is 20 points to finish this pain.</p><h4>3.2.2 Independent Machine 1</h4><p>There was a machine that seems very easy in every way but regardless of what I did, machine was giving me timeout. I reverted the machine 4 times nothing changed ,reached the support about the machine they said it’s all fine. I had credentials but I couldn’t use it in anywhere.</p><p>After what I learned whoever faced that machine ,failed. I still wonder how one can solve that box. it’s not about how skilled you are since it was giving timeout no matter how many things you try.</p><h4>3.2.3 Independent Machine 2</h4><p>After a long break (I saw the way into machine as soon as I saw the results from my enumartion scripts ,so I was chill) I came back to my exam desk I got my initial foothold into second independent machine and rooted it by 7:31PM</p><blockquote>I prepared myself specifically to Privesc techniques for Linux-Windows so at no point of my exam I struggled about PE. I also made sure that I am fluent in most common attack ways for the AD, those who are taught in PWK and not.</blockquote><p>Now I had 70 points to pass my oscp. I can approach the exam as it is a CTF</p><h4>3.2.4 Independent Machine 3</h4><p>This machine by far the most difficult machine ,it had unbelieveable amount of rabbit holes and things to try. Considering it is an exam machine you’re already experiencing the burnout to this point it was an insane box.</p><p>After a break I came back to my exam desk to solve this one. By this point it was around 11pm. I tried to check everything I had but I understood that I didn’t have enough time/patience to deepdive against every possibility. So I started to make a list of things to check and results of my checks. It helped a ton to visualise what I was facing. I got my foothold into this machine by around 12:02 AM ,this was the only machine I used a PE enumeration script ,I ran linpeas and took another 20 minutes of break.</p><p>Found something suspicious ,I tried to search it but got nothing ,no article about it ,hasn’t mentioned in any writeup… So I continued my research and found an exploit that might work against it. Tried my luck with that one and got the root access to this machine by 2:42AM.</p><p>Once I finished the third standalone I started to check every screenshot I have ,I made sure everything was set ,added few more SS to increase the detail rate so the person from offsec doesn’t struggle to understand whole proccess. Wrote a fully detailed walkthrough for each machine I solved to help with my final exam report tomorrow and went to sleep. around 4:32</p><p>I woke up at 7:59 ,had only 45 minutes from my exam time ,I tried to work on Independent machine 1 once again ,tried my best but result was still the same it was giving me timeout.. I checked all my screenshots once again ,triple checked the all hashes that I submitted the flag submission portal and finished my exam at 8:35 with 90 points.</p><h3>3. Report</h3><p>I closed the portal ,and disconnected my vpn. headed to bed but couldn’t sleep untill 12pm. I was exhausted at this moment. couldn’t sleep. 3 empty bottle of redbulls ,I had dark circles under my eyes so I decided to return the report writing proccess. started to write my report over the template that offsec provides for the oscp exam. Finished my report around 11 PM. But this stage was so stressful ,if I forget something critical I won’t have second report submintion chance as what offsec said “<em>your report is final.</em>” so I checked my report over and over again. Once I convininced myself about it I submitted the report.</p><h3>4. Post OSCP</h3><p>I knew I should have pass the exam ,I had enough points ,screenshots and well explained report I shouldn’t worry but it wasn’t something I can control. I was checking my email literally every 10 minutes. After a lifetime I got my results Monday 1PM.</p><p>There it is …. The very thing I worked so hard for it</p><p>Firstly got the result from my PEN-200 exam schedule panel</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IhKg9gnII1qXOr_Dfd5CgA.png" /></figure><p>And like 14 minutes after that I got the official Mail that states I passed the Exam!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*4ePqj7DcBLuyR01qwhB5Aw.png" /></figure><p>What a journey it was.. I tried harder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nuk3MecB1ruI4J5BSSQbkQ.jpeg" /></figure><h3>5. Tips And Tricks</h3><ul><li>Crackmapexec is your best friend ,master it before taking the exam.</li><li>If you find yourself in a situation where you’re scripting/coding something it’s most likely not the way. Step back and restart your enumeration.</li><li>Dump everything in every possible way when you owned a box. You might miss something critical ,always DC-Sync. Mimikatz doesn’t always give you the full results.</li><li>Enumartion is indeed the key ,when you stuck come back to enumeration step.</li><li>Time management is really important ,try to work with stopwatch from now on ,find the method that is suitable to you. People underestimate the importance of the freash head.</li><li>Keep It Simple, really.</li><li>Spray every user you found in every protocol that is possible, PWK teaches you this very well.</li></ul><h3>6. What’s next?</h3><p>My current plan is taking the CRTP ,HTB Rastalabs prolab ,CRTO and finally the OSEP in next 6 months if I can. I have a special interest about Active Directory in general ,I’ll be working on that for now.</p><p>You can reach me out from :</p><p>LinkedIN — <a href="https://www.linkedin.com/in/f%C4%B1rat-demir/">https://www.linkedin.com/in/f%C4%B1rat-demir/</a></p><p>Discord —@ rootofnull</p><p>E-Mail — Firat.Demir1337@gmail.com</p><p><strong>Thank you very much for your time ,hope I could helped : )</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18234cd40c5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>