feat(11-01): add GoogleDorkSource and BingDorkSource with formatQuery updates

- GoogleDorkSource uses Google Custom Search JSON API (APIKey+CX required)
- BingDorkSource uses Bing Web Search API v7 (Ocp-Apim-Subscription-Key header)
- formatQuery now handles google/bing/duckduckgo/yandex/brave dork syntax
- Both sources follow established pattern: retry via Client, rate limit via LimiterRegistry
This commit is contained in:
salvacybersec
2026-04-06 11:54:36 +03:00
parent 3aadeb2d1c
commit 7272e65207
5 changed files with 633 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ func formatQuery(source, keyword string) string {
switch source {
case "github", "gist":
return fmt.Sprintf("%q in:file", keyword)
case "google", "bing", "duckduckgo", "yandex", "brave":
return fmt.Sprintf(`site:pastebin.com OR site:github.com "%s"`, keyword)
default:
// GitLab, Bitbucket, Codeberg, HuggingFace, Kaggle, Replit,
// CodeSandbox, sandboxes, and unknown sources use bare keywords.