Downloads, Hacking Tools, Kubernetes, Nuclei, Pipeline, Port Scanning, Scanning, Shodan, Uncover, Vulnerability, Wrapper

Uncover – Quickly Discover Exposed Hosts On The Internet Using Multiple Search Engine

uncover is a go wrapper using APIs of well known search engines to quickly discover exposed hosts on the internet. It is built with automation in mind, so you can query it and utilize the results with your current pipeline tools. Currently, it supports shodan, censys, and fofa search engine.

  • Simple and Handy utility to query multiple search engine
  • Multiple Search engine support (Shodan, Censys, Fofa)
  • Automatic key/credential randomization
  • stdin / stdout support for input and output

uncover requires go1.17 to install successfully. Run the following command to get the repo –

uncover -h

This will display help for the tool. Here are all the flags it supports:

./uncover [flags]

-q, -query string[] search query or list (file or comma separated or stdin)
-e, -engine string[] search engine to query (shodan,fofa,censys) (default shodan)

-pc, -provider string provider configuration file (default "$HOME/.config/uncover/provider-config.yaml")
-config string flag configuration file (default "$HOME/.config/uncover/config.yaml")
-timeout int timeout in seconds (default 30)
-delay int delay between requests in seconds (0 to disable) (default 1)

-o, -output string output file to write found results
-f, -field string field to display in output (ip,port,host) (default ip:port)
-j, -json write output in JSONL(ines) format
-l, -limit int limit the number of results to return (default 100)
-nc, -no-color dis able colors in output

-silent show only results in output
-version show version of the project
-v show verbose output

The default provider configuration file should be located at $HOME/.config/uncover/provider-config.yaml and has the following contents as an example. In order to run this tool, the API keys / credentials needs to be added in this config file or set as environment variable.


When multiple keys/credentials are specified for same provider in the config file, random key will be used for each execution.

alternatively you can also set the API key as environment variable in your bash profile.

export SHODAN_API_KEY=xxx
export CENSYS_API_ID=xxx
export FOFA_EMAIL=xxx
export FOFA_KEY=xxx

Required keys can be obtained by signing up on Shodan, Censys, Fofa.

Running Uncover

uncover supports multiple ways to make the query including stdin or q flag

echo 'ssl:"Uber Technologies, Inc."' | uncover 

__ ______ _________ _ _____ _____
/ / / / __ \/ ___/ __ \ | / / _ \/ ___/
/ /_/ / / / / /__/ /_/ / |/ / __/ /
\__,_/_/ /_/\___/\____/|___/\___/_/ v0.0.1

[WRN] Use with caution. You are responsible for your actions
[WRN] Developers assume no liability and are not responsible for any misuse or damage.
[WRN] By using uncover, you also agree to the terms of the APIs used.

Running uncover with file input containing multiple search queries per line.

cat dorks.txt

ssl:"Uber Technologies, Inc."

uncover -q dorks.txt

__ ______ _________ _ _____ _____
/ / / / __ \/ ___/ __ \ | / / _ \/ ___/
/ /_/ / / / / /__/ /_/ / |/ / __/ /
\__,_/_/ /_/\___/\____/|___/\___/_/ v0.0.1

[WRN] Use with caution. You are responsible for your actions
[WRN] Developers assume no liability and are not responsible for any misuse or damage.
[WRN] By using uncover, you also agree to the terms of the APIs used.

uncover supports field flag to specify fields to return, currently ip, port, host are supported.

uncover -q jira -f host -silent

uncover supports field flag which can be also used to customize the format of the output, for example in case of uncover -f https://ip:port/version, ip:port will be replaced with results in the output maintaining the defined format.

<div class="highlight highlight-text-shell-session position-relative overflow-auto" data-snippet-clipboard-copy-content="echo kubernetes | uncover -f https://ip:port/version -silent”>

echo kubernetes | uncover -f https://ip:port/version -silent

uncover supports multiple search engine, as default shodan is used, engine flag can be used to specify any available search engines.

Output of uncover can be further piped to other projects in workflow accepting stdin as input.

uncover -q http.title:GitLab -silent | httpx -silent


  • keys/ credentials are required to configure before running or using this project.
  • query flag supports all the filters supported by underlying API in use.
  • query flag input needs be compatible with search engine in use.
  • results are limited to 100 as default and can be increased with limit flag.

Source : KitPloit – PenTest Tools!

Previous ArticleNext Article
Send this to a friend