ssh

package
v0.0.0-...-d364895 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SshHelp = func() {
	fmt.Println("Usage: Ladon SshCmd host port user pass cmd")
}

Functions

func ExecCmd

func ExecCmd(host string, port string, user string, pass string, cmdline string)

func SshAuth

func SshAuth(host string, port string, user string, pass string) (result bool, err error)

func SshCheck

func SshCheck(host string, port string, user string, pass string) (result bool, err error)

func SshScan

func SshScan(ScanType string, Target string)

func SshScan2

func SshScan2(ScanType string, Target string)

Types

type Node

type Node struct {
	User     string
	Password string
}

func NewNode

func NewNode(user, password string) *Node

func (*Node) Conn

func (this *Node) Conn(addr string, port string) (*ssh.Client, error)

Jump to

Keyboard shortcuts

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