commit
e769c9565e
|
@ -14,6 +14,7 @@ import (
|
|||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"errors"
|
||||
|
||||
"github.com/Ice3man543/subfinder/libsubfinder/helper"
|
||||
)
|
||||
|
@ -68,6 +69,12 @@ func Query(state *helper.State, ch chan helper.Result) {
|
|||
return
|
||||
}
|
||||
|
||||
if auth.Response.User.Authentication_token == "" {
|
||||
result.Error = errors.New("failed to get authentication token")
|
||||
ch <- result
|
||||
return
|
||||
}
|
||||
|
||||
data = []byte(`{"query":"pld:` + state.Domain + `", "output":"host", "limit":500}`)
|
||||
|
||||
req, err = http.NewRequest("POST", "https://riddler.io/api/search", bytes.NewBuffer(data))
|
||||
|
|
Loading…
Reference in New Issue