Closed imnewbe closed 6 years ago
Yeah, that's the most likely explanation of the error. If this occurs you should just use --exclude-sources flag with riddler option to ignore riddler. Anyway, I'll look into it.
Bro, When I used --exclude-sources riddler, it's worked correctly. About the internet firewall, it really makes me embarrassed, it causes everything is crashed. But when I used a socks5 proxy, the program crashed again.
So, it means only riddler is failing?
yeap.
Nizamul Rana notifications@github.com 于2018年6月22日周五 上午11:16写道:
So, it means only riddler is failing?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Ice3man543/subfinder/issues/78#issuecomment-399308198, or mute the thread https://github.com/notifications/unsubscribe-auth/ADitTfVQKWwLGsuBXkIBwy7VgYKmdkj7ks5t_GF5gaJpZM4UzCI- .
OK, I'll try to see what's the trouble with it. Did you setup an api key for riddler?
No, I didn't. So, this trouble could be resolved by writing a recover() in some function?
You need to specify the api key for riddler in order for riddler to work properly.
Ok... if I didn't set API key for riddler and also don't use --exclude-sources to exclude riddler. it's should have some troubles tolerance policy. Like try-catch in other program languages. Do you think so?
Yeah, I think it should.
req.PostForm = form
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
req.Header.Add("Referer", "https://dnsdumpster.com")
req.Header.Set("User-Agent", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1")
resp, err = hc.Do(req)
if err != nil {
return subdomains
}
dnsdumpster.go
riddler.go
// Create a post request to get subdomain data
req, err := http.NewRequest("POST", "https://riddler.io/auth/login", bytes.NewBuffer(data))
req.Header.Add("Content-Type", "application/json")
resp, err := hc.Do(req)
if err != nil{
return subdomains
}
I fixed two of above bugs. In some cases it may be made crash.
try sdo.com. seems to show out some garbage info.
Thanks for this. I will try it in a moment and inform you.
when I run this program, the program stopped by above error. I didn't debug your program. so I'm not sure what the real problem is. by the way, I live in China, I guess this situation may be caused by internet firewall.