Documentation ¶
Index ¶
- Constants
- Variables
- func Esinit(conf *Config)
- func IPRange(ipNet *net.IPNet) []string
- func InsertEs(dataType string, data EsSave)
- func InsertEsAdd(dataType string, data EsAddSave)
- func InsertEsBrute(dataType string, data EsBruteSave)
- func InsertEsUp(dataType string, upData EsUpSave)
- func InsertThread()
- func SendMail(mail Mail, subject string, body string) (err error)
- type Brute
- type Config
- type Data
- type DataScanHistory
- type Empty
- type Es
- type EsAddData
- type EsAddSave
- type EsBruteData
- type EsBruteSave
- type EsData
- type EsSave
- type EsUpData
- type EsUpSave
- type IP
- type Mail
- type MasScan
- type NmapScan
- type Observe
- type Res
- type Scan
- type ScanHistoryData
- type Scanner
- func (s *Scanner) BruteForce()
- func (s *Scanner) GenerateList(target []nmap.NmapResult, f plugins.ScanType, cancel context.CancelFunc, ...) (brute []Brute, num int)
- func (s *Scanner) GetLastScanTime(dataType string) (int, int)
- func (s *Scanner) MasDistribute(lastScanTime int, lastScanEndTime int)
- func (s *Scanner) MasRun(m *masscan.Masscan)
- func (s *Scanner) NmapDistribute()
- func (s *Scanner) NmapRun(ip string, port string, protocol string) ([]nmap.NmapResult, error)
- func (s *Scanner) ReadUserPass() (err error)
- func (s *Scanner) ScanInit()
- func (s *Scanner) StartScan() (err error)
- type Set
Constants ¶
View Source
const Index = "scan-"
Variables ¶
View Source
var Client *elastic.Client
Functions ¶
func InsertEsAdd ¶
func InsertEsBrute ¶
func InsertEsBrute(dataType string, data EsBruteSave)
func InsertEsUp ¶
func InsertThread ¶
func InsertThread()
Types ¶
type Config ¶
type Config struct { Ver string `yaml:"version"` Nmap NmapScan `yaml:"nmap"` Masscan MasScan `yaml:"masscan"` S Scan `yaml:"scan"` Mail Mail `yaml:"mail"` Es Es `yaml:"es"` Observe Observe `yaml:"observe"` }
func ReadYamlConfig ¶
type DataScanHistory ¶
type EsBruteData ¶
type EsBruteData struct {
// contains filtered or unexported fields
}
type EsBruteSave ¶
type ScanHistoryData ¶
type ScanHistoryData struct {
T DataScanHistory `json:"data"`
}
type Scanner ¶
type Scanner struct { IpSet *Set MTcp *masscan.Masscan MUdp *masscan.Masscan MasStartTime string MasEndTime string NmapStartTime string NmapEndTime string StartTime string EndTime string Conf *Config UserList []string PassList []string Brutech chan []nmap.NmapResult // contains filtered or unexported fields }
func (*Scanner) BruteForce ¶
func (s *Scanner) BruteForce()
func (*Scanner) GenerateList ¶
func (s *Scanner) GenerateList(target []nmap.NmapResult, f plugins.ScanType, cancel context.CancelFunc, startTime string) (brute []Brute, num int)
func (*Scanner) MasDistribute ¶
func (*Scanner) NmapDistribute ¶
func (s *Scanner) NmapDistribute()
func (*Scanner) ReadUserPass ¶
Click to show internal directories.
Click to hide internal directories.