Module Name: censys.io port lookup by netblock
Module path: recon/netblocks-ports/censysio


SOURCE:


Name: censys.io port lookup by netblock
Path: modules/recon/netblocks-ports/censysio.py
Author: Tim Tomes (@LaNMaSteR53)

Description:
Queries censys.io to enumerate open ports for a netblock.

Options:
Name Current Value Required Description
SOURCE default yes source of input (see 'show info' for details)

Source Options:
default SELECT DISTINCT netblock FROM netblocks WHERE netblock IS NOT NULL
<string> string representing a single input
<path> path to a file containing a list of inputs
query <sql> database query returning one column of inputs

Comments:
* To enumerate ports for hosts, use the following query as the SOURCE option.
  - SELECT DISTINCT ip_address || '/32' FROM hosts WHERE ip_address IS NOT NULL