# Rsync

> *Source CTF and HTB Academy*

* Usually on port 873

Tool for locally and remotely copying files.

* [Rsync man page](https://linux.die.net/man/1/rsync)
* [873 - Pentesting Rsync on Hacktricks](https://book.hacktricks.xyz/network-services-pentesting/873-pentesting-rsync)

## Enumeration

### Nmap

* `sudo nmap -sV -p 873 127.0.0.1`

### Netcat

* `nc -nv 127.0.0.1 873` Probing for Accessible Shares

### Enumerate an open share

* `rsync -av --list-only rsync://127.0.0.1/dev`

## Resources

* [How to Rsync over SSH](https://phoenixnap.com/kb/how-to-rsync-over-ssh)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://csbygb.gitbook.io/pentips/networking-protocols-and-network-pentest/rsync.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
