Pentesting Rsync
Rsync port 873
Basic information
rsync is a utility for efficiently transferring and synchronizing files between a computer and an external hard drive and across networked computers by comparing the modification timesand sizes of files.
Enumerate shared folders
An rsync module is essentially a directory share. These modules can optionally be protected by a password.
This options lists the available modules and, optionally, determines if the module requires a password to access:
Manual Rsync
List a shared folder
Copy all files to your local machine via the following command:
If you have credentials you can list/download a shared name using (the password will be prompted):
You could also upload some content using rsync (for example, in this case we can upload an authorized_keys file to obtain access to the box):
Find the rsyncd configuration file:
Inside the config file sometimes you could find the parameter
secrets file = /path/to/file
and this file could contains usernames and passwords allowed to authenticate to rsyncd.
Last updated