debugproxy

package
v1.0.94 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT 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, binaryMode bool) error

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

type DumpingConn added in v1.0.10

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

func NewDumpingConn added in v1.0.10

func NewDumpingConn(filePath string, conn net.Conn) *DumpingConn

func (DumpingConn) Close added in v1.0.10

func (d DumpingConn) Close() error

func (DumpingConn) LocalAddr added in v1.0.10

func (d DumpingConn) LocalAddr() net.Addr

func (DumpingConn) Read added in v1.0.10

func (d DumpingConn) Read(b []byte) (n int, err error)

func (DumpingConn) RemoteAddr added in v1.0.10

func (d DumpingConn) RemoteAddr() net.Addr

func (DumpingConn) SetDeadline added in v1.0.10

func (d DumpingConn) SetDeadline(t time.Time) error

func (DumpingConn) SetReadDeadline added in v1.0.10

func (d DumpingConn) SetReadDeadline(t time.Time) error

func (DumpingConn) SetWriteDeadline added in v1.0.10

func (d DumpingConn) SetWriteDeadline(t time.Time) error

func (DumpingConn) Write added in v1.0.10

func (d DumpingConn) Write(b []byte) (n int, err error)

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