{"id":13538849,"url":"https://github.com/utiso/dorkbot","last_synced_at":"2025-04-02T05:32:04.160Z","repository":{"id":45820821,"uuid":"94484969","full_name":"utiso/dorkbot","owner":"utiso","description":"Command-line tool to scan Google search results for vulnerabilities","archived":false,"fork":false,"pushed_at":"2024-08-06T14:25:51.000Z","size":172,"stargazers_count":510,"open_issues_count":5,"forks_count":96,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-08-06T16:38:12.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dorkbot.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/utiso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-06-15T22:56:27.000Z","updated_at":"2024-08-06T14:25:54.000Z","dependencies_parsed_at":"2023-02-08T13:00:22.454Z","dependency_job_id":"fbd80471-d369-4b92-932d-354df88e7210","html_url":"https://github.com/utiso/dorkbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utiso%2Fdorkbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utiso%2Fdorkbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utiso%2Fdorkbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utiso%2Fdorkbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utiso","download_url":"https://codeload.github.com/utiso/dorkbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222801998,"owners_count":17039861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T09:01:16.906Z","updated_at":"2024-11-03T03:32:12.065Z","avatar_url":"https://github.com/utiso.png","language":"Python","readme":"![Image of Dorkbot](https://security.utexas.edu/sites/default/files/Artboard%203_0.png)\n\ndorkbot\n=======\n\nScan Google (or other) search results for vulnerabilities.\n\ndorkbot is a modular command-line tool for performing vulnerability scans against sets of webpages returned by Google search queries or other supported sources. It is broken up into two sets of modules:\n\n* *Indexers* - modules that return a list of targets\n* *Scanners* - modules that perform a vulnerability scan against each target\n\nTargets are stored in a database as they are indexed. Once scanned, a standard JSON report is produced containing any vulnerabilities found. Indexing and scanning processes can be run separately or combined in a single command (up to one of each).\n\nQuickstart\n==========\n* Create a Google API credential via the [Developer Console](https://console.developers.google.com)\n* Create a Google [Custom Search Engine](https://www.google.com/cse/) and note the search engine ID, e.g. 012345678901234567891:abc12defg3h\n\u003cpre\u003e$ pip3 install dorkbot wapiti3\u003c/pre\u003e\n\u003cpre\u003e$ dorkbot -i google_api -o key=your_api_credential_here -o engine=your_engine_id_here -o query=\"filetype:php inurl:id\"\u003c/pre\u003e\n\u003cpre\u003e$ dorkbot -s wapiti\u003c/pre\u003e\n\nHelp\n====\n\u003cpre\u003e\n -h, --help            Show program (or specified module) help\n\u003c/pre\u003e\n\u003cpre\u003e\n  --show-defaults       Show default values in help output\n\u003c/pre\u003e\n\nUsage\n=====\n\u003cpre\u003e\nusage: dorkbot.py [-c CONFIG] [-r DIRECTORY] [--source [SOURCE]]\n                  [--show-defaults] [--count COUNT] [--random] [-h]\n                  [--log LOG] [-v] [-V] [-d DATABASE] [-u] [-l]\n                  [--list-unscanned] [--add-target TARGET]\n                  [--delete-target TARGET] [--flush-targets] [-i INDEXER]\n                  [-o INDEXER_ARG] [-s SCANNER] [-p SCANNER_ARG] [-f]\n                  [--list-blocklist] [--add-blocklist-item ITEM]\n                  [--delete-blocklist-item ITEM] [--flush-blocklist]\n                  [-b EXTERNAL_BLOCKLIST]\n\noptions:\n  -c CONFIG, --config CONFIG\n                        Configuration file\n  -r DIRECTORY, --directory DIRECTORY\n                        Dorkbot directory (default location of db, tools,\n                        reports)\n  --source [SOURCE]     Label associated with targets\n  --show-defaults       Show default values in help output\n  -h, --help            Show program (or specified module) help\n  --log LOG             Path to log file\n  -v, --verbose         Enable verbose logging (DEBUG output)\n  -V, --version         Print version\n\nglobal scanner options:\n  --count COUNT         number of urls to scan, or -1 to scan all urls\n  --random              retrieve urls in random order\n\ndatabase:\n  -d DATABASE, --database DATABASE\n                        Database file/uri\n  -u, --prune           Apply fingerprinting and blocklist without scanning\n\ntargets:\n  -l, --list-targets    List targets in database\n  --list-unscanned      List unscanned targets in database\n  --add-target TARGET   Add a url to the target database\n  --delete-target TARGET\n                        Delete a url from the target database\n  --flush-targets       Delete all targets\n\nindexing:\n  -i INDEXER, --indexer INDEXER\n                        Indexer module to use\n  -o INDEXER_ARG, --indexer-arg INDEXER_ARG\n                        Pass an argument to the indexer module (can be used\n                        multiple times)\n\nscanning:\n  -s SCANNER, --scanner SCANNER\n                        Scanner module to use\n  -p SCANNER_ARG, --scanner-arg SCANNER_ARG\n                        Pass an argument to the scanner module (can be used\n                        multiple times)\n\nfingerprints:\n  -f, --flush-fingerprints\n                        Delete all fingerprints of previously-scanned items\n\nblocklist:\n  --list-blocklist      List internal blocklist entries\n  --add-blocklist-item ITEM\n                        Add an ip/host/regex pattern to the internal blocklist\n  --delete-blocklist-item ITEM\n                        Delete an item from the internal blocklist\n  --flush-blocklist     Delete all internal blocklist items\n  -b EXTERNAL_BLOCKLIST, --external-blocklist EXTERNAL_BLOCKLIST\n                        Supplemental external blocklist file/db (can be used\n                        multiple times)\n\u003c/pre\u003e\n\nTools / Dependencies\n=====\n* [psycopg2-binary](https://pypi.org/project/psycopg2-binary/) or [psycopg2](https://pypi.org/project/psycopg2/) (if using PostgreSQL)\n* [phoenixdb](https://pypi.org/project/phoenixdb/) (if using PhoenixDB)\n* [PhantomJS](http://phantomjs.org/) (if using non-api google indexer)\n* [Arachni](http://www.arachni-scanner.com/)\n* [Wapiti](http://wapiti.sourceforge.net/)\n\nAs needed, dorkbot will search for tools in the following order:\n* Directory specified via relevant module option\n* Located in *tools* directory (within current directory, by default), with the subdirectory named after the tool\n* Available in the user's PATH (e.g. installed system-wide)\n\nFiles\n=====\nAll SQLite3 databases, tools, and reports are saved in the dorkbot directory, which by default is the current directory. You can force a specific directory with the --directory flag. Default file paths within this directory are as follows:\n\n* SQLite3 database file: *dorkbot.db*\n* External tools directory: *tools/*\n* Scan report output directory: *reports/*\n\nConfiguration files are by default read from *~/.config/dorkbot/* (Linux / MacOS) or in the Application Data folder (Windows), honoring $XDG_CONFIG_HOME / %APPDATA%. Default file paths within this directory are as follows:\n\n* Dorkbot configuration file: *dorkbot.ini*\n\nConfig File\n===========\nThe configuration file (dorkbot.ini) can be used to prepopulate certain command-line flags.\n\nExample dorkbot.ini:\n\u003cpre\u003e\n[dorkbot]\ndatabase=/opt/dorkbot/dorkbot.db\n[dorkbot.indexers.wayback]\ndomain=example.com\n[dorkbot.scanners.arachni]\narachni_dir=/opt/arachni\nreport_dir=/tmp/reports\n\u003c/pre\u003e\n\nBlocklist\n=========\nThe blocklist is a list of ip addresses, hostnames, or regular expressions of url patterns that should *not* be scanned. If a target url matches any item in this list it will be skipped and removed from the database. The internal blocklist is maintained in the dorkbot database, but a separate file or databasecan be specified by passing the appropriate file path or connection uri to --external-blocklist. Targets are matched first against the internal blocklist and then optionally against any provided external blocklists.\n\nSupported external blocklists:\n* postgresql://[server info]\n* phoenixdb://[server info]\n* sqlite3:///path/to/blocklist.db\n* /path/to/blocklist.txt\n\nExample blocklist items:\n\u003cpre\u003e\nregex:^[^\\?]+$\nregex:.*login.*\nregex:^https?://[^.]*.example.com/.*\nhost:www.google.com\nip:127.0.0.1\n\u003c/pre\u003e\n\nThe first item will remove any target that doesn't contain a question mark, in other words any url that doesn't contain any GET parameters to test. The second attempts to avoid login functions, and the third blocklists all target urls on example.com. The fourth excludes targets with a hostname of www.google.com and the fifth excludes targets whose host resolves to 127.0.0.1.\n\nPrune\n=====\nThe prune flag iterates through all targets, computes the fingerprints in memory, and marks subsequent matching targets as scanned. Additionally it deletes any target matching a blocklist item. The result is a database where --list-unscanned returns only scannable urls. It honors the **random** flag to compute fingerprints in random order.\n\nGeneral Options\n===============\nThese options are applicable regardless of module chosen:\n\u003cpre\u003e\n  --source [SOURCE]     Label associated with targets\n  --count COUNT         number of urls to scan, or -1 to scan all urls\n  --random              retrieve urls in random order\n\u003c/pre\u003e\n\nIndexer Modules\n===============\n### google ###\n\u003cpre\u003e\n  Searches google.com via scraping\n\n  --engine ENGINE       CSE id\n  --query QUERY         search query\n  --phantomjs-dir PHANTOMJS_DIR\n                        phantomjs base dir containing bin/phantomjs\n  --domain DOMAIN       limit searches to specified domain\n\u003c/pre\u003e\n\n### google_api ###\n\u003cpre\u003e\n  Searches google.com\n\n  --key KEY             API key\n  --engine ENGINE       CSE id\n  --query QUERY         search query\n  --domain DOMAIN       limit searches to specified domain\n\u003c/pre\u003e\n\n### pywb ###\n\u003cpre\u003e\n  Searches a given pywb server's crawl data\n\n  --server SERVER       pywb server url\n  --domain DOMAIN       pull all results for given domain or subdomain\n  --cdx-api-suffix CDX_API_SUFFIX\n                        suffix after index for index api\n  --index INDEX         search a specific index\n  --filter FILTER       query filter to apply to the search\n  --retries RETRIES     number of times to retry fetching results on error\n  --threads THREADS     number of concurrent requests to wayback.org\n\u003c/pre\u003e\n\n### commoncrawl ###\n\u003cpre\u003e\n  Searches commoncrawl.org crawl data\n\n  --domain DOMAIN       pull all results for given domain or subdomain\n  --index INDEX         search a specific index, e.g. CC-MAIN-2019-22 (default: latest)\n  --filter FILTER       query filter to apply to the search\n  --retries RETRIES     number of times to retry fetching results on error\n  --threads THREADS     number of concurrent requests to commoncrawl.org\n\u003c/pre\u003e\n\n### wayback ###\n\u003cpre\u003e\n  Searches archive.org crawl data\n\n  --domain DOMAIN       pull all results for given domain or subdomain\n  --filter FILTER       query filter to apply to the search\n  --from FROM           beginning timestamp\n  --to TO               end timestamp\n  --retries RETRIES     number of times to retry fetching results on error\n  --threads THREADS     number of concurrent requests to wayback.org\n\u003c/pre\u003e\n\n### bing_api ###\n\u003cpre\u003e\n  Searches bing.com\n\n  --key KEY             API key\n  --query QUERY         search query\n\u003c/pre\u003e\n\n### stdin ###\n\u003cpre\u003e\n  Accepts urls from stdin, one per line\n\u003c/pre\u003e\n\nScanner Modules\n===============\n### arachni ###\n\u003cpre\u003e\n  Scans with the arachni command-line scanner\n\n  --arachni-dir ARACHNI_DIR\n                        arachni base dir containing bin/arachni and bin/arachni_reporter\n  --args ARGS           space-delimited list of additional arguments\n  --report-dir REPORT_DIR\n                        directory to save vulnerability report\n  --label LABEL         friendly name field to include in vulnerability report\n\u003c/pre\u003e\n\n### wapiti ###\n\u003cpre\u003e\n  Scans with the wapiti3 command-line scanner\n\n  --wapiti-dir WAPITI_DIR\n                        wapiti base dir containing bin/wapiti\n  --args ARGS           space-delimited list of additional arguments\n  --report-dir REPORT_DIR\n                        directory to save vulnerability report\n  --label LABEL         friendly name field to include in vulnerability report\n\u003c/pre\u003e\n\n","funding_links":[],"categories":["CVEs","Python (1887)","Python","\u003ca id=\"683b645c2162a1fce5f24ac2abfa1973\"\u003e\u003c/a\u003e漏洞\u0026\u0026漏洞管理\u0026\u0026漏洞发现/挖掘\u0026\u0026漏洞开发\u0026\u0026漏洞利用\u0026\u0026Fuzzing","Open Sources Intelligence (OSINT)","OSINT Tools"],"sub_categories":["Hashing","功能","Dorking tools","Web Vulnerability Scanners"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futiso%2Fdorkbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futiso%2Fdorkbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futiso%2Fdorkbot/lists"}