해당 문제는 HTB에서 공개 가능한 문제로 블로그에 라이트업 공개가 허용된 문제이므로 포스팅 합니다.
개요
Synced는 Rsync 프로토콜과 이를 사용하는 방법을 소개하고, 익명 인증을 허용하는 잘못된 설정으로 인해 발생할 수 있는 보안 위험성을 다루는 매우 쉬운 난이도의 Linux 머신입니다.
TASK1
What is the default port for rsync?
873
TASK2
How many TCP ports are open on the remote host?
1
sudo nmap -v -sS -sV -p- -n -T4 10.129.58.221

1
TASK3
What is the protocol version used by rsync on the remote machine?
31
TASK4
What is the most common command name on Linux to interact with rsync?
rsync
TASK5
What credentials do you have to pass to rsync in order to use anonymous authentication? anonymous:anonymous, anonymous, None, rsync:rsync
rsync 에서 익명 인증 시에는 사용자 이름이나 비밀번호가 필요없음
None
TASK6
What is the option to only list shares and files on rsync? (No need to include the leading -- characters)
--list-only
TASK7
Submit the flag located on the share.
1
rsync --list-only rsync://10.129.58.221

위에 결과는 public 과 Anonymous Share 모듈이 아니라 모듈이 public 이고 뒤에는 설명임.
1
rsync --list-only rsync://10.129.58.221/public

1
rsync -a rsync://10.129.58.221/public/flag.txt ./

72eaf5344ebb84908ae543a719830519