gdorking is a tool and reference for Google Dorking (a.k.a. "Google Hacking") — the use of advanced search operators to surface publicly exposed or misconfigured resources. It auto-generates an up-to-date dataset of known dork queries from the Exploit-DB Google Hacking Database on a weekly cadence.
The data files below are automatically generated by GitHub Actions on every push to main and on a weekly schedule. They are not hand-maintained.
Install dependencies with uv:
uv sync# Either of these work:
gdorking fetch
python -m gdorking fetchgdorking fetch --format txt,json# Only dorks in the "Passwords" category
gdorking fetch --category "Passwords"
# Only dorks whose title contains "admin"
gdorking fetch --keyword admin
# Only dorks by a specific author
gdorking fetch --author "Johnny Long"gdorking fetch --output-dir /tmp/my-dorksusage: gdorking fetch [-h] [--format FORMAT[,FORMAT...]] [--output-dir PATH]
[--category CATEGORY] [--keyword KEYWORD] [--author AUTHOR]
-
after: Search for results from after a particular date.
- Example:
apple after:2007-06-29
- Example:
-
allintext: Search for pages with multiple words in their content.
- Example:
allintext:apple iphone
- Example:
-
allintitle: Search for pages with multiple words in the title tag.
- Example:
allintitle:apple iphone
- Example:
-
allinurl: Search for pages with multiple words in the URL.
- Example:
allinurl:apple iphone
- Example:
-
AND: Search for results related to X and Y.
- Example:
jobs AND gates
- Example:
-
before: Search for results from before a particular date.
- Example:
apple before:2007-06-29
- Example:
-
cache: Find the most recent cache of a webpage.
- Example:
cache:apple.com
- Example:
-
define: Search for the definition of a word or phrase.
- Example:
define:entrepreneur
- Example:
-
ext: Same as
filetype:- Example:
apple ext:pdf
- Example:
-
filetype: Search for particular types of files (e.g., PDF).
- Example:
apple filetype:pdf
- Example:
-
in: Convert one unit to another.
- Example:
$329 in GBP
- Example:
-
intext: Search for pages with a particular word in their content.
- Example:
intext:apple iphone
- Example:
-
intitle: Search for pages with a particular word in the title tag.
- Example:
intitle:apple
- Example:
-
inurl: Search for pages with a particular word in the URL.
- Example:
inurl:apple
- Example:
-
map: Force Google to show map results.
- Example:
map:silicon valley
- Example:
-
movie: Search for information about a movie.
- Example:
movie:steve jobs
- Example:
-
OR: Search for results related to X or Y.
- Example:
jobs OR gates
- Example:
-
related: Search for sites related to a given domain.
- Example:
related:apple.com
- Example:
-
site: Search for results from a particular website.
- Example:
site:apple.com
- Example:
-
source: Search for results from a particular source in Google News.
- Example:
apple source:the_verge
- Example:
-
stocks: Search for stock information for a ticker.
- Example:
stocks:aapl
- Example:
-
weather: Search for the weather in a location.
- Example:
weather:san francisco
- Example:
-
|: Same as
OR- Example:
jobs | gates
- Example:
-
" ": Search for results that mention a word or phrase.
- Example:
"steve jobs"
- Example:
-
( ): Group multiple searches.
- Example:
(ipad OR iphone) apple
- Example:
-
*: Wildcard matching any word or phrase.
- Example:
steve * apple
- Example:
-
+: Concatenates words to detect pages using multiple specific keywords.
-
-: Search for results that don't mention a word or phrase.
- Example:
jobs -apple
- Example:
-
#..#: Search within a range of numbers.
- Example:
iphone case $50..$60
- Example:
-
inanchor: Search for pages with backlinks containing specific anchor text.
- Example:
inanchor:apple
- Example:
-
allinanchor: Search for pages with backlinks containing multiple words in their anchor text.
- Example:
allinanchor:apple iphone
- Example:
-
AROUND(X): Search for pages with two words or phrases within X words of one another.
- Example:
apple AROUND(4) iphone
- Example:
-
loc: Find results from a given area.
- Example:
loc:"san francisco" apple
- Example:
-
location: Find news from a certain location in Google News.
- Example:
location:"san francisco" apple
- Example:
-
daterange: Search for results from a particular date range.
- Example:
daterange:11278-13278
- Example:
Contributions are welcome! Feel free to submit pull requests to add more operators or improve existing information.
uv sync --dev # install all dependencies including dev tools
uv run pytest # run tests
uv run ruff check . # lint
uv run ruff format . # formatThis README file is licensed under the MIT License.