Rsync Pentesting
Enumeration
nmap --script rsync-list-modules -p 873 <target-ip>
nmap --script rsync-brute --script-args 'rsync-brute.module=www' <target-ip>
# Banner grabbing and list shared folders
# We can execute commands (modules) that we found, after entering '@RSYNCD: <version>'.
nc -nv <target-ip> 873
@RSYNCD: 31.0
#list
raidroot
Conf
@RSYNCD: EXIT
# List sync data using rsync
rsync <target-ip>::
rsync -av --list-only rsync://<target-ip>
# List sync data using Metasploit
msf> use auxiliary/scanner/rsync/modules_listCheck Config File
Sync Data
From Remote to Local
From Local to Remote
SSH Key Syncing and SSH Login
1. Generate a SSH key in local machine
2. Sync the authorized_keys with the remote .ssh directory
3. SSH login with the generated private key
References
Last updated