# Xsubfind3R | A CLI Utility To Find Domain'S Known Subdomains From Curated Passive Online Sources

**URL:** <https://onehack.st/t/xsubfind3r-a-cli-utility-to-find-domains-known-subdomains-from-curated-passive-online-sources/254488>\
**Category:** Tools & Scripts\
**Tags:** tools, programming, freebies, self-improvement\
**Created:** [August 24, 2023, 7:56pm UTC](https://onehack.st/t/xsubfind3r-a-cli-utility-to-find-domains-known-subdomains-from-curated-passive-online-sources/254488 "2023-08-24T19:56:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlayBoy83](https://onehack.st/user_avatar/onehack.st/playboy83/32/164314_2.png) [@PlayBoy83](https://onehack.st/u/PlayBoy83)\
**Post date:** [August 24, 2023, 7:56pm UTC](https://onehack.st/t/xsubfind3r-a-cli-utility-to-find-domains-known-subdomains-from-curated-passive-online-sources/254488/1 "2023-08-24T19:56:15Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/9/4/9491df30652f6754ab806a84de6342d58e3bdcd6.png)

# Xsubfind3r

[![made with go](https://camo.githubusercontent.com/b0fd323d66f8edfa2b9e9cf058a9afdbc831ef5f0532c2861ed928785bef104a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d616465253230776974682d476f2d3030303046462e737667)](https://camo.githubusercontent.com/b0fd323d66f8edfa2b9e9cf058a9afdbc831ef5f0532c2861ed928785bef104a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d616465253230776974682d476f2d3030303046462e737667) [![release](https://camo.githubusercontent.com/20960add1324a4d27496e0e08852446266393a6395b1810b9f48fb02007fb4d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6875657269737469712f7873756266696e6433723f7374796c653d666c617426636f6c6f723d303030304646)](https://github.com/hueristiq/xsubfind3r/releases) [![license](https://camo.githubusercontent.com/69da6b1f066fc213dd5d871bf5c8304a570031cec17647a5a428d20d452aef90/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677261792e7376673f636f6c6f723d303030304646)](https://github.com/hueristiq/xsubfind3r/blob/master/LICENSE) [![maintenance](https://camo.githubusercontent.com/103f45167e2b9f337c39b95e637d38e51f435f415f2122a09f5a5e809eac7758/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65642533462d7965732d3030303046462e737667)](https://camo.githubusercontent.com/103f45167e2b9f337c39b95e637d38e51f435f415f2122a09f5a5e809eac7758/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65642533462d7965732d3030303046462e737667) [![open issues](https://camo.githubusercontent.com/9cb9cdb0a7dec4451a0f82c27a70cac9f2fc52579ef6f1d822202280e7fd5efb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7261772f6875657269737469712f7873756266696e6433722e7376673f7374796c653d666c617426636f6c6f723d303030304646)](https://github.com/hueristiq/xsubfind3r/issues?q=is:issue+is:open) [![closed issues](https://camo.githubusercontent.com/2fb3484d51b156b05e22aded3dfa2ba604d35b7f68f7f2b965c6e7b2fdc08b7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d636c6f7365642d7261772f6875657269737469712f7873756266696e6433722e7376673f7374796c653d666c617426636f6c6f723d303030304646)](https://github.com/hueristiq/xsubfind3r/issues?q=is:issue+is:closed) [![contribution](https://camo.githubusercontent.com/77d98406f9a479d112349a5322cac5d78904a4a8e519a97822826d9c1c702d8c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d3030303046462e737667)](https://github.com/hueristiq/xsubfind3r/blob/master/CONTRIBUTING.md)

`xsubfind3r` is a command-line interface (CLI) utility to find domain’s known subdomains from curated passive online sources.

## Resource

- [Features](https://github.com/hueristiq/xsubfind3r#features)
- [Installation](https://github.com/hueristiq/xsubfind3r#installation)
  - [Install release binaries (Without Go Installed)](https://github.com/hueristiq/xsubfind3r#install-release-binaries-without-go-installed)
  - [Install source (With Go Installed)](https://github.com/hueristiq/xsubfind3r#install-source-with-go-installed)
    - [`go install ...`](https://github.com/hueristiq/xsubfind3r#go-install)
    - [`go build ...` the development Version](https://github.com/hueristiq/xsubfind3r#go-build--the-development-version)

- [Post Installation](https://github.com/hueristiq/xsubfind3r#post-installation)
- [Usage](https://github.com/hueristiq/xsubfind3r#usage)
- [Contribution](https://github.com/hueristiq/xsubfind3r#contribution)
- [Licensing](https://github.com/hueristiq/xsubfind3r#licensing)

## Features

- Fetches domains from curated passive sources to maximize results.Sources: Click to expand!
- Supports `stdin` and `stdout` for easy integration into workflows.
- Cross-Platform (Windows, Linux & macOS).

## Installation

### Install release binaries (Without Go Installed)

Visit the [releases page](https://github.com/hueristiq/xsubfind3r/releases) and find the appropriate archive for your operating system and architecture. Download the archive from your browser or copy its URL and retrieve it with `wget` or `curl`:

- …with `wget`:

wget [https://github.com/hueristiq/xsubfind3r/releases/download/v](https://github.com/hueristiq/xsubfind3r/releases/download/v)/xsubfind3r--linux-amd64.tar.gz

- …or, with `curl`:

curl -OL [https://github.com/hueristiq/xsubfind3r/releases/download/v](https://github.com/hueristiq/xsubfind3r/releases/download/v)/xsubfind3r--linux-amd64.tar.gz

…then, extract the binary:

tar xf xsubfind3r--linux-amd64.tar.gz

> **TIP:** The above steps, download and extract, can be combined into a single step with this onliner
> 
> curl -sL [https://github.com/hueristiq/xsubfind3r/releases/download/v](https://github.com/hueristiq/xsubfind3r/releases/download/v)/xsubfind3r--linux-amd64.tar.gz | tar -xzv

**NOTE:** On Windows systems, you should be able to double-click the zip archive to extract the `xsubfind3r` executable.

…move the `xsubfind3r` binary to somewhere in your `PATH`. For example, on GNU/Linux and OS X systems:

sudo mv xsubfind3r /usr/local/bin/

**NOTE:** Windows users can follow [How to: Add Tool Locations to the PATH Environment Variable](https://msdn.microsoft.com/en-us/library/office/ee537574(v=office.14).aspx) in order to add `xsubfind3r` to their `PATH`.

### Install source (With Go Installed)

Before you install from source, you need to make sure that Go is installed on your system. You can install Go by following the official instructions for your operating system. For this, we will assume that Go is already installed.

#### `go install ...`

go install -v [github.com/hueristiq/xsubfind3r/cmd/xsubfind3r@latest](http://github.com/hueristiq/xsubfind3r/cmd/xsubfind3r@latest)

#### `go build ...` the development Version

- Clone the repository

git clone [https://github.com/hueristiq/xsubfind3r.git](https://github.com/hueristiq/xsubfind3r.git)

- Build the utility

cd xsubfind3r/cmd/xsubfind3r && \ go build .

- Move the `xsubfind3r` binary to somewhere in your `PATH`. For example, on GNU/Linux and OS X systems:

sudo mv xsubfind3r /usr/local/bin/

**NOTE:** Windows users can follow [How to: Add Tool Locations to the PATH Environment Variable](https://msdn.microsoft.com/en-us/library/office/ee537574(v=office.14).aspx) in order to add `xsubfind3r` to their `PATH`.

**NOTE:** While the development version is a good way to take a peek at `xsubfind3r`’s latest features before they get released, be aware that it may have bugs. Officially released versions will generally be more stable.

## Post Installation

`xsubfind3r` will work right after [installation](https://github.com/hueristiq/xsubfind3r#installation). However, **[BeVigil](https://bevigil.com/)**, **[Chaos](https://chaos.projectdiscovery.io/#/)**, **[Fullhunt](https://fullhunt.io/)**, **[Github](https://github.com/)**, **[Intelligence X](https://intelx.io/)** and **[Shodan](https://shodan.io/)** require API keys to work, **[URLScan](https://urlscan.io/)** supports API key but not required. The API keys are stored in the `$HOME/.hueristiq/xsubfind3r/config.yaml` file - created upon first run - and uses the YAML format. Multiple API keys can be specified for each of these source from which one of them will be used.

Example `config.yaml`:

version: 0.3.0 sources: - alienvault - anubis - bevigil - chaos - commoncrawl - crtsh - fullhunt - github - hackertarget - intelx - shodan - urlscan - wayback keys: bevigil: - awA5nvpKU3N8ygkZ chaos: - d23a554bbc1aabb208c9acfbd2dd41ce7fc9db39asdsd54bbc1aabb208c9acfb fullhunt: - 0d9652ce-516c-4315-b589-9b241ee6dc24 github: - d23a554bbc1aabb208c9acfbd2dd41ce7fc9db39 - asdsd54bbc1aabb208c9acfbd2dd41ce7fc9db39 intelx: - 2.intelx.io:00000000-0000-0000-0000-000000000000 shodan: - AAAAClP1bJJSRMEYJazgwhJKrggRwKA urlscan: - d4c85d34-e425-446e-d4ab-f5a3412acbe8

## Usage

To display help message for `xsubfind3r` use the `-h` flag:

xsubfind3r -h

help message:

```auto
                _ ___ ______      
_______ _ _| |__/ _(_)___  __| |___ / _ __ 
\ \/ / __| | | | '_ \| |_| | '_ \ / _` | |_ \| '__ |
 > <\__\ |_| | |_) | _| | | | | (_| |___) | |   
/_/\_\ ___/\__ ,_|_. __/|_| |_|_| |_|\__ ,_| ____ /|_| v0.3.0

USAGE:
  xsubfind3r [OPTIONS]

INPUT:
 -d, --domain string[] target domains
 -l, --list string target domains' list file path

SOURCES:
      --sources bool list supported sources
 -u, --sources-to-use string[] comma(,) separeted sources to use
 -e, --sources-to-exclude string[] comma(,) separeted sources to exclude

OPTIMIZATION:
 -t, --threads int number of threads (default: 50)

OUTPUT:
     --no-color bool disable colored output
 -o, --output string output subdomains' file path
 -O, --output-directory string output subdomains' directory path
 -v, --verbosity string debug, info, warning, error, fatal or silent (default: info)

CONFIGURATION:
 -c, --configuration string configuration file path (default: ~/.hueristiq/xsubfind3r/config.yaml)

```

## Contribution

[Issues](https://github.com/hueristiq/xsubfind3r/issues) and [Pull Requests](https://github.com/hueristiq/xsubfind3r/pulls) are welcome! **Check out the [contribution guidelines](https://github.com/hueristiq/xsubfind3r/blob/master/CONTRIBUTING.md).**

## Licensing

This utility is distributed under the [MIT license](https://github.com/hueristiq/xsubfind3r/blob/master/LICENSE).

## GitHub:

> **[GitHub - hueristiq/xsubfind3r: A command-line utility designed to discover...](https://github.com/hueristiq/xsubfind3r)**
>
> A command-line utility designed to discover subdomains for a given domain in a simple, efficient way. It works by gathering information from a variety of passive sources, meaning it doesn't interact directly with the target but instead gathers data that is already publicly available.
