# GasMasK

> Python tool that gathers domain information from search engines, DNS, WHOIS, certificates, Shodan and Censys.

Source: https://osinttools.io/tools/gasmask/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Domain
- **Category:** Infrastructure and domains
- **Pricing:** Open source (Free and open source (GPL-3.0).)
- **Footprint:** depends on the modules you run
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI
- **Website:** https://github.com/twelvesec/gasmask
- **GitHub:** twelvesec/gasmask, 1,520 stars · Python · GPL-3.0 · last commit 2021-05-05 · dormant (no commit on the default branch in 18 months)
- **Listed:** Nov 23
- **Last verified by an editor:** Nov 23, 2026

## What it does

GasMasK collects information about a domain from many sources in one run: search engines such as Google, Bing and Yandex, DNS and reverse DNS, WHOIS, crt.sh, PGP key servers, Netcraft, VirusTotal, DNSdumpster, and Shodan and Censys with API keys.

Penetration testers use it at the start of an engagement to gather subdomains, emails, hosts and virtual hosts, and export the results as Markdown, text, XML and HTML.

Footprint is depends: whether the target is contacted depends on which modules or transforms you run. No account is needed. There is no public API.

## Features

- Search engine harvesting
- DNS, reverse DNS and WHOIS
- Certificate transparency via crt.sh
- Shodan and Censys queries with keys
- Virtual host discovery
- Multi-format report export

## Pros

- Many sources in a single command
- Mode flag to limit which sources run
- Proxy support for search engine queries

## Cons

- It has had no code changes since June 2021 and may no longer work; several sources it lists have closed or changed.
- DNS and virtual host checks contact the target's infrastructure
- Search engine scraping is often blocked

## When to use it

- Use it when you want a broad first pass on an authorised target domain.
- Use it when you need combined search engine and DNS results in one report.

## Quick start

Terminal · Python 3:

```
sudo pip3 install -r requirements.txt
python3 gasmask.py -d example.com -i basic
```

## Alternatives

- [DNSDumpster](https://osinttools.io/tools/dnsdumpster/): Passive DNS reconnaissance site that lists a domain's subdomains, hosts, mail and name servers with a map. (Freemium · Domain · passive)
- [Fast Google Dorks Scan](https://osinttools.io/tools/fast-google-dorks-scan/): Shell script that runs a set of Google dork searches against one website to find admin panels, file types and exposed paths. (Open source · Domain · passive · 1,744 GitHub stars)
- [Findomain](https://osinttools.io/tools/findomain/): Rust subdomain finder that queries certificate logs and dozens of passive APIs, with optional monitoring and alerts. (Open source · Domain · depends · 3,838 GitHub stars)
- [OWASP Amass](https://osinttools.io/tools/amass/): OWASP command-line tool for subdomain enumeration and attack surface mapping using passive sources and DNS. (Open source · Domain · depends · 15,554 GitHub stars)
- [OneForAll](https://osinttools.io/tools/oneforall/): Python subdomain collector that combines certificate logs, DNS datasets, search engines, brute force and takeover checks. (Open source · Domain · depends · 10,160 GitHub stars)
- [ParamSpider](https://osinttools.io/tools/paramspider/): Fetches a domain's archived URLs from the Wayback Machine and filters them down to ones with parameters. (Open source · Domain · passive · 3,214 GitHub stars)

All alternatives to GasMasK in one table: https://osinttools.io/tools/gasmask/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
