readers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: BSD-2-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAllLines added in v0.1.1

func ReadAllLines(fileName string, outList *[]string) error

Read from a file.

Types

type DataReader

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

Runner is a runner that probes web targets using a driver

func NewDataReader

func NewDataReader(opts Options) (*DataReader, error)

func (*DataReader) AddDatabase

func (r *DataReader) AddDatabase(filePath string) error

func (*DataReader) CheckHostEntry

func (r *DataReader) CheckHostEntry(ip net.IP, hostNames ...interface{}) (bool, bool)

func (*DataReader) Close

func (r *DataReader) Close()

func (*DataReader) GenerateScanFiles

func (r *DataReader) GenerateScanFiles(outputPath string) error

func (*DataReader) GroupIPsAcrossSubnets

func (r *DataReader) GroupIPsAcrossSubnets(allIPs []tools.LabeledIP) []models.ScanMap

Group IPs across subnets with constraints

type Logging

type Logging struct {
	// Debug display debug level logging
	Debug bool
	// Debug display debug level logging
	DebugDb bool
	// LogScanErrors log errors related to scanning
	LogScanErrors bool
	// Silence all logging
	Silence bool
}

Logging is log related options

type Options

type Options struct {
	// Logging is logging options
	Logging Logging

	ExcludeFilterList []net.IPNet

	IncludeFilterList []net.IPNet

	FilterList []string

	StoreTempInWorkspace bool

	Services []models.Service

	HostsPerScan int

	PortsPerScan int

	SameSubnet int

	IncludeSaas bool

	MinSubnet int

	MaxSubnet int

	Append bool

	NoSupernet bool
}

Options are global github.com/helviojunior/randmaprandmap options

func NewDefaultOptions

func NewDefaultOptions() *Options

NewDefaultOptions returns Options with some default values

Jump to

Keyboard shortcuts

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