Skip to content

command reference

alzzdev edited this page Jun 11, 2026 · 1 revision

Command Reference

This page lists every command‑line argument available in Atdork v1.1.
Arguments can be combined freely; only -q (or --batch-file) is required in non‑interactive mode.


Main Options

FlagDescriptionDefault
--interactiveLaunch interactive mode (step‑by‑step prompts).(off)
-q, --querySearch query / dork string.(required in CLI)
-r, --max-resultsMaximum number of results (1–100).20

Search Parameters

FlagDescriptionDefault
--regionRegion / language code (e.g. us-en, uk-en, ru-ru).us-en
--safesearchSafeSearch level: on, moderate, off.moderate
--timelimitTime limit for results: d (day), w (week), m (month), y (year).(none)
--backendBackend search engine(s) – comma‑separated list (see Supported Backends).auto

Request Tuning

FlagDescriptionDefault
--user-agentCustom User‑Agent string. If not set, a random one from the built‑in pool is used.(auto‑rotate)
--timeoutHTTP request timeout in seconds.10
--retriesNumber of retry attempts when a search fails.2
--delayDelay between requests in seconds (applied per query, even in multi‑threaded mode).0

Proxy Options

FlagDescriptionDefault
--proxyOne or more proxy URLs, separated by commas (e.g. http://proxy:8080,socks5://127.0.0.1:1080).
--proxy-filePath to a file containing proxy URLs, one per line.
--torAutomatically add Tor SOCKS5 proxy (socks5h://127.0.0.1:9050) if Tor is running.(off)
--strictIf set, Atdork will never fall back to a direct connection when all proxies fail – it will exit with an error.False
--proxy-cooldownNumber of seconds a proxy is marked as “banned” after a failure.60
--max-failuresNumber of consecutive failures after which a proxy is permanently removed from the pool. Set to 0 to keep all proxies forever.3

Multi‑Threading

FlagDescriptionDefault
--concurrencyNumber of parallel threads to use for batch processing. Use 1 for sequential (default).1
--max-fallback-failuresWhen running in parallel, if this many consecutive search failures occur, the tool automatically switches to safe sequential mode for the remaining queries.3

Batch Processing

FlagDescriptionDefault
--batch-filePath to a file containing one query per line (empty lines and lines starting with # are ignored).
--batch-separatorWhen -q is used, this separator is used to split multiple queries (e.g. "dork1;dork2;dork3").;

Output Options

FlagDescriptionDefault
-o, --outputSave results to this file. The format is inferred from the extension, or use --format.
--output-dirSave each query’s result as a separate file inside this folder (file names are generated automatically from the query text).
--formatOutput format: txt, json, csv. Overrides the extension of -o.txt
--no-snippetDo not display the snippet/body in the terminal output (URL and title only).(off)

Output Validation

FlagDescriptionDefault
--no-validateDisable all result filtering – keep spam, invalid URLs, and low‑quality results.(off – filtering is on by default)
--strict-filterApply stricter filtering: reject results that have an empty snippet or a title shorter than 5 characters.(off)

Other

FlagDescription
--debugEnable verbose debug logging (shows proxy, User‑Agent, retry details).
--versionShow version number and exit.

Supported Backends

auto (default), bing, brave, duckduckgo, google, grokipedia, mojeek, startpage, yandex, yahoo, wikipedia.

You can combine multiple backends with a comma, e.g. --backend google,bing.


Example Invocations

# Single search, no saving
python main.py -q "site:gov filetype:pdf" -r 20
# Interactive mode
python main.py --interactive
# Proxy + strict + Tor
python main.py -q "secret" --tor --strict --delay 1.5 -o secret.json
# Batch file with 5 threads
python main.py --batch-file dorks.txt --concurrency 5 --output-dir out --format csv
# Raw results (no filtering)
python main.py -q "buy now" --no-validate
# High quality, strict filtering
python main.py -q "financial report" --strict-filter -r 30

Next:Examples & Use Cases for real‑world scenarios.

Clone this wiki locally