# Dorkgen
GoDoc build status go report Latest version
Dorkgen is a dork request generator for popular search engines such as Google, DuckDuckGo and Bing. [Learn more about Google Hacking](https://en.wikipedia.org/wiki/Google_hacking). ## Install ```bash go get github.com/sundowndev/dorkgen ``` ## Usage ```go package main import "github.com/sundowndev/dorkgen" func main() { dork := &dorkgen.GoogleSearch{} // dork := &dorkgen.DuckDuckGo{} // dork := &dorkgen.Bing{} dork.Site("example.com").Intext("06792489265").ToString() // returns: site:example.com "06792489265" dork.Site("example.com").Or().Intext("06792489265").ToString() // returns: site:example.com OR "06792489265" dork.Site("facebook.*").Exclude("site:facebook.com").ToURL() // returns: https://www.google.com/search?q=site%3A"facebook.*"+-site%3Afacebook.com } ``` ## API ```go type EngineFactory interface { Site(string) *GoogleSearch ToString() string ToURL() string Intext(string) *GoogleSearch Inurl(string) *GoogleSearch Filetype(string) *GoogleSearch Cache(string) *GoogleSearch Related(string) *GoogleSearch Ext(string) *GoogleSearch Exclude(string) *GoogleSearch } ```