debugproxy

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: AGPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MoveBack

func MoveBack(socket string) error

func MoveSock

func MoveSock(socket string) (string, error)

func NewBinDumpOnly

func NewBinDumpOnly(jsonFilePath string, dumpFilePath string, log log.Entry) decoder

NewNoOpDecoder does nothing

func NewDtxDecoder

func NewDtxDecoder(jsonFilePath string, binFilePath string, log log.Entry) decoder

Types

type BinaryForwardingProxy

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

func (BinaryForwardingProxy) Close

func (b BinaryForwardingProxy) Close()

func (*BinaryForwardingProxy) ReadMessage

func (b *BinaryForwardingProxy) ReadMessage() ([]byte, error)

func (BinaryForwardingProxy) Send

func (b BinaryForwardingProxy) Send(msg []byte) error

type ConnectionInfo

type ConnectionInfo struct {
	ConnectionPath string
	CreatedAt      time.Time
	ID             string
}

type DebugProxy

type DebugProxy struct {
	WorkingDir string
	// contains filtered or unexported fields
}

DebugProxy can be used to dump and modify communication between mac and host

func NewDebugProxy

func NewDebugProxy() *DebugProxy

NewDebugProxy creates a new Default proxy

func (*DebugProxy) Close

func (d *DebugProxy) Close()

Close moves /var/run/usbmuxd.real back to /var/run/usbmuxd and disconnects all active proxy connections

func (*DebugProxy) Launch

func (d *DebugProxy) Launch(device ios.DeviceEntry) error

Launch moves the original /var/run/usbmuxd to /var/run/usbmuxd.real and starts the server at /var/run/usbmuxd

type MessageWithMetaInfo

type MessageWithMetaInfo struct {
	DtxMessage   interface{}
	MessageType  string
	TimeReceived time.Time
	OffsetInDump int64
	Length       int
}

type PhoneServiceInformation

type PhoneServiceInformation struct {
	ServicePort uint16
	ServiceName string
	UseSSL      bool
}

PhoneServiceInformation contains info about a service started on the phone via lockdown.

type ProxyConnection

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

ProxyConnection keeps track of the pairRecord and uses an ID to identify connections.

func (*ProxyConnection) LogClosed

func (p *ProxyConnection) LogClosed()

Jump to

Keyboard shortcuts

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