root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat jeeves.md
// writeups

Jeeves

11 Nov 2017 · 10 min read · root access
Jeeves - maquina de Hack The Box

Executive summary — Jeeves is a Medium Windows box where port 80 is a decoy (an Ask Jeeves-style site with no vulnerabilities) and the real vector lives on the non-standard port 50000: a Jenkins instance with an unauthenticated Script Console, allowing arbitrary Groovy code execution on the server → immediate RCE (user flag). Enumerating the system turns up a KeePass database that, once cracked, holds an Administrator NTLM hash stored as a backup note: Pass-the-Hash gives SYSTEM access. The final twist: root.txt isn't where it looks — it's hidden in an NTFS Alternate Data Stream inside a decoy file.

PlatformHack The Box
Operating systemWindows
DifficultyMedium
StatusRetired
Target IP10.129.228.112

Attack map

[1] Recon -- nmap -p- reveals 80 (decoy), 135 RPC, 445 SMB, 50000 (Jetty/Jenkins)
        |
[2] Jenkins on :50000/askjeeves/ -- Script Console with no authentication (Groovy)
      +-> immediate RCE as jeeves\kohsuke  ->  user.txt
        |
[3] Local enumeration -- CEH.kdbx (KeePass database) in Documents
      exfiltrated in base64 through the Script Console itself
        |
[4] keepass2john + hashcat -m 13400 -- master password: moonshine1
        |
[5] pykeepass -- "Backup stuff" entry holding the Administrator NTLM hash
        |
[6] impacket-psexec -hashes -- Pass-the-Hash -> nt authority\system
        |
[7] root.txt is not where it looks -- dir /R reveals an Alternate Data Stream
      (hm.txt:root.txt) -> more < hm.txt:root.txt  ->  root.txt

1. Initial reconnaissance

nmap -p- 10.129.228.112

-p- scans every TCP port (1-65535). Important: many HTB boxes hide the relevant service on a non-standard port.

80/tcp    HTTP
135/tcp   RPC
445/tcp   SMB
50000/tcp additional web service
nmap -sC -sV -p 80,135,445,50000 10.129.228.112 -oA scanresult

The service on port 50000 identifies as Jetty, the Java web server typical of applications like Jenkins.

🔒 Clearance required

This content is Root Access only. Everything else on the site — the free tier, the whole public library — stays open.

See Root Access plans

No account? Create one free then upgrade from your console.