netutils

package
v0.4.2-beta Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GeoURL string = "https://raw.githubusercontent.com/herrbischoff/country-ip-blocks/master/ipv4/COUNTRY_CODE.cidr"
View Source
const TorURL string = "https://raw.githubusercontent.com/SecOps-Institute/Tor-IP-Addresses/master/tor-exit-nodes.lst"

Variables

This section is empty.

Functions

func CheckIPExistsInPool

func CheckIPExistsInPool(ipList []string, targetIP string, verbose bool) bool

func FetchIPPool

func FetchIPPool(countryCode string, verbose bool, filePath string, logFilePath string) []string

func IsCIDRValid

func IsCIDRValid(ip string) (string, bool)

func MergeIPsToCIDRs

func MergeIPsToCIDRs(ipList []string) []string

func NetworkContainsIP

func NetworkContainsIP(cidr string, ip 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