mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 21:02:44 +08:00
Update eval.go
This commit is contained in:
parent
53c1b3232a
commit
29acfb166b
@ -564,13 +564,13 @@ func randomString(n int) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func reverseCheck(r *Reverse, timeout int64) bool {
|
func reverseCheck(r *Reverse, timeout int64) bool {
|
||||||
if ceyeApi == "" || r.Domain == "" {
|
if ceyeApi == "" || r.Domain == "" || !common.DnsLog {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
time.Sleep(time.Second * time.Duration(timeout))
|
time.Sleep(time.Second * time.Duration(timeout))
|
||||||
sub := strings.Split(r.Domain, ".")[0]
|
sub := strings.Split(r.Domain, ".")[0]
|
||||||
urlStr := fmt.Sprintf("http://api.ceye.io/v1/records?token=%s&type=dns&filter=%s", ceyeApi, sub)
|
urlStr := fmt.Sprintf("http://api.ceye.io/v1/records?token=%s&type=dns&filter=%s", ceyeApi, sub)
|
||||||
|
//fmt.Println(urlStr)
|
||||||
req, _ := http.NewRequest("GET", urlStr, nil)
|
req, _ := http.NewRequest("GET", urlStr, nil)
|
||||||
resp, err := DoRequest(req, false)
|
resp, err := DoRequest(req, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -621,6 +621,7 @@ func DoRequest(req *http.Request, redirect bool) (*Response, error) {
|
|||||||
oResp, err = ClientNoRedirect.Do(req)
|
oResp, err = ClientNoRedirect.Do(req)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
//fmt.Println("[-]DoRequest error: ",err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
defer oResp.Body.Close()
|
defer oResp.Body.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user