port

package
v0.0.0-...-d364895 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPorts = []int{21, 22, 23, 25, 80, 443, 8080, 110, 135, 139, 445, 389, 489, 587, 1433, 1434, 1521, 1522, 1723, 2121, 3000, 3306, 3389, 4899, 5631, 5632, 5800, 5900, 7071, 43958, 65500, 4444, 8888, 6789, 4848, 5985, 5986, 8081, 8089, 8443, 10000, 6379, 7001, 7002}

Functions

func CheckPort

func CheckPort(ip net.IP, port int)

func IsBanner

func IsBanner(address string) (string, error)

func PortCheck

func PortCheck(host string, port int) (result bool)

func PortIsOpen

func PortIsOpen(ip net.IP, port int) (result bool, err error)

func ScanPort

func ScanPort(host string)

func ScanPortBanner

func ScanPortBanner(host string)

func ScanPortBannerRange

func ScanPortBannerRange(host, ports string)

func ScanPortBannerSingle

func ScanPortBannerSingle(host, port string)

func ScanPortBanners

func ScanPortBanners(host, ports string)

func ScanPorts

func ScanPorts(host, ports string)

func TaskPort

func TaskPort(ip string, debugLog *log.Logger)

func TxtWrite

func TxtWrite(text string)

Types

type Workdist

type Workdist struct {
	Host string
}

Jump to

Keyboard shortcuts

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