portscanner

package
v0.0.0-...-b9889cd Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanPort

func ScanPort(IP string, port int, timeout time.Duration)

ScanPort scans the port with the given IP and the port

func Ulimit

func Ulimit() int64

Ulimit calculates the limit for the Lock function

Types

type PortScanner

type PortScanner struct {
	IP   string
	Lock *semaphore.Weighted
}

PortScanner is an abstraction containing the IP and no of goroutines to be allowed to run

func (*PortScanner) Start

func (ps *PortScanner) Start(firstPort, lastPort int, timeout time.Duration)

Start starts the actual connection attempts

Jump to

Keyboard shortcuts

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