optftp

package
v0.0.0-...-8d0f603 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrabBanner

func GrabBanner(host string, port int) (string, error)

Types

type Options

type Options struct {
	Targets struct {
		TARGETS []string `description:"Provide target IP/FQDN/FILE"`
	} `positional-args:"yes"`

	Connection struct {
		Username string `short:"u" description:"Provide username (or FILE)"`
		Password string `short:"p" description:"Provide password (or FILE)"`
		Port     int    `long:"port" default:"21" description:"Port to contact"`
	} `group:"Connection Options" description:"Connection Options"`

	Mode struct {
		GetFile       string `long:"get" description:"Get specified file"`
		PutFile       string `long:"put" description:"Put specified file"`
		DstFile       string `long:"dst" description:"Destination file (get/put)"`
		ReadFile      string `long:"read" description:"Read a file stored in the server"`
		List          bool   `long:"list" description:"List files in / directory"`
		RecursiveList bool   `long:"recursive-list" description:"List all files in FTP server (might take long)"`
	} `group:"Possible Operations"`
	// contains filtered or unexported fields
}

func (*Options) Run

func (o *Options) Run()

Jump to

Keyboard shortcuts

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