Skip to content

xransum/gdorking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gdorking

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.

Data Sources

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.

Usage

Install dependencies with uv:

uv sync

Fetch all dorks (all formats, default output directory)

# Either of these work:
gdorking fetch
python -m gdorking fetch

Fetch specific formats only

gdorking fetch --format txt,json

Filter by category, keyword, or author

# 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"

Write output to a custom directory

gdorking fetch --output-dir /tmp/my-dorks

All options

usage: gdorking fetch [-h] [--format FORMAT[,FORMAT...]] [--output-dir PATH]
                      [--category CATEGORY] [--keyword KEYWORD] [--author AUTHOR]

Operators

  • after: Search for results from after a particular date.

    • Example: apple after:2007-06-29
  • allintext: Search for pages with multiple words in their content.

    • Example: allintext:apple iphone
  • allintitle: Search for pages with multiple words in the title tag.

    • Example: allintitle:apple iphone
  • allinurl: Search for pages with multiple words in the URL.

    • Example: allinurl:apple iphone
  • AND: Search for results related to X and Y.

    • Example: jobs AND gates
  • before: Search for results from before a particular date.

    • Example: apple before:2007-06-29
  • cache: Find the most recent cache of a webpage.

    • Example: cache:apple.com
  • define: Search for the definition of a word or phrase.

    • Example: define:entrepreneur
  • ext: Same as filetype:

    • Example: apple ext:pdf
  • filetype: Search for particular types of files (e.g., PDF).

    • Example: apple filetype:pdf
  • in: Convert one unit to another.

    • Example: $329 in GBP
  • intext: Search for pages with a particular word in their content.

    • Example: intext:apple iphone
  • intitle: Search for pages with a particular word in the title tag.

    • Example: intitle:apple
  • inurl: Search for pages with a particular word in the URL.

    • Example: inurl:apple
  • map: Force Google to show map results.

    • Example: map:silicon valley
  • movie: Search for information about a movie.

    • Example: movie:steve jobs
  • OR: Search for results related to X or Y.

    • Example: jobs OR gates
  • related: Search for sites related to a given domain.

    • Example: related:apple.com
  • site: Search for results from a particular website.

    • Example: site:apple.com
  • source: Search for results from a particular source in Google News.

    • Example: apple source:the_verge
  • stocks: Search for stock information for a ticker.

    • Example: stocks:aapl
  • weather: Search for the weather in a location.

    • Example: weather:san francisco
  • |: Same as OR

    • Example: jobs | gates
  • " ": Search for results that mention a word or phrase.

    • Example: "steve jobs"
  • ( ): Group multiple searches.

    • Example: (ipad OR iphone) apple
  • *: Wildcard matching any word or phrase.

    • Example: steve * apple
  • +: Concatenates words to detect pages using multiple specific keywords.

  • -: Search for results that don't mention a word or phrase.

    • Example: jobs -apple

Deprecated Operators

  • #..#: Search within a range of numbers.

    • Example: iphone case $50..$60
  • inanchor: Search for pages with backlinks containing specific anchor text.

    • Example: inanchor:apple
  • allinanchor: Search for pages with backlinks containing multiple words in their anchor text.

    • Example: allinanchor:apple iphone
  • AROUND(X): Search for pages with two words or phrases within X words of one another.

    • Example: apple AROUND(4) iphone
  • loc: Find results from a given area.

    • Example: loc:"san francisco" apple
  • location: Find news from a certain location in Google News.

    • Example: location:"san francisco" apple
  • daterange: Search for results from a particular date range.

    • Example: daterange:11278-13278

Contributing

Contributions are welcome! Feel free to submit pull requests to add more operators or improve existing information.

Development

uv sync --dev       # install all dependencies including dev tools
uv run pytest       # run tests
uv run ruff check . # lint
uv run ruff format . # format

License

This README file is licensed under the MIT License.

About

Tool and auto-updated dataset of Google Dork queries sourced from the Exploit-DB Google Hacking Database

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages