ParseHost

package module
v0.0.0-...-a513370 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 9 Imported by: 0

README

ParseHost

毕设用

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParseIPErr = errors.New(" host parsing error\n" +
	"format: \n" +
	"192.168.1.1\n" +
	"192.168.1.1/8\n" +
	"192.168.1.1/16\n" +
	"192.168.1.1/24\n" +
	"192.168.1.1,192.168.1.2\n" +
	"192.168.1.1-192.168.255.255\n" +
	"192.168.1.1-255")

Functions

func IPRange

func IPRange(c *net.IPNet) string

获取起始IP、结束IP

func ParseIP

func ParseIP(host string, filename string, nohosts ...string) (hosts []string, HostPort []string, err error)

func ParseIPs

func ParseIPs(ip string) (hosts []string)

func ParsePort

func ParsePort(ports string) (scanPorts []int)

func RandInt

func RandInt(min, max int) int

func Readipfile

func Readipfile(filename string) (content []string, HostPort []string, err error)

按行读ip

func RemoveDuplicate

func RemoveDuplicate(languages []string) []string

去重

Types

This section is empty.

Jump to

Keyboard shortcuts

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