# XRay

> Go tool that enumerated subdomains and used Shodan and banner grabbing to map a domain's hosts in a web UI.

Source: https://osinttools.io/tools/xray/ (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); Shodan API key needed for most features.)
- **Footprint:** active (contacts the target or the services it checks)
- **Account required:** yes, for full results
- **API:** no public API
- **Platforms:** Go CLI · Web UI · Docker
- **Website:** https://github.com/evilsocket/xray
- **GitHub:** evilsocket/xray, 2,344 stars · Go · GPL-3.0 · last commit 2024-07-10 · archived
- **Listed:** Nov 23
- **Last verified by an editor:** Nov 23, 2026

## What it does

XRay brute-forces subdomains of a target domain with a wordlist, looks up each host on Shodan for open ports, optionally pulls historical DNS data from ViewDNS, then connects to the open ports to grab HTTP headers, robots.txt, TLS certificates and service banners. Results appear in a local web UI.

Its README marks the repository as legacy code and points to a Rust reimplementation in evilsocket/legba.

Footprint is active: it contacts the target or the services it is checking, which can be logged on the other side. An account is needed for full results. There is no public API.

## Features

- Wordlist subdomain brute-forcing
- Shodan port and service lookups
- ViewDNS historical data
- HTTP, TLS and service banner grabbing
- Local web UI
- Session file and Docker build

## Pros

- Combines DNS, Shodan and banner data in one view
- Simple single-binary tool
- No port scanning of its own; ports come from Shodan

## Cons

- The repository is archived (read-only) and no longer maintained.
- Without a Shodan API key it only does subdomain enumeration
- Banner grabbing connects directly to target hosts

## When to use it

- Use it when studying a simple domain-mapping pipeline that combines DNS and Shodan.
- Use it when you need a quick local map of an authorised target and have a Shodan key.

## Quick start

Terminal · Docker:

```
git clone https://github.com/evilsocket/xray.git
cd xray
docker build -t xraydocker .
docker run --rm -it -p 8080:8080 xraydocker xray -address 0.0.0.0 -shodan-key KEY -domain example.com
```

## 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 XRay in one table: https://osinttools.io/tools/xray/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/
