nfs

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProgramID = 100003
	Version2  = 2
	Version3  = 3
	Version4  = 4
)

NFS Program and Version constants

View Source
const NFS = "nfs"

Variables

This section is empty.

Functions

func DetectNFS

func DetectNFS(conn net.Conn, timeout time.Duration) (*plugins.ServiceNFS, error)

func DetectNFSAllowedOrigins added in v0.0.42

func DetectNFSAllowedOrigins(conn net.Conn, timeout time.Duration) []string

func DetectNFSPolicies

func DetectNFSPolicies(conn net.Conn, timeout time.Duration) []string

func DetectNFSSharedContent added in v0.0.42

func DetectNFSSharedContent(conn net.Conn, timeout time.Duration) []string

func DetectSupportedProcedures

func DetectSupportedProcedures(conn net.Conn, timeout time.Duration, version uint32) ([]string, error)

Types

type NFSPlugin

type NFSPlugin struct{}

func (*NFSPlugin) Name

func (p *NFSPlugin) Name() string

func (*NFSPlugin) PortPriority

func (p *NFSPlugin) PortPriority(port uint16) bool

func (*NFSPlugin) Priority

func (p *NFSPlugin) Priority() int

func (*NFSPlugin) Run

func (p *NFSPlugin) Run(conn net.Conn, timeout time.Duration, target plugins.Target) (*plugins.Service, error)

func (*NFSPlugin) Type

func (p *NFSPlugin) Type() plugins.Protocol

type NFSProcedureRequest

type NFSProcedureRequest struct {
	Credential [32]byte // Simplified; actual structure is more complex
	Verifier   [32]byte // Simplified; actual structure is more complex
}

NFS Procedure request structure

type NFSProcedureResponse

type NFSProcedureResponse struct {
	Status uint32
}

NFS Procedure response structure

type PortMapperRequest

type PortMapperRequest struct {
	Program uint32
	Version uint32
	Proto   uint32
	Port    uint32
}

Port mapper request structure

type PortMapperResponse

type PortMapperResponse struct {
	Port uint32
}

Port mapper response structure

Jump to

Keyboard shortcuts

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