rsync

package
v3.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT, Apache-2.0 Imports: 12 Imported by: 0

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

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

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

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

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