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

Odori

15 Oct 2026 · 10 min read · root access
Odori — Hack The Box machine

Executive summary — Odori is not attacked over the network but through a virtual machine disk that has to be downloaded separately. Its contents, a BitLocker-encrypted Windows, fall to a weak password; inside, a service credential protected with DPAPI is decrypted offline and turns out to be the SSH password of a user on the Linux target. From there to root are two permission mistakes: SSH's ForceCommand is writable by the restricted user itself, and a world-accessible __pycache__ directory lets you replace a .pyc that a root cron job imports.

PlatformHack The Box
Operating systemLinux
DifficultyMedium
StatusRetired
Target IP<TARGET_IP>

Attack map

[445] anonymous SMB — backup share: info.txt points to an external .vmdk
   │  odori.7z (password hackthebox) -> file02.vmdk, a BitLocker-encrypted Windows
   ▼
[BitLocker]  bitlocker2john + hashcat -m 22100 + rockyou -> 123456789
   │  Scripts\backup.ps1 reveals svc_backup; its password sits in a scheduled
   │  task protected with DPAPI -> dploot machinetriage
   ▼
[22] SSH as svc_backup  (ForceCommand /opt/restrict, writable by the restricted user)
   │  unchrooted SFTP -> user.txt; restrict replaced with a bash launcher
   ▼
[RCE]  svc_backup
   │  /opt/archiver/__pycache__ world-writable; root cron imports helper
   │  malicious helper.pyc with unchecked-hash invalidation
   ▼
[ROOT]  SUID bash -> bash -p

1. Reconnaissance

ping -c1 <TARGET_IP>          # ttl 63 -> Linux
sudo nmap -sS -p- --min-rate 3000 -T4 <TARGET_IP> -oN nmap_allports.txt
PORT    STATE SERVICE
22/tcp  open  ssh
139/tcp open  netbios-ssn
445/tcp open  microsoft-ds
sudo nmap -sCV -p 22,139,445 <TARGET_IP> -oN nmap_services.txt
22/tcp  open  ssh         OpenSSH 8.9p1 Ubuntu 3ubuntu0.15 (Ubuntu Linux; protocol 2.0)
139/tcp open  netbios-ssn Samba smbd 4
445/tcp open  netbios-ssn Samba smbd 4
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
| smb2-security-mode: Message signing enabled but not required
|_nbstat: NetBIOS name: ODORI

It is an Ubuntu with Samba. The SSH version (8.9) matches Ubuntu 22.04 and will be the only login vector. First, SMB without credentials:

smbclient -L //<TARGET_IP>/ -N
Sharename   Type   Comment
print$      Disk   Printer Drivers
backup      Disk   Server Backups
IPC$        IPC    IPC Service (odori server (Samba, Ubuntu))
smbclient //<TARGET_IP>/backup -N -c 'recurse ON; ls'
#   info.txt   N   66 ...
smbclient //<TARGET_IP>/backup -N -c 'get info.txt'
cat info.txt
Please download the .vmdk file linked in the machine description.

Recon conclusion. The real attack surface is not in the network services but in a downloadable VM disk. The .7z (about 19 GB compressed) is essential.

🔒 Clearance required

Root Access unlocks the content you can't see — everything else on the site is already open.

See Root Access plans

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