Skip to content
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

Source composition with base embed source #715

Closed
wants to merge 9 commits into from
Closed

Source composition with base embed source #715

wants to merge 9 commits into from

Conversation

vzamanillo
Copy link
Contributor

  • Treats sources as interfaces
  • Every source embeds a proper base source to prevent code duplication
  • Adds source type and API key type to extend the source information when listing the available sources.

imagen

@vzamanillo
Copy link
Contributor Author

CI is failing due to:

Víctor Zamanillo and others added 9 commits November 23, 2022 21:13
Conflicts:
	v2/pkg/passive/sources.go
	v2/pkg/subscraping/sources/crtsh/crtsh.go
Conflicts:
	v2/pkg/passive/sources.go
Conflicts:
	v2/pkg/passive/sources.go
Conflicts:
	v2/pkg/passive/passive.go
	v2/pkg/subscraping/sources/alienvault/alienvault.go
	v2/pkg/subscraping/sources/anubis/anubis.go
	v2/pkg/subscraping/sources/bevigil/bevigil.go
	v2/pkg/subscraping/sources/binaryedge/binaryedge.go
	v2/pkg/subscraping/sources/bufferover/bufferover.go
	v2/pkg/subscraping/sources/c99/c99.go
	v2/pkg/subscraping/sources/censys/censys.go
	v2/pkg/subscraping/sources/certspotter/certspotter.go
	v2/pkg/subscraping/sources/chaos/chaos.go
	v2/pkg/subscraping/sources/chinaz/chinaz.go
	v2/pkg/subscraping/sources/commoncrawl/commoncrawl.go
	v2/pkg/subscraping/sources/crtsh/crtsh.go
	v2/pkg/subscraping/sources/digitorus/digitorus.go
	v2/pkg/subscraping/sources/dnsdb/dnsdb.go
	v2/pkg/subscraping/sources/dnsdumpster/dnsdumpster.go
	v2/pkg/subscraping/sources/dnsrepo/dnsrepo.go
	v2/pkg/subscraping/sources/fofa/fofa.go
	v2/pkg/subscraping/sources/fullhunt/fullhunt.go
	v2/pkg/subscraping/sources/github/github.go
	v2/pkg/subscraping/sources/hackertarget/hackertarget.go
	v2/pkg/subscraping/sources/hunter/hunter.go
	v2/pkg/subscraping/sources/intelx/intelx.go
	v2/pkg/subscraping/sources/passivetotal/passivetotal.go
	v2/pkg/subscraping/sources/quake/quake.go
	v2/pkg/subscraping/sources/rapiddns/rapiddns.go
	v2/pkg/subscraping/sources/reconcloud/reconcloud.go
	v2/pkg/subscraping/sources/riddler/riddler.go
	v2/pkg/subscraping/sources/robtex/robtext.go
	v2/pkg/subscraping/sources/securitytrails/securitytrails.go
	v2/pkg/subscraping/sources/shodan/shodan.go
	v2/pkg/subscraping/sources/sitedossier/sitedossier.go
	v2/pkg/subscraping/sources/threatbook/threatbook.go
	v2/pkg/subscraping/sources/threatminer/threatminer.go
	v2/pkg/subscraping/sources/virustotal/virustotal.go
	v2/pkg/subscraping/sources/waybackarchive/waybackarchive.go
	v2/pkg/subscraping/sources/whoisxmlapi/whoisxmlapi.go
	v2/pkg/subscraping/sources/zoomeye/zoomeye.go
	v2/pkg/subscraping/sources/zoomeyeapi/zoomeyeapi.go
	v2/pkg/subscraping/types.go
@tarunKoyalwar
Copy link
Member

tarunKoyalwar commented Dec 22, 2022

@vzamanillo , I have already implemented this due to ongoing necessary code refactoring and performance improvements. I think we can close this . Following changes were done

  • BaseSource struct is embedded in every source struct and almost everything is abstracted
  • Remove Token Manger and Implement a default Strategy using Rate-Limits
  • Worker Pool architecture (WIP)

and a lot more

@vzamanillo vzamanillo deleted the source-composition branch December 22, 2022 23:03
@vzamanillo
Copy link
Contributor Author

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants