<?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 Ji Cheng  on Medium]]></title>
        <description><![CDATA[Stories by Ji Cheng  on Medium]]></description>
        <link>https://medium.com/@jcngan97?source=rss-a771e2d2ad0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fSiaa5NQk1MfdSI6</url>
            <title>Stories by Ji Cheng  on Medium</title>
            <link>https://medium.com/@jcngan97?source=rss-a771e2d2ad0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:00:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jcngan97/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[Burp Suite Certified Practitioner Exam Review]]></title>
            <link>https://medium.com/@jcngan97/burp-suite-certified-practitioner-exam-review-737ba773af11?source=rss-a771e2d2ad0------2</link>
            <guid isPermaLink="false">https://medium.com/p/737ba773af11</guid>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[web-vulnerabilities]]></category>
            <dc:creator><![CDATA[Ji Cheng ]]></dc:creator>
            <pubDate>Sat, 13 Apr 2024 03:15:51 GMT</pubDate>
            <atom:updated>2024-04-13T03:15:51.874Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*71htPiuUwXE7ocD31ntm5A.png" /></figure><p>Portswigger’s Burp Suite Certified Practitioner (BSCP) exams has always been on my mind since it was released back in July 2021 and I finally got around to doing it. In this article, I will summarise my learning resources that I used and some tips and tricks that help me pass the examinations.</p><h3>Burp Suite’s Web Academy</h3><p>First off, I got to give a huge thanks to the Portswigger team for the extensive training catalog found on their website (<a href="https://portswigger.net/web-security/all-topics">https://portswigger.net/web-security/all-topics</a>). Best of all, all these training are free of charge. Although some of them might need Burp Suite Professional instead of their community version, it is still good to just glance through the solutions of those if you do not possess the professional version.</p><p>So the <strong>first step</strong> in accomplishing the BSCP certificate is to finish all the labs rated Apprentice and Practitioner within the Burp Suite labs (I cannot stress this enough). You will get hands on experience and also some nuances as to how some of the labs are being solved. Some of these topics includes Cross Site Scripting, SQL Injection and OS Command Injection. What I found more impressive is Portswigger’s labs on these particular topics: Host Header Injection, Web Cache Poisoning and Request Smuggling. These are not your common vulnerabilities that pop off alert boxes or give you remote code execution, but when chained appropriately, can allow you to perform some really interesting attacks.</p><h3>The Exam Objectives</h3><blockquote>If you know the enemy and know yourself, you need not fear the result of a hundred battles (Sun Tzu)</blockquote><p>The exam objectives which are detailed here: <a href="https://portswigger.net/web-security/certification/how-it-works#what-the-exam-involves">https://portswigger.net/web-security/certification/how-it-works#what-the-exam-involves</a>, contains 3 portions:</p><ol><li>Access any user account (Typically the famous user named “carlos”)</li><li>Use your user account to access the admin interface, perhaps by elevating your privileges or compromising the administrator account</li><li>Use your admin interface to read the contents of /home/carlos/secret (Poor carlos) from the server’s file system and submit the “flag”</li></ol><p>There are other golden nuggets of wisdom scattered around Portswigger’s exam preparation page, so I highly recommend you reading through all their articles. To summarise, before going into the exam, you got to have a game plan. You have to know which vulnerabilities to use for which part of the examination. For example, to access any user account, you will typically not use OS Command Injection, but maybe brute forcing the user’s credentials. Having such a checklist will keep you focus during the exam (As the time given to compromise the above 3 step chain for 2 machine is only 4 hours). Do not worry, I did not create the checklist myself as well, in the later part, I will recommend some cheatsheets which were extremely helpful for me during the exams.</p><p>Also, you will have to adapt your payloads during the examination in order to compromise accounts. What this means is that for example, popping an alert in XSS is cool and all, but that does not necessary get you anywhere in elevating your privileges. Rather, techniques describe in this section: <a href="https://portswigger.net/web-security/cross-site-scripting/exploiting">https://portswigger.net/web-security/cross-site-scripting/exploiting</a> might be more relevant in the examination. So what I did after finishing the labs was to adapt my XSS payloads so that I can perform exploitation of user accounts. I tested this using the labs to see if I can properly deliver the payload to the victim and compromise their account. This is not only for the XSS chapter, but other chapters as well. Keep this in mind while going through the labs and ask yourself, how can I adapt my payload to either elevate my privileges or read the /home/secret/carlos file.</p><h3>Tips and Tricks</h3><blockquote>Okay enough yapping, give us some practical tricks to ace the exam (Someone)</blockquote><p>In this section, I will provide some tips and tricks that helped me greatly with the examination.</p><ol><li><strong>Create a cheatsheet</strong> as to which vulnerability to use at which stage of the examination. I find that these two cheatsheets helped me greatly: <a href="https://github.com/botesjuan/Burp-Suite-Certified-Practitioner-Exam-Study">https://github.com/botesjuan/Burp-Suite-Certified-Practitioner-Exam-Study</a> &amp; <a href="https://github.com/DingyShark/BurpSuiteCertifiedPractitioner?tab=readme-ov-file">https://github.com/DingyShark/BurpSuiteCertifiedPractitioner?tab=readme-ov-file</a></li><li>Burp Suite Professional is required for the examination. This means that Portswigger is expecting you to use the scanning capabilities of their tool. So… scan away! I personally utilised the <strong>Active Scan++</strong> extension for this. Furthermore, look at these labs to learn how to do targetted scanning for maximum results. <a href="https://portswigger.net/web-security/essential-skills/using-burp-scanner-during-manual-testing">https://portswigger.net/web-security/essential-skills/using-burp-scanner-during-manual-testing</a></li><li>Building onto point 2, <strong>utilise the extensions in Burp</strong> out there. The 4 that I used the most (And which you will come across once you complete the labs) are: HTTP Request Smuggler, Param Miner, Hackvertor and JWT Editor</li><li>You are also allowed to <strong>use tools</strong> such as Ysoserial and SQLMap, use them to your advantage (And also at your peril. If it is your first time using those tools during the exams, you might find yourself struggling to make the tools work for you). Also Ysoserial might not work properly for certain Java versions, either use jenv to configure your Java environment or use additional flags. (<a href="https://forum.portswigger.net/thread/ysoserial-stopped-working-b5a161f42f">https://forum.portswigger.net/thread/ysoserial-stopped-working-b5a161f42f</a>)</li><li>Learn to some <strong>encoding and variations</strong> to your payload. Similar to real life scenarios, there might be filtering in place and the generic payloads that you used might be blocked by a WAF. Burp also have some good resources surrounding this: <a href="https://portswigger.net/web-security/essential-skills/obfuscating-attacks-using-encodings">https://portswigger.net/web-security/essential-skills/obfuscating-attacks-using-encodings</a></li><li><strong>Complete the 2 practice exams</strong>. These two practice exams are essential for giving you a taste of what the examinations are like. You will learn essential tricks that can save you valuable time during the exam.</li><li>Exam Proctoring: The proctoring process was rather fuss free. Main thing is that you will have to use a Burp project for the exam and upload them after you end your exams, do not forget to enable that at the start of your examination. You can use whatever browser necessary for the examination, I personally used the chromium browser that Burp launches.</li><li>Additional links which I found useful: <a href="https://github.com/Zoltan3422/portswigger-guide?tab=readme-ov-file">https://github.com/Zoltan3422/portswigger-guide?tab=readme-ov-file</a>, <a href="https://micahvandeusen.com/burp-suite-certified-practitioner-exam-review/">https://micahvandeusen.com/burp-suite-certified-practitioner-exam-review/</a></li></ol><h3>Conclusion</h3><p>Ultimately, I found the BSCP exam as a good test for my web exploitation skills. If you rather not pay the $99USD for the examination, I highly recommend doing all the free web academy labs as they are really good. That’s all for now, we shall meet again as I prepare to slain another dragon, or shall I say, a certain spider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qpt7yictvTE8f7rxAuF0MQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=737ba773af11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Palera1n Jailbreak iOS 15.7.7 for Penetration Testing]]></title>
            <link>https://medium.com/@jcngan97/palera1n-jailbreak-ios-15-7-7-for-penetration-testing-7645abd15724?source=rss-a771e2d2ad0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7645abd15724</guid>
            <category><![CDATA[jailbreak]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[mobile-pentesting]]></category>
            <dc:creator><![CDATA[Ji Cheng ]]></dc:creator>
            <pubDate>Wed, 05 Jul 2023 02:59:05 GMT</pubDate>
            <atom:updated>2023-07-06T09:09:02.845Z</atom:updated>
            <content:encoded><![CDATA[<p>While performing mobile application penetration testing, the app that you are testing might have a minimum OS version of <strong>iOS 15</strong>. With Checkra1n (<a href="https://checkra.in/">https://checkra.in/</a>) being the standard jailbreak software for iOS 14, we have to turn to other software for Jailbreaking iOS 15 and above.</p><p>Fortunately, the good folks over at Palera1n (<a href="https://palera.in/">https://palera.in)</a> have created a software just for that. Within the Palera1n website, they also included a user guide for using this Jailbreak (<a href="https://ios.cfw.guide/installing-palera1n/">https://ios.cfw.guide/installing-palera1n/</a>). In this article, I will run through some issues I had while installing and how I overcame the issues to be able to Jailbreak iOS 15.7.7 successfully.</p><p>The following environment is used:</p><ul><li>Host: MacOS Monteray 12.4</li><li>iPhone Model/Version: iPhone 7 Plus | iOS 15.7.7</li></ul><p>Do note that this Jailbreak is semi-tethered, which means that if you do restart your device, it will no longer be Jailbroken. However, it is pretty easy to run the Palera1n Jailbreak again.</p><h3>Palera1n Jailbreak Steps</h3><p>To download and set up Palera1n, simply follow the steps in this link: <a href="https://ios.cfw.guide/installing-palera1n/#installing-palera1n">https://ios.cfw.guide/installing-palera1n/#installing-palera1n</a>.</p><p>After downloading and setting up an alias for Palera1n (Follow the guide for this), this is where my steps differ from the one listed in the guide. I followed the steps as per the guide and wanted to setup Frida (<em>Tool used for Dynamic Analysis</em>) by downloading the .deb release from GitHub. However, I ran into an issue when installing the .deb release. The error message mentioned something about not finding the architecture for <strong>iphoneos-arm </strong>and that my iPhone was running <strong>iphoneos-arm64</strong> instead.</p><p>Digging around for this error message, I come across the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUHAr-1aZgeH8c37HlMcdg.png" /><figcaption>Source: <a href="https://www.reddit.com/r/jailbreak/comments/11shj7u/question_error_didnt_find_architectures/">https://www.reddit.com/r/jailbreak/comments/11shj7u/question_error_didnt_find_architectures/</a></figcaption></figure><p>After some researching, I realised that the default Palera1n Jailbreak is a <strong>rootless</strong> one, meaning that the Jailbreak stays in /var. This also meant that tweaks cannot control applications and needs to be updated. (<a href="https://www.reddit.com/r/jailbreak/comments/1194s3t/question_rootful_vs_rootless/">https://www.reddit.com/r/jailbreak/comments/1194s3t/question_rootful_vs_rootless/</a>)</p><p>Therefore, to resolve this, the following command must be ran to Jailbreak iOS 15.7.7 in a <strong>rootful</strong> setting: palera1n -f -c What this does is that it boots a fakefs and sets it up (<em>I have limited knowledge of why this sets up a rootful Jailbreak, more research is needed here</em>). You will then have to wait approximately 10 minutes for the fakefs to be set up.</p><p>Next, you will have to run palera1n -f to properly Jailbreak the device yet again. After this step, you would have successfully Jailbreak your iOS 15.7.7 device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MrLwINY1Ndn7d0cNhqQUaA.png" /><figcaption>Jailbroken iOS 15.7.7</figcaption></figure><p>Click on the Palera1n application and install Sileo which is the package manager for Palera1n Jailbreak (<em>No more Cydia</em>). During the installation, they will prompt you for a <strong>password</strong> which will be the password used when you SSH into the device.</p><p><strong>Summary of Jailbreak Commands</strong></p><pre># Follow Palera1n guide to setup palera1n as an alias <br>palera1n -f -c # Wait 10 minutes after this <br>palera1n -f # Do this after the 10 minutes </pre><h3>SSH Into Device</h3><p>Proceed to Sileo and download OpenSSH package</p><h4>Rootful Jailbreak SSH</h4><p>We cannot use SSH Over USB when I performed a rootful Jailbreak. As a result, we will have to first get the IP address of the device. This can be done by navigating to the connected Wi-Fi on the device and scrolling to the IP address section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OR4iHkKETE6qP7WTj6aRqA.png" /></figure><p>Next we can use the following command: ssh mobile@xx.xx.xx.xx to SSH into the device. The catch here is that in previous Jailbreaks, we are able to SSH as root user. However, for Palera1n jailbreak, we are only able to SSH as mobile user and use sudo to elevate privileges within the device. (<a href="https://github.com/opa334/Dopamine/issues/182">https://github.com/opa334/Dopamine/issues/182</a>)</p><h4>Rootless Jailbreak SSH</h4><p><em>Edit: I was not able to use the SSH commands below after performing a rootful Jailbreak. Therefore, I’m inclined to believe that the SSH over USB only works for rootless Jailbreak. More research to follow</em></p><p>In the Palera1n exploit page, it is mentioned that the SSH port for Palera1n exploit is set to Port 44. Therefore, we will have to use an SSH Tunnel Over USB tool (<em>iproxy</em>)to proxy all traffic going towards Port 44 to the usual SSH port of 22. Here are the steps:</p><pre># Installing iproxy for Mac<br>brew install libusbmuxd <br><br># Setting up the proxy <br># Open up another Terminal to run this command <br>sudo iproxy 22 44 <br><br># SSH into the Device<br># Use the password when installing Sileo <br>ssh root@localhost </pre><h3>Installing Filza and Frida</h3><p>In this section, I will go through an extra step to setup your device for Mobile Application Penetration Testing. The main software we will be using for pen-testing of mobile applications is Frida (<a href="https://frida.re/">https://frida.re/</a>). However, you must ensure that the version of Frida installed on the Host machine and the device <strong>is the same</strong>. Else, you would not be able to connect to the corresponding Frida server.</p><p>Personally, I like to use Frida version 16.0.7 (At the time of writing). Here are the steps to download the specific version of Frida on both your device and host.</p><h4>Device</h4><p>We will first have to download Filza. First, add the following package into Sileo: <a href="https://tigisoftware.com/cydia">https://tigisoftware.com/cydia</a> and install Filza File Manager.</p><p>Next, go to the Release section of Frida GitHub and download the .deb version of Frida.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6KOIXemYHPmwb2jDqtruUA.png" /><figcaption>Release Section of Frida 16.0.7</figcaption></figure><p>On the host machine, use scp to copy the .deb file into the /var/mobile/Documents folder of iOS device. The command is as follows:</p><pre># Follow the steps in the SSH Into Device section to set up SSH <br>scp -r frida_16.0.7_iphoneos-arm.deb root@localhost:/var/mobile/Documents/frida_16.0.7_iphoneos-arm.deb</pre><p>Using Filza, we can navigate to the .deb file in the Documents folder and install the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3NaOOftg0lFWqF_x9w4vuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IhMfy3BpV90DaRBEpkYZkA.png" /></figure><h4>Host</h4><p>Go to <a href="https://pypi.org/project/frida-tools/#history">https://pypi.org/project/frida-tools/#history</a> and find the frida-tools release date that is the <em>closest to the release date</em> of the version of Frida you are using.</p><p>In this case, we are using Frida 16.0.7 which is released on 3rd December 2022. The frida-tools version we chose to use is 12.0.4, released on 7th December 2022. The following commands were used to install Frida version 16.0.7:</p><pre>sudo python3 -m pip install frida==16.0.7<br>sudo python3 -m pip install frida-tools==12.0.4</pre><p>With this set up, you can run frida-ps -Uai to check for all the applications running on your iOS device.</p><p>Here is a list of reference I used on this Jailbreak journey:</p><ul><li><a href="https://blog.akenofu.me/setting-up-iphone-8-ios-15-for-pen-testing-ios-apps-2023-burp-frida-objection-sileo/">https://blog.akenofu.me/setting-up-iphone-8-ios-15-for-pen-testing-ios-apps-2023-burp-frida-objection-sileo/</a></li><li><a href="https://medium.com/@justmobilesec/performing-a-jailbreak-with-palera1n-in-six-steps-65f943e5d777">https://medium.com/@justmobilesec/performing-a-jailbreak-with-palera1n-in-six-steps-65f943e5d777</a></li><li><a href="https://spaceraccoon.dev/from-checkra1n-to-frida-ios-app-pentesting-quickstart-on-ios-13/">https://spaceraccoon.dev/from-checkra1n-to-frida-ios-app-pentesting-quickstart-on-ios-13/</a></li></ul><p>As a note, please ensure that your device is running the A8-A11 chip before running the Palera1n Jailbreak. Like all Jailbreaks, do your own due dillegence before attempting it! Lastly, enjoy the process and if you run into any issues: palera1n --force-revert -f can revert the Jailbreak :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7645abd15724" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zero to almost hero to hero: My OSCP Journey 2022]]></title>
            <link>https://medium.com/@jcngan97/zero-to-almost-hero-to-hero-my-oscp-journey-2022-fc2ad62b1d59?source=rss-a771e2d2ad0------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc2ad62b1d59</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[offensive-security]]></category>
            <dc:creator><![CDATA[Ji Cheng ]]></dc:creator>
            <pubDate>Fri, 20 May 2022 03:12:11 GMT</pubDate>
            <atom:updated>2022-05-27T08:57:47.214Z</atom:updated>
            <content:encoded><![CDATA[<p>My journey to completing the Offensive Security Certified Professional (OSCP) examinations started back in 2021. I have just received my CompTIA Security+ Certificate and was taking a penetration testing module back in my university. Recognising that this is the career route I wanted, I turned towards the OSCP to hone in my pen-testing skills. This article summarises all the resources I used (Pros and Cons), the amount of machines I pwned in this 1 year journey and also lessons learnt throughout the process. Fair warning, the opinions expressed are solely my own and do not express the views or opinions of any organisation.</p><h3>Timeline and Background</h3><p>Coming into the preparation, I had basic Linux command line skills based off the modules taken in my university. I had basic security knowledge, networking and operating system knowledge as well. I have also used some of the tools present in Kali due to my involvement in several CTFs (Although I have never gotten anywhere near the leaderboards). For timeline, I started out with TryHackMe absolute beginner path, followed by pwning my first HackTheBox machine in July 2021. In December 2021, Offensive Security threw me a curveball by introducing changes to their OSCP examinations (<a href="https://www.offensive-security.com/offsec/oscp-exam-structure/">https://www.offensive-security.com/offsec/oscp-exam-structure/</a>). My first attempt was on 7 April 2022 and second attempt which I passed was on 11 May 2022.</p><h3>Resources Utilised</h3><p><em>Resources are listed chronologically by when I used them during my journey. At the end of the article, I would also rank the resources on their practically in preparing for the OSCP.</em></p><p>Tj_Null Reference list of machines: <a href="https://docs.google.com/spreadsheets/d/1dwSMIAPIam0PuRBkCiDI88pU3yzrqqHkDtBngUHNCw8/edit#gid=1839402159">https://docs.google.com/spreadsheets/d/1dwSMIAPIam0PuRBkCiDI88pU3yzrqqHkDtBngUHNCw8/</a></p><ol><li>TryHackMe (<a href="https://tryhackme.com/">https://tryhackme.com/</a>)</li></ol><p>I started off my journey by completing the “Complete Beginner” path as well as “Web Fundamentals” path. These two paths gave me a baseline knowledge of the tools that I was expected to be using a lot throughout the OSCP course. It was quite a good refresher for me as I already know how to use some of the tools.</p><p>Pros: Step-by-step guidance on the usage of tools. Machines on this platform comes with plenty of hints to help out with beginners.</p><p>Cons: Not applicable to you if already have some knowledge of the tools.</p><p>2. HackTheBox (<a href="https://www.hackthebox.com/">https://www.hackthebox.com/</a>)</p><p>Next up, I utilised the list of machines provided by Tj_Null (Link provided above) and completed the machines on HackTheBox. The learning curve was pretty steep, but there were many fantastic walkthroughs available. For video learners, look now further than Ippsec (<a href="https://www.youtube.com/c/ippsec">https://www.youtube.com/ippsec</a>) who does fantastic walkthroughs on YouTube. For those who like to read guides, 0xdf (<a href="https://0xdf.gitlab.io/">https://0xdf.gitlab.io/</a>) is a great author of walkthroughs for various machines.</p><p>Pros: You will learn plenty of web application hacking methodology, some unique services as well as privilege escalation technique</p><p>Cons: The machines are pretty CTF-y, meaning that some have a unique quirks that will only appear on this machine. Some of the Windows machines were also pretty old, so some methods such as PowerShell might not work as well.</p><p>3. Virtual Hacking Labs (<a href="https://www.virtualhackinglabs.com/">https://www.virtualhackinglabs.com/</a>)</p><p>After working through almost 80% of the HackTheBox list, I moved on to VHL to practice on their machines. They provide a PDF guide to pen-testing and it was very comprehensive. Although I did not read through the whole guide, I would say that the privilege escalation portion of the guide is definitely worth a read. As for the machines, they are excellent in solidifying your initial foothold methodology. You will be tasked to enumerate through many content management systems (CMS) and to find exploits for them.</p><p>Pros: Excellent resource to learn how to enumerate CMS on websites as well as some SQL injection methods.</p><p>Cons: Large proportion of privilege escalation vectors are kernel. With that being said, my compiling skills levelled up quite a bit with some machines. There are also no walkthroughs for these machines, you will have to go onto Discord and ask for help.</p><p>4. Proving Grounds (<a href="https://www.offensive-security.com/labs/">https://www.offensive-security.com/labs/</a>)</p><p>After completing VHL, I subscribed to Offsec’s Learn One package, giving me access to Proving Ground (PG) practice labs. In my opinion, these labs were fantastic and the most useful labs in my preparation for the OSCP. My advise is to go through all the machines rated community easy, immediate and hard. You will definitely sharpen your overall methodology when completing these machines. Each machine comes with three hints as well as a walkthrough. You can redeem up to three hints and one walkthrough everyday. Through these machines, you are already slowly being taught the “Try Harder” mentality of Offsec as some of these machines are quite tough (But doable).</p><p>Pros: Machines are well structured and useful hints are provided when stuck. I learnt a lot from completing these machines.</p><p>Cons: No cons really, definitely recommend this.</p><p>5. PWK Labs</p><p>Lastly, the PWK labs themselves. The PWK labs allowed me to truly understand the way Offsec sets machines and going through it built my confidence for the examinations. (More on the Active Directory set later) Going through the 5 retired machines were definitely a plus and it helped me solidify my enumeration methodology as well as various privilege escalation methods. You will also have to learn various pivoting methods to pivot through the various subnets to reach certain machines. It is also through these labs that I was exposed to the Offsec Discord, which are filled with like-minded individuals going through the course as well. There are also wonderful student admins that will give you some hints if you are stuck. Also, do not skip out on the PWK notes as well. This notes contain valuable information which will allow you to complete the PWK labs easier.</p><p>Pros: Machines are created by Offsec, so you get a feel of what some machines might be like.</p><p>Cons: Machines are hosted on a shared network, meaning that if some students do not clean up of their exploit, you might see some artefacts lying around. Sometimes, when a student resets a machine, your machines will be reset as well.</p><p><strong>Active Directory (AD) Preparation</strong></p><p>In December 2021, Offsec changed their OSCP examination structure to include an Active Directory component. Till then, I did not prepare for AD and immediately went to find resources on it. After going through the preparations, the main source of your AD preparation should come from the PWK notes as well as PWK labs. Compared to other resources such as PG, HackTheBox or even CyberSecLabs, the AD sets in PWK labs consists of a few domain controllers and one domain admin machine. This is similar to the examination structure as announced by Offsec, stating that the AD component will consist of 3 machines in total and a complete exploitation of the whole AD chain is required to receive the points. Therefore, as compared to the standalone AD machines, the PWK labs will help you the most for your preparation.</p><p>I went ahead to purchase a single month subscription of CyberSecLabs to have access to their AD labs. They were good practice for some AD attacks but some require higher level of knowledge such as AMSI bypass which were out of scope for the OSCP. Therefore, use CyberSecLabs with discretion for your AD preparation.</p><p>Here are some other resources I used to sharpen my general AD knowledge:</p><ul><li>The Cyber Mentor’s Walkthrough of TryHackMe Attackive Directory: <a href="https://www.youtube.com/watch?v=L8fK5-oTSws&amp;t=137s">https://www.youtube.com/watch?v=L8fK5-oTSws</a></li><li>Stealth Bits YouTube channel on AD attacks: <a href="https://www.youtube.com/Stealthbits">https://www.youtube.com/Stealthbits</a></li><li>AD Penetration Testing Mind Map: <a href="https://www.xmind.net/m/5dypm8/">https://www.xmind.net/m/5dypm8/</a></li><li>CyberSecLabs (<em>If you require standalone AD preparation</em>): <a href="https://www.cyberseclabs.co.uk/">https://www.cyberseclabs.co.uk/</a></li></ul><p><strong>Buffer Overflow Preparation</strong></p><p>In the new examination syllabus, buffer overflow machines might not appear, but if you are lucky, it might be one of the machines. Exploiting the buffer overflow vulnerability will give you a low-level shell which gives you 10 points. I said lucky because this 10 points is relatively easy to achieve, as long as you follow the necessary steps. I used only two resources to prepare for buffer overflow and both of them are amazing for it.</p><ul><li>The Cyber Mentor’s Buffer Overflow Made Easy Video: <a href="https://www.youtube.com/watch?v=ncBblM920jw&amp;t=2554s">https://www.youtube.com/watch?v=ncBblM920jw</a></li><li>TryHackMe Buffer Overflow Prep Room (Free): <a href="https://tryhackme.com/room/bufferoverflowprep">https://tryhackme.com/room/bufferoverflowprep</a></li></ul><p><strong>Privilege Escalation Preparation</strong></p><p>Besides going through the labs to sharpen your priv esc skills, I would highly recommend getting Tib3rius’s (<a href="https://twitter.com/0xtib3rius">https://twitter.com/0xtib3riu)</a> privilege escalation course. Do follow his twitter as there are regular discount coupons on various platforms for his course. There are also two separate TryHackMe rooms (One for Linux and one for windows) to practice the skills taught.</p><p><strong>Community</strong></p><p>Through my preparation, besides relying on just the notes and machines mentioned above, I was also very appreciative of the whole community as a whole. Reddit r/oscp (<a href="https://www.reddit.com/r/oscp/">https://www.reddit.com/r/oscp/</a>) is one of my favourite community as there are people there who will share their warstories. This not only inspired me to work harder but also learn from their mistakes and emulate their successes. Offsec’s discord is also a great place to meet like-minded individuals who are there to conquer the OSCP as well.</p><p><strong>Preparation Summary</strong></p><p>Here is a summary of the total machines I pwned throughout my OSCP preparation. Fair warning, I massively over prepared for it because I was not confident of my skills.</p><ul><li>Proving Grounds: 55 Machines (37 Linux + 18 Windows)</li><li>HackTheBox: 53 Machines (36 Linux + 17 Windows)</li><li>Virtual Hacking Labs: 46 Machines (37 Linux + 9 Windows)</li><li>PWK Labs: 45 Machines (Including AD sets)</li><li>CyberSecLabs: 6 AD Machines (Some required AMSI bypass which is out of scope for OSCP)</li></ul><p>As promised, here is my ranking of resources to use for preparation:</p><ul><li>Machines: PG &gt; PWK Labs &gt; Virtual Hacking Labs &gt; HackTheBox</li><li>Active Directory: PWK Labs &gt; PG &gt; CyberSecLabs &gt; HackTheBox</li><li>Buffer Overflow: TryHackMe + The Cyber Mentor’s YouTube</li></ul><h3>The Actual Examination</h3><p>I failed my first attempt with 30 points as I was unable to compromise the AD set. After looking back and reviewing, it is a mistake on my end and I was overly stuck on a rabbit hole (More on how to avoid it later). I spent 24 hours on it and was absolutely demoralised and exhausted after the exam. I spent the next 4 weeks recovering and not thinking about it. I got more confident in my preparation as well as sharpen my methods so as to not spend too much time on each component. On the second attempt, I continue to take regular breaks like my first and also learnt from those mistakes. I manage to crack the machines within 12 hours and took the next 6 hours or so to write my report. I proceeded to write my report within the first 24 hours because I still had access to the examination labs and I could still take additional screenshots if necessary. (After the 24 hours, your VPN access will be cut and no longer be able to access the labs, so take your screenshots!)</p><p><strong>Examination Tips</strong></p><p>Here are some tips that will hopefully help you in your examination. Of course, I would not be revealing any information about the actual machines of the exam, but these are tips that will make life easier:</p><ul><li>Schedule your examination early so as to book your preferred timing</li></ul><p>Do not book your examinations too late as the preferred time slots (Normally during the day), would be gone. I am assuming that most people work better throughout the day and therefore would prefer those slots.</p><ul><li>Read through the OSCP Exam Guide and Proctor Guide</li></ul><p>There are many nuggets of valuable information in these two guides that will greatly reduce the stress during exam day. For proctoring, make sure that you can move your laptop or webcam around freely because they will be checking your surroundings for any digital devices (These are not permitted). For the exam guide, take note of the section which describes how to take the screenshots for proofs as this is very important to proof that you have indeed compromise the machines.</p><ul><li>Take regular breaks and have your food options settled</li></ul><p>The exam is gruelling, but you do not have make it that way. Take regular breaks to step out of the room and relax. Have meals planned out so that when you are hungry, you can immediately go and have your food.</p><ul><li>Take the time to read through the exam control panel</li></ul><p>Once your examination starts, you will be given a unique link to the control panel. This is where you will submit your proof hashes as well as get more information of the machines allocated for you. Take a good 15 minutes or so to read through each description as there are valuable information. If you are lucky enough to get the buffer overflow machine, there will also be instructions on those. Do not immediately rush into the examinations, there are plenty of time for you to do so.</p><ul><li>Spend a maximum of 1 hour on each attack vector</li></ul><p>Unless you are extremely sure that you are on the correct attack path, spend only 1 hour on each vector before moving to the next. Make a note on your notes such as “TODO: Come back to perform more enumeration” and move on to the next attack vectors that you have identified. Repeat this after 1 hour and continuously go through the “TODOs” on your notes. This method will allow you to avoid spending an excessive time on a possible rabbit hole and try out other methods first.</p><h3>Conclusion + Extra Resources</h3><p>Overall, the OSCP has been a tough but rewarding journey. I feel that I got a lot out of the course, learning a variety of penetration testing technique as well as non-technical aspects such as note taking. Take the OSCP journey as a reward in itself, instead of rushing through it to simply gain the certificate. To end, I will provide some links to some resources and references which were extremely useful in my journey:</p><ul><li>HackTricks — Amazing guide on how to enumerate a whole variety of services: <a href="https://book.hacktricks.xyz/">https://book.hacktricks.xyz/</a></li><li>Revshells — Website to help you in generating reverse shells based on the OS as well as programming language: <a href="https://www.revshells.com/">https://www.revshells.com/</a></li><li>SQL Injection Cheatsheet: <a href="https://pentestmonkey.net/category/cheat-sheet/sql-injection">https://pentestmonkey.net/category/cheat-sheet/sql-injection</a></li><li>General Cheatsheet 1: <a href="https://liodeus.github.io/2020/09/18/OSCP-personal-cheatsheet.html">https://liodeus.github.io/2020/09/18/OSCP-personal-cheatsheet.html</a></li><li>General Cheatsheet 2: <a href="https://sushant747.gitbooks.io/total-oscp-guide/content/">https://sushant747.gitbooks.io/total-oscp-guide/content/</a></li><li>Exam Report Template: <a href="https://github.com/whoisflynn/OSCP-Exam-Report-Template">https://github.com/whoisflynn/OSCP-Exam-Report-Template</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc2ad62b1d59" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>