From 611ef3a4a58b81063d7c69db6e12fae26c8d5507 Mon Sep 17 00:00:00 2001 From: Dave Molk Date: Tue, 3 Jan 2023 05:59:37 -0700 Subject: [PATCH] formatting --- README.md | 2 +- cmd/dorking/main.go | 2 +- cmd/dorking/queries.go | 14 +++++++------- cmd/dorking/requests.go | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f5dfb2d..7bbe5e4 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Usage of dorking: -or string OR term(s) -os string - operating system (used to spoof user agent) + operating system (used in user agent and header creation) -q string search query -site string diff --git a/cmd/dorking/main.go b/cmd/dorking/main.go index 1fcbeeb..4ce93de 100644 --- a/cmd/dorking/main.go +++ b/cmd/dorking/main.go @@ -21,7 +21,7 @@ type config struct { not string notsite string or string - os string + os string query string site string timeout int diff --git a/cmd/dorking/queries.go b/cmd/dorking/queries.go index 218362b..a6d34ee 100644 --- a/cmd/dorking/queries.go +++ b/cmd/dorking/queries.go @@ -47,18 +47,18 @@ func (d *dorking) getQueryData() []queryData { // doesn't publish query info, so this is // assembled from poking around... brave := queryData{ - base: "https://search.brave.com/search?q=", + base: "https://search.brave.com/search?q=", feed: "feed%3A", filetype: "filetype%3A", inbody: "inbody%3A", intitle: "intitle%3A", - inurl: "inurl%3A", - name: "brave", - not: "-", + inurl: "inurl%3A", + name: "brave", + not: "-", notsite: "-site%3A", - or: "OR", - site: "site%3A", - spacer: "+", + or: "OR", + site: "site%3A", + spacer: "+", } // quack quack quack mr ducksworth diff --git a/cmd/dorking/requests.go b/cmd/dorking/requests.go index ebaba4f..7f82cf2 100644 --- a/cmd/dorking/requests.go +++ b/cmd/dorking/requests.go @@ -145,4 +145,4 @@ func (d *dorking) chromeUA() string { } random := rand.Intn(len(userAgents)) return userAgents[random] -} \ No newline at end of file +}