sshauth

package
v0.0.0-...-75a46ef Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: BSD-3-Clause, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicKeyFile

func PublicKeyFile(file string) ssh.AuthMethod

SSH Functions

func Run

func Run(task structs.Task)

func SSHBruteHost

func SSHBruteHost(host string, port int, creds []Credential, debug bool, command string, source string, destination string)

func SSHLogin

func SSHLogin(host string, port int, cred Credential, debug bool, command string, source string, destination string)

Types

type Credential

type Credential struct {
	Username   string
	Password   string
	PrivateKey string
}

Credential Manages credential objects for authentication

type SSHAuthenticator

type SSHAuthenticator struct {
	// contains filtered or unexported fields
}

SSHAuthenticator Governs the lock of ssh authentication attempts

func (*SSHAuthenticator) Brute

func (auth *SSHAuthenticator) Brute(port int, creds []Credential, debug bool, command string, source string, destination string)

type SSHResult

type SSHResult struct {
	Status     string `json:"status"`
	Success    bool   `json:"success"`
	Username   string `json:"username"`
	Secret     string `json:"secret"`
	Output     string `json:"output"`
	Host       string `json:"host"`
	CopyStatus string `json:"copy_status"`
}

func SSHBruteForce

func SSHBruteForce(hosts []string, port int, creds []Credential, debug bool, command string, source string, destination string) []SSHResult

type SSHTestParams

type SSHTestParams struct {
	Hosts       []string `json:"hosts"`
	Port        int      `json:"port"`
	Username    string   `json:"username"`
	Password    string   `json:"password"`
	PrivateKey  string   `json:"private_key"`
	Command     string   `json:"command"`
	Source      string   `json:"source"`
	Destination string   `json:"destination"`
}

Jump to

Keyboard shortcuts

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