Documentation ¶
Index ¶
- Constants
- func Domain2Ip(domain string) (string, error)
- func Host2ip(target string) (string, error)
- func IsCIDR(str string) bool
- func IsCidrWithExpansion(str string) bool
- func IsIP(str string) bool
- func IsIPv4(str string) bool
- func IsIPv6(str string) bool
- func IsPort(str string) bool
- func IsURL(target string) bool
- func ParsePorts(data string) ([]int, error)
- func Target2ip(target string) (string, error)
- func ToCidr(item string) *net.IPNet
- func URL2host(target string) (string, error)
- func URL2port(target string) (string, error)
- func URL2schema(target string) (string, error)
- func WhatsMyIP() (string, error)
- type Scan
Constants ¶
View Source
const ( Full = "1-65535" NmapTop100 = "" /* 393-byte string literal not displayed */ NmapTop1000 = "" /* 3823-byte string literal not displayed */ )
List of default ports
Variables ¶
This section is empty.
Functions ¶
func IsCidrWithExpansion ¶
IsCIDR checks if the string is an valid CIDR after replacing - with /
func ParsePorts ¶
func URL2schema ¶ added in v1.3.5
func WhatsMyIP ¶
WhatsMyIP attempts to obtain the external ip through public api Copied from https://github.com/projectdiscovery/naabu/blob/master/v2/pkg/scan/externalip.go
Types ¶
Click to show internal directories.
Click to hide internal directories.