Documentation
¶
Index ¶
- func Generate(name string, port int, bandwidth string) <-chan *ZmapTask
- type ZMapArguments
- func (z *ZMapArguments) String() string
- func (z *ZMapArguments) WithBandWidth(bandWidth string) *ZMapArguments
- func (z *ZMapArguments) WithLogFileName(fileName string) *ZMapArguments
- func (z *ZMapArguments) WithOutputFileName(fileName string) *ZMapArguments
- func (z *ZMapArguments) WithSeed(seed int) *ZMapArguments
- func (z *ZMapArguments) WithShard(shard int) *ZMapArguments
- func (z *ZMapArguments) WithShards(shards int) *ZMapArguments
- func (z *ZMapArguments) WithStatusUpdateFileName(fileName string) *ZMapArguments
- func (z *ZMapArguments) WithSubnet(subnet string) *ZMapArguments
- func (z *ZMapArguments) WithTargetPort(port int) *ZMapArguments
- type ZMapProgress
- type ZmapTask
- func (z *ZmapTask) Assign(e *secureshell.SSHExecutor) error
- func (z *ZmapTask) Download() error
- func (z *ZmapTask) Prepare() error
- func (z *ZmapTask) Start() error
- func (z *ZmapTask) Status() (task.StatusInterface, error)
- func (z *ZmapTask) Stop() error
- func (z *ZmapTask) String() string
- func (z *ZmapTask) WithArguments(arguments *ZMapArguments) *ZmapTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*ZmapTask) Assign ¶
func (z *ZmapTask) Assign(e *secureshell.SSHExecutor) error
func (*ZmapTask) WithArguments ¶
func (z *ZmapTask) WithArguments(arguments *ZMapArguments) *ZmapTask
Click to show internal directories.
Click to hide internal directories.