zmap_task

package
v0.0.0-...-99b7af3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(name string, port int, bandwidth string) <-chan *ZmapTask

Types

type ZMapArguments

type ZMapArguments struct {
	TargetPort           int
	Subnets              []string
	OutputFileName       string
	LogFileName          string
	StatusUpdateFileName string
	BandWidth            string
	Seed                 int
	Shards               int
	Shard                int
}

func NewZmapArguments

func NewZmapArguments() *ZMapArguments

func (*ZMapArguments) String

func (z *ZMapArguments) String() string

func (*ZMapArguments) WithBandWidth

func (z *ZMapArguments) WithBandWidth(bandWidth string) *ZMapArguments

func (*ZMapArguments) WithLogFileName

func (z *ZMapArguments) WithLogFileName(fileName string) *ZMapArguments

func (*ZMapArguments) WithOutputFileName

func (z *ZMapArguments) WithOutputFileName(fileName string) *ZMapArguments

func (*ZMapArguments) WithSeed

func (z *ZMapArguments) WithSeed(seed int) *ZMapArguments

func (*ZMapArguments) WithShard

func (z *ZMapArguments) WithShard(shard int) *ZMapArguments

func (*ZMapArguments) WithShards

func (z *ZMapArguments) WithShards(shards int) *ZMapArguments

func (*ZMapArguments) WithStatusUpdateFileName

func (z *ZMapArguments) WithStatusUpdateFileName(fileName string) *ZMapArguments

func (*ZMapArguments) WithSubnet

func (z *ZMapArguments) WithSubnet(subnet string) *ZMapArguments

func (*ZMapArguments) WithTargetPort

func (z *ZMapArguments) WithTargetPort(port int) *ZMapArguments

type ZMapProgress

type ZMapProgress struct {
	RealTime              string  `csv:"real-time" json:"real-time"`
	TimeElapsed           int64   `csv:"time-elapsed" json:"time-elapsed"`
	TimeRemaining         int64   `csv:"time-remaining" json:"time-remaining"`
	PercentComplete       float64 `csv:"percent-complete" json:"percent-complete"`
	HitRate               float64 `csv:"hit-rate" json:"hit-rate"`
	ActiveSendThreads     int64   `csv:"active-send-threads" json:"active-send-threads"`
	SentTotal             int64   `csv:"sent-total" json:"sent-total"`
	SentLastOneSec        int64   `csv:"sent-last-one-sec" json:"sent-last-one-sec"`
	SentAvgPerSec         int64   `csv:"sent-avg-per-sec" json:"sent-avg-per-sec"`
	RecvSuccessTotal      int64   `csv:"recv-success-total" json:"recv-success-total"`
	RecvSuccessLastOneSec int64   `csv:"recv-success-last-one-sec" json:"recv-success-last-one-sec"`
	RecvSuccessAvgPerSec  int64   `csv:"recv-success-avg-per-sec" json:"recv-success-avg-per-sec"`
	RecvTotal             int64   `csv:"recv-total" json:"recv-total"`
	RecvTotalLastOneSec   int64   `csv:"recv-total-last-one-sec" json:"recv-total-last-one-sec"`
	RecvTotalAvgPerSec    int64   `csv:"recv-total-avg-per-sec" json:"recv-total-avg-per-sec"`
	PcapDropTotal         int64   `csv:"pcap-drop-total" json:"pcap-drop-total"`
	DropLastOneSec        int64   `csv:"drop-last-one-sec" json:"drop-last-one-sec"`
	DropAvgPerSec         int64   `csv:"drop-avg-per-sec" json:"drop-avg-per-sec"`
	SendtoFailTotal       int64   `csv:"sendto-fail-total" json:"sendto-fail-total"`
	SendtoFailLastOneSec  int64   `csv:"sendto-fail-last-one-sec" json:"sendto-fail-last-one-sec"`
	SendtoFailAvgPerSec   int64   `csv:"sendto-fail-avg-per-sec" json:"sendto-fail-avg-per-sec"`
	Line                  string
}
var DoneProgress *ZMapProgress
var PendingProgress *ZMapProgress

func NewZMapProgress

func NewZMapProgress(message string) (*ZMapProgress, error)

func (ZMapProgress) GetStatus

func (z ZMapProgress) GetStatus() task.TaskStatus

func (ZMapProgress) NumDoneWithError

func (z ZMapProgress) NumDoneWithError() int64

func (ZMapProgress) NumDoneWithSuccess

func (z ZMapProgress) NumDoneWithSuccess() int64

func (ZMapProgress) NumTotal

func (z ZMapProgress) NumTotal() int64

func (ZMapProgress) String

func (z ZMapProgress) String() string

type ZmapTask

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

func New

func New(port, shard, shards int, label, bandwidth string) *ZmapTask

func (*ZmapTask) Assign

func (z *ZmapTask) Assign(e *secureshell.SSHExecutor) error

func (*ZmapTask) Download

func (z *ZmapTask) Download() error

func (*ZmapTask) Prepare

func (z *ZmapTask) Prepare() error

func (*ZmapTask) Start

func (z *ZmapTask) Start() error

func (*ZmapTask) Status

func (z *ZmapTask) Status() (task.StatusInterface, error)

func (*ZmapTask) Stop

func (z *ZmapTask) Stop() error

func (*ZmapTask) String

func (z *ZmapTask) String() string

func (*ZmapTask) WithArguments

func (z *ZmapTask) WithArguments(arguments *ZMapArguments) *ZmapTask

Jump to

Keyboard shortcuts

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