rsync

package
v3.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2026 License: MIT, Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Warning - This is generated code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IsRsyncResponse

type IsRsyncResponse struct {
	IsRsync bool
	Banner  string
}

IsRsyncResponse is the response from the IsRsync function. this is returned by IsRsync function. @example ```javascript const rsync = require('nuclei/rsync'); const isRsync = rsync.IsRsync('acme.com', 873); log(toJSON(isRsync)); ```

func IsRsync

func IsRsync(ctx context.Context, host string, port int) (IsRsyncResponse, error)

IsRsync checks if a host is running a Rsync server. @example ```javascript const rsync = require('nuclei/rsync'); const isRsync = rsync.IsRsync('acme.com', 873); log(toJSON(isRsync)); ```

type RsyncClient added in v3.4.7

type RsyncClient struct{}

RsyncClient is a client for RSYNC servers. Internally client uses https://github.com/gokrazy/rsync driver. @example ```javascript const rsync = require('nuclei/rsync'); const client = new rsync.RsyncClient(); ```

func (*RsyncClient) ListFilesInModule added in v3.4.7

func (c *RsyncClient) ListFilesInModule(ctx context.Context, host string, port int, username string, password string, module string) (RsyncListResponse, error)

ListShares lists the shares of a Rsync server. @example ```javascript const rsync = require('nuclei/rsync'); const client = new rsync.RsyncClient(); const listShares = client.ListFilesInModule('acme.com', 873, 'username', 'password', '/'); log(toJSON(listShares)); ```

func (*RsyncClient) ListModules added in v3.4.7

func (c *RsyncClient) ListModules(ctx context.Context, host string, port int, username string, password string) (RsyncListResponse, error)

ListModules lists the modules of a Rsync server. @example ```javascript const rsync = require('nuclei/rsync'); const client = new rsync.RsyncClient(); const listModules = client.ListModules('acme.com', 873, 'username', 'password'); log(toJSON(listModules)); ```

type RsyncListResponse added in v3.4.7

type RsyncListResponse struct {
	Modules []string
	Files   []string
	Output  string
}

ListSharesResponse is the response from the ListShares function. this is returned by ListShares function. @example ```javascript const rsync = require('nuclei/rsync'); const client = new rsync.RsyncClient(); const listShares = client.ListShares('acme.com', 873); log(toJSON(listShares));

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL