## Footprinting
Intrusionz3r0X@htb[/htb]$ nmap -sV --script "rsync-list-modules" -p <PORT> <IP>
Intrusionz3r0X@htb[/htb]$ msf> use auxiliary/scanner/rsync/modules_list
Intrusionz3r0X@htb[/htb]$ nc -nv 127.0.0.1 873
# Listing a shared folder
Intrusionz3r0X@htb[/htb]$ rsync -av --list-only rsync://192.168.0.123/shared_name
# Copying files from a shared folder
Intrusionz3r0X@htb[/htb]$ rsync -av rsync://192.168.0.123:8730/shared_name ./rsyn_shared
#Listen mode with credentials
Intrusionz3r0X@htb[/htb]$ rsync -av --list-only rsync://username@192.168.0.123/shared_name
# Download mode with credentials
Intrusionz3r0X@htb[/htb]$ rsync -av rsync://username@192.168.0.123:8730/shared_name ./rsyn_shared
#Upload file content, such as an authorized_keys file
Intrusionz3r0X@htb[/htb]$ rsync -av home_user/.ssh/ rsync://username@192.168.0.123/home_user/.ssh