(target string, hashmap map[string]interface{})
| 10 | type IsAliveUrl struct{} |
| 11 | |
| 12 | func (t IsAliveUrl) SendPoc(target string, hashmap map[string]interface{}) { |
| 13 | reqmap := req2.NewReqInfoToMap(hashmap) |
| 14 | reqmap["url"] = target |
| 15 | reqmap["method"] = "HEAD" |
| 16 | headers := map[string]string{ |
| 17 | "User-Agent": utils.GetUA(), |
| 18 | } |
| 19 | reqmap["headers"] = headers |
| 20 | resp := utils.Send(reqmap) |
| 21 | if t.CheckExp(resp, target, hashmap) { |
| 22 | log.Infof("[+] %s is alive", target) |
| 23 | } |
| 24 | |
| 25 | } |
| 26 | |
| 27 | func (t IsAliveUrl) SaveResult(target string, file string) { |
| 28 | // nothing to do |