syn

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSynOption = port.Option{
	Rate:    2000,
	Timeout: 0,
}

Functions

func GetDevByIp

func GetDevByIp(ip net.IP) (devName string, err error)

GetDevByIp get dev name by dev ip (use pcap)

func GetIfaceMac

func GetIfaceMac(ifaceAddr net.IP) (src net.IP, mac net.HardwareAddr)

GetIfaceMac get interface mac addr by interface ip (use golang net)

func GetRouterV4

func GetRouterV4(dst net.IP) (srcIp net.IP, srcMac net.HardwareAddr, gw net.IP, devName string, err error)

GetRouterV4 get ipv6 router by dst ip

func NewSynScanner

func NewSynScanner(firstIp net.IP, retChan chan port.OpenIpPort, option port.Option) (ss *synScanner, err error)

NewSynScanner firstIp: Used to select routes; retChan: Result return channel

Types

This section is empty.

Jump to

Keyboard shortcuts

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