scanner

package
v0.0.0-...-ff9824b Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

scanner scans a target using TCP or any other protocol available. It aims to find all open services supported by the target.

Index

Constants

View Source
const (
	MaxPort      = 65535 // Maximum port number
	MaxScanRetry = 2     // Maximum scan retry before getting response

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner interface {
	Scan() error
	Close()
}

Scanner represents a module which may perform scanning function. It may be closed with Close() call.

func NewScanner

func NewScanner(ctxParent context.Context, ip net.IP, opt options.Options) (Scanner, error)

NewScanner creates a new scanner for a given destination IP address. It utilizes local routing info to determine how to route packets to that IP.

Jump to

Keyboard shortcuts

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