ssh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResignDebugserver

func ResignDebugserver(dspath string) error

ResignDebugserver resigns debugserver with more powerful entitlements

Types

type Config

type Config struct {
	Host     string
	Port     string
	User     string
	Pass     string
	Key      string
	Insecure bool
}

Config is the configuration for an SSH connection

type SSH

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

SSH is an ssh object

func NewSSH

func NewSSH(conf *Config) (*SSH, error)

NewSSH creates a new SSH connection

func (*SSH) Close

func (s *SSH) Close() error

Close closes the SSH connection

func (*SSH) CopyFromDevice

func (s *SSH) CopyFromDevice(src, dst string) error

CopyFromDevice copies a file from the remote device

func (*SSH) CopyToDevice

func (s *SSH) CopyToDevice(src, dst string) error

CopyToDevice copies a file to the remote device

func (*SSH) EnablePrivateLogData

func (s *SSH) EnablePrivateLogData() error

EnablePrivateLogData enables private data in logs CREDIT - https://github.com/EthanArbuckle/unredact-private-os_logs

func (*SSH) EnableSymbolication

func (s *SSH) EnableSymbolication() error

EnableSymbolication enables symbolication of mobile crash logs CREDIT - https://github.com/dlevi309/ios-scripts

func (*SSH) FileExists

func (s *SSH) FileExists(path string) bool

FileExists checks if a file exists on the remote device

func (*SSH) GetShshBlobs

func (s *SSH) GetShshBlobs() ([]byte, error)

func (*SSH) RunCommand

func (s *SSH) RunCommand(cmd string) error

RunCommand runs a command on the remote device

func (*SSH) RunCommandWithOutput

func (s *SSH) RunCommandWithOutput(cmd string) (string, error)

RunCommandWithOutput runs a command on the remote device and returns the output

Jump to

Keyboard shortcuts

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