scanner

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package scanner implements scanning ports. Duh.

Index

Constants

This section is empty.

Variables

View Source
var Ports []uint16 = []uint16{
	21,
	22,
	23,
	25,
	53,
	79,
	80,
	110,
	143,
	161,
	443,
	587,
	631,
	1024,
	2222,
	2322,
	2525,
	3270,
	4444,
	5353,
	5800,
	5900,
	8000,
	8080,
	8081,
}

Ports is the list of ports (TCP and UDP) we consider interesting.

Functions

This section is empty.

Types

type Scanner

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

Scanner wraps all the state need to run the portscanner subsystem across multiple worker goroutines.

func New

func New(cnt int) (*Scanner, error)

New creates and returns a fresh Scanner instance.

func (*Scanner) IsActive

func (scn *Scanner) IsActive() bool

IsActive returns state of the Scanner's active flag.

func (*Scanner) Start

func (scn *Scanner) Start()

Start spawns the Scanner's workers.

func (*Scanner) StartOne

func (scn *Scanner) StartOne()

StartOne starts one additional worker.

func (*Scanner) Stop

func (scn *Scanner) Stop()

Stop clears the Scanner's active flag.

func (*Scanner) StopOne

func (scn *Scanner) StopOne()

StopOne tells one worker to stop.

func (*Scanner) System added in v0.3.0

func (scn *Scanner) System() subsystem.ID

func (*Scanner) WorkerCnt

func (scn *Scanner) WorkerCnt() int

WorkerCnt returns the number of active workers.

Jump to

Keyboard shortcuts

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