873 - Rsync
💡 学习提示: 本文档介绍 873 - rsync 的渗透测试方法,适合信息安全初学者和从业人员参考。
⚠️ 法律声明: 本文档仅供学习和授权测试使用。未经授权的系统测试可能违反法律法规。
默认 port: 873
信息收集
Banner & Manual communication
Enumerating Shared Folders
Rsync modules are recognized as directory shares that might be protected with passwords. To identify available modules and check if they require passwords, the following commands are used:
Be aware that some shares might not appear in the list, possibly hiding them. Additionally, accessing some shares might be restricted to specific credentials, indicated by an “Access Denied” message.
暴力破解
Manual Rsync 用法
Upon obtaining a module list, actions depend on whether authentication is needed. Without authentication, listing and copying files from a shared folder to a local directory is achieved through:
This process recursively transfers files, preserving their attributes and permissions.
With credentials, listing and downloading from a shared folder can be done as follows, where a password prompt will appear:
To upload content, such as an authorized_keys file for access, use:
POST
To locate the rsyncd configuration file, execute:
Within this file, a secrets file parameter might point to a file containing usernames and passwords for rsyncd authentication.