mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 20:51:52 +08:00
修改线程处理机制
This commit is contained in:
@@ -32,10 +32,13 @@ func geturl2(info *common.HostInfo) (flag bool, err error) {
|
||||
defer resp.Body.Close()
|
||||
body, _ := ioutil.ReadAll(resp.Body)
|
||||
if strings.Contains(string(body), "/_cat/master") {
|
||||
result := fmt.Sprintf("Elastic:%s unauthorized", url)
|
||||
result := fmt.Sprintf("[+] Elastic:%s unauthorized", url)
|
||||
common.LogSuccess(result)
|
||||
flag = true
|
||||
}
|
||||
} else {
|
||||
errlog := fmt.Sprintf("[-] Elastic:%s %v", url, err)
|
||||
common.LogError(errlog)
|
||||
}
|
||||
}
|
||||
return flag, err
|
||||
|
||||
Reference in New Issue
Block a user