helpers

package
v0.0.165 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ADBCNXNPacket

func ADBCNXNPacket() []byte

func FirstLine

func FirstLine(s string) string

func GenericResult

func GenericResult(host string, ip net.IP, port int, transport common.TransportType, appProtocol string, version string, metadata map[string]string) *discoverfern.ServiceDetails

func IsRMIEndpointHost

func IsRMIEndpointHost(b []byte) bool

func LooksLikeGitDaemon

func LooksLikeGitDaemon(resp []byte) bool

func LooksLikeIRC

func LooksLikeIRC(s string) bool

func TCPConn

func TCPConn(ctx context.Context, ip net.IP, port int, timeout int) (net.Conn, error)

func TCPExchange

func TCPExchange(ctx context.Context, ip net.IP, port int, timeout int, probe []byte, maxRead int) ([]byte, error)

func TCPReadBanner

func TCPReadBanner(ctx context.Context, ip net.IP, port int, timeout int, maxRead int) ([]byte, error)

func UDPExchange

func UDPExchange(ctx context.Context, ip net.IP, port int, timeout int, probe []byte, maxRead int) ([]byte, error)

func ValidADBPacket

func ValidADBPacket(packet []byte) bool

func ValidGopherItem

func ValidGopherItem(s string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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