Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func LineCounter ¶
LineCounter returns the number of lines in a file Adapted from: http://stackoverflow.com/questions/24562942/golang-how-do-i-determine-the-number-of-lines-in-a-file-efficiently
Types ¶
type CsvProcessor ¶
type CsvProcessor struct {
// contains filtered or unexported fields
}
func NewCsvProcessor ¶
func NewCsvProcessor(outputDir string, skipErrors bool, cacheFunc func([]byte) []byte) *CsvProcessor
func (*CsvProcessor) Finish ¶
func (p *CsvProcessor) Finish()
func (*CsvProcessor) Prepare ¶
func (p *CsvProcessor) Prepare()
func (*CsvProcessor) ProcessResult ¶
func (p *CsvProcessor) ProcessResult(result *results.ScanResult)
func (*CsvProcessor) ProcessSubResult ¶
func (p *CsvProcessor) ProcessSubResult(parent *results.ScanResult, subResultIndex int)
func (*CsvProcessor) StartOutputWriter ¶
func (p *CsvProcessor) StartOutputWriter(fileName string, header []string)
type Processor ¶
type Processor struct { ResultProcessor OutputChan <-chan *results.ScanResult }
Processor is the base result processing struct, embedding a ResultProcessor
type ResultProcessor ¶
type ResultProcessor interface { Prepare() ProcessResult(*results.ScanResult) Finish() }
func NewSSHHostKeyHostProcessor ¶
func NewSSHHostKeyHostProcessor(hostkeyfile, hostfile, relfile string, skipErrors bool) *ResultProcessor
NewSSHHostKeyHostProcessor returns a new processor for results of scanned SSH hosts
type SSHHostKeyHostProcessor ¶
type SSHHostKeyHostProcessor struct { Processor // contains filtered or unexported fields }
SSHHostKeyHostProcessor implements the processing of SSH scanning results
func (SSHHostKeyHostProcessor) Finish ¶
func (t SSHHostKeyHostProcessor) Finish()
Finish is called after the results have been processed
func (SSHHostKeyHostProcessor) Prepare ¶
func (t SSHHostKeyHostProcessor) Prepare()
Prepare is called before the results are being processed
func (SSHHostKeyHostProcessor) ProcessResult ¶
func (t SSHHostKeyHostProcessor) ProcessResult(result *results.ScanResult)
ProcessResult dumps the hostKey
type Scanner ¶
type Scanner struct { NumRoutines int QPS int ConnTimeout time.Duration SynTimeout time.Duration SourceIP *net.TCPAddr InputFile string Input chan *scans.Target Output chan *results.ScanResult // contains filtered or unexported fields }
Scanner is the base struct that handles the scanning loop
func NewScanner ¶
func (*Scanner) PrintStatus ¶
func (s *Scanner) PrintStatus()
Click to show internal directories.
Click to hide internal directories.