Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadExcludeFile ¶
ReadExcludeFile reads and parses an exclude list from a file.
Types ¶
type Input ¶
type Input interface {
// Target pops a target from the queue.
// If it's the last target or the queue is empty, false is returned.
Target() (addr.Addr, bool)
// Size returns the count of remaining targets.
Size() int
}
Input is the target source for the SYN sender.
type RangeInput ¶
type RangeInput struct {
// contains filtered or unexported fields
}
RangeInput combines an IP range with a port.
func NewRangeInput ¶
func NewRangeInput(rawRange string, rawExcludes []string, port uint16) (*RangeInput, error)
NewRangeInput crates a new IP range input source.
func (*RangeInput) Size ¶
func (ri *RangeInput) Size() int
Size calculates the total size of all target ranges.
func (*RangeInput) String ¶
func (ri *RangeInput) String() string
String formats all ranges as a string.
type TXTInput ¶
type TXTInput struct {
// contains filtered or unexported fields
}
TXTInput wraps a target list file as an input source.
func NewTXTInput ¶
NewTXTInput creates a new TXTInput from the given file path. TODO: implement excludes
Click to show internal directories.
Click to hide internal directories.