portscan

package
v0.0.0-...-72c2bb7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortScanner

type PortScanner struct {
	// contains filtered or unexported fields
}

PortScanner will port scan all 100% confidence hosts (and if ip only, IPs)

func New

func New(scanner portscanner.Executor, dc *dnsclient.Client) *PortScanner

New port scanner module

func (*PortScanner) AddGroup

func (p *PortScanner) AddGroup(ctx context.Context, userContext am.UserContext, group *am.ScanGroup) error

AddGroup on start of a group analysis (before any addresses come in)

func (*PortScanner) Analyze

func (p *PortScanner) Analyze(ctx context.Context, userContext am.UserContext, address *am.ScanGroupAddress) (*am.ScanGroupAddress, *am.PortResults, error)

Analyze will attempt port scan

func (*PortScanner) Init

func (p *PortScanner) Init(config []byte) error

Init the port scanner

func (*PortScanner) RemoveGroup

func (p *PortScanner) RemoveGroup(ctx context.Context, userContext am.UserContext, orgID, groupID int) error

RemoveGroup on end of group analysis

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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