Skip to content

Recon-ng

21 commands

A modular web-reconnaissance framework with a Metasploit-style console, a workspace database and marketplace modules.

  • framework
  • reconnaissance

Install Recon-ng

sudo apt install recon-ng

Workspaces4

recon-ng

Starts the console.

recon-ng -w <workspace>

Starts in a named workspace; each workspace has its own database.

Link
workspaces create <name>

Creates a workspace from inside the console.

Link
workspaces list

Lists workspaces.

Link

Modules8

marketplace refresh

Updates the module index from the marketplace.

Link
marketplace search <term>

Finds modules by name or category.

Link
marketplace install <module>

Installs a module.

Link
marketplace install all

Installs every module (some still need API keys).

Link
modules load <module>

Loads a module.

Link
info

Shows the loaded module’s description and options.

options set SOURCE <value>

Sets the module input; by default modules read from the database.

Link
run

Runs the module and stores results in the workspace database.

Data5

db insert domains

Adds a seed domain to the database interactively.

Link
show hosts

Hosts collected so far. Other tables include contacts, credentials and ports.

Link
db query SELECT host, ip_address FROM hosts WHERE ip_address IS NOT NULL

Runs SQL against the workspace.

Link
keys add <name> <value>

Stores an API key for modules that need one.

Link
keys list

Shows configured keys.

Link

Reporting and automation4

modules load reporting/html

Loads the HTML report module; set CREATOR and CUSTOMER, then run.

Link
modules load reporting/csv

Exports a table to CSV.

Link
recon-cli -w <workspace> -m <module> -o SOURCE=<value> -x

Runs a module non-interactively for scripting.

Link
recon-ng -r <file>

Runs console commands from a resource file.

Link