-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: adding subdomain center as source #118
feature: adding subdomain center as source #118
Conversation
Remove sonar as sub source + (linting) remove depguard
Update README.md
pkg/opendb/subdomaincenter.go
Outdated
// SubdomainCenter retrieves from the url below some known subdomains. | ||
func SubdomainCenter(domain string, plain bool) []string { | ||
if !plain { | ||
fmt.Println("Pulling data from ThreatCrowd") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not threatcrowd
pkg/opendb/subdomaincenter.go
Outdated
defer resp.Body.Close() | ||
|
||
dec := json.NewDecoder(resp.Body) | ||
err = dec.Decode(&wrapper) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here trying this code I get the err json: cannot unmarshal array into Go value of type struct { Records []string "json:\"subdomains\"" }
@edoardottt , Please look into 5217aa6 |
pkg/opendb/subdomaincenter.go
Outdated
// SubdomainCenter retrieves from the url below some known subdomains. | ||
func SubdomainCenter(domain string, plain bool) []string { | ||
if !plain { | ||
fmt.Println("Pulling data from Subdomain") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Pulling data from Subdomain Center
|
Please review - #df98dcc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This source returns the empty list for almost all the domains. The original sourcecode has rate limiting (upto 2 request) as well.