> For the complete documentation index, see [llms.txt](https://venator17.gitbook.io/bibliotheque/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://venator17.gitbook.io/bibliotheque/pentesting/protocols/rsync.md).

# RSYNC

## <mark style="color:yellow;">ABOUT</mark>

<mark style="color:red;">**Rsync**</mark> is a fast and efficient <mark style="color:purple;">**tool for locally and remotely copying files**</mark>. **Rsync** reduces the amount of data transmitted over the network when a version of the file already exists on the destination host. It does this by sending only the differences between the source files and the older version of the files that reside on the destination server. It is often used for backups and mirroring. You could use HackTricks page to view more ways to abuse Rsync: [**\[LINK\]**](https://book.hacktricks.xyz/network-services-pentesting/873-pentesting-rsync)

## <mark style="color:yellow;">Tips2Hack</mark>

1. Nmap - **Rsync** Scan

```bash
sudo nmap -sV -p 873 13.13.13.13
```

2. Probing for **Accessible Share**

```bash
nc -nv 13.13.13.13 873
```

3. Enumerating an **Open Share**

```bash
rsync -av --list-only rsync://13.13.13.13/
rsync -av --list-only rsync://13.13.13.13/share
```

4. Downloading a file from Open Share

```
rsync -av --list-only rsync://13.13.13.13/share/file /local/directory
```
