sniff

package
v0.0.0-...-27a3170 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPOpenPortSniff

func IPOpenPortSniff(target Device) (openPort []string, err error)

*

  • 探测单个IP的所有tcp端口,共65535个,返回打开的端口,慎用,容易被封禁IP
  • @return openPort-打开的端口
  • @author gulilin 2023/12/27 15:56

func ListenICMPUnreachable

func ListenICMPUnreachable() ([]byte, error)

设置了监听4秒

func SniffBulkIP

func SniffBulkIP(targets []Device, concurrencyLimit int) error

批量探测,自定义并发量

func SniffSingleIP

func SniffSingleIP(target *Device) error

func SniffSingleIpSimlpe

func SniffSingleIpSimlpe(addr, protocol, port string) bool

*

  • 探测单个IP连通性
  • @param addr, protocol, port 分别为IP地址,协议("tcp"|"udp"|"icmp"),端口号"22"
  • @return bool
  • @author gulilin 2023/8/17 15:13

Types

type Device

type Device arkssh.Device

func ParseUnreachedUDP

func ParseUnreachedUDP(unreachedData []byte) Device

func (*Device) PING

func (d *Device) PING() error

func (*Device) TCP

func (d *Device) TCP() error

func (*Device) UDP

func (d *Device) UDP() error

Jump to

Keyboard shortcuts

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