scan

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 Domain2Ip

func Domain2Ip(domain string) (string, error)

func Host2ip

func Host2ip(target string) (string, error)

func IsCIDR

func IsCIDR(str string) bool

IsCIDR checks if the string is an valid CIDR notiation (IPV4 & IPV6)

func IsCidrWithExpansion

func IsCidrWithExpansion(str string) bool

IsCIDR checks if the string is an valid CIDR after replacing - with /

func IsIP

func IsIP(str string) bool

IsIP checks if a string is either IP version 4 or 6. Alias for `net.ParseIP`

func IsIPv4

func IsIPv4(str string) bool

IsIPv4 checks if the string is an IP version 4.

func IsIPv6

func IsIPv6(str string) bool

IsIPv6 checks if the string is an IP version 6.

func IsPort

func IsPort(str string) bool

IsPort checks if a string represents a valid port

func IsURL

func IsURL(target string) bool

func ParsePorts

func ParsePorts(data string) ([]int, error)

func Target2ip

func Target2ip(target string) (string, error)

func ToCidr

func ToCidr(item string) *net.IPNet

ToCidr converts a cidr string to net.IPNet pointer

func URL2host

func URL2host(target string) (string, error)

func URL2port added in v1.3.5

func URL2port(target string) (string, error)

func URL2schema added in v1.3.5

func URL2schema(target string) (string, error)

func WhatsMyIP

func WhatsMyIP() (string, error)

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

type Scan

type Scan struct {
	Options   *config.Options
	IpSlice   []string
	PortSlice []int
}

func New

func New(options *config.Options) (*Scan, error)

func (*Scan) Execute

func (s *Scan) Execute()

Jump to

Keyboard shortcuts

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