MCPcopy Create free account
hub / github.com/code-scan/Goal / AddTask

Method AddTask

Gsensor/KSubDomainSensor.go:54–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52var data string
53
54func (s *KSubDomainSensor) AddTask() {
55 s.Tasks = []string{}
56 datas := strings.Split(string(data), "\n")
57 for _, sub := range datas {
58 sub = strings.TrimSpace(sub)
59 domain := fmt.Sprintf("%s.%s", sub, s.Target)
60 s.Tasks = append(s.Tasks, domain)
61 }
62}
63func (s *KSubDomainSensor) GetResult() Result {
64 s.result = Result{}
65 if s.Type != "subdomain" {

Callers 1

GetResultMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected