Skip to main content
Attack Surface Management
Created bytrickest-mhmdiaa
Last updated7/4/2024

Input Parameters

file
required
List of hostnames/IP addresses/IP ranges
string
Comma-separated list of ports to include in the scan
string
Comma-separated list of ports to exclude from the scan
string
Exclude hosts with more than this number of open ports (default: 10)

Outputs

port-detailshostname-portsip-ports

Scan for Open Ports

Description

Scan for the top 1000 most common open ports on a list of hostnames, IP addresses, or IP ranges.

Features

  • Outputs in different formats to allow for both detailed queries and also integration with other modules and tools.
  • Capable of processing tens of thousands of hosts simultaneously.
  • Supports hostnames, IP addresses, and IP ranges.
  • Scans all IP addresses associated with a hostname.

Inputs

Required

  • hosts: a list of hostnames, IP addresses, or IP ranges

Optional

  • port-threshold: Exclude hosts with more than this number of open ports (default: 10)
  • ports: Comma-separated list of ports to include in the scan
  • exclude-ports: Comma-separated list of ports to exclude from the scan

Outputs

  • port-details: JSONLines records of port discovery details.
  • hostname-ports: List of open ports formatted as hostname:port
  • ip-ports: List of open ports formatted as ip_address:port

Changelog

  • v1.0.0
    • Initial release
  • v1.0.1
    • Increase port threshold from 10 to 15
  • v1.1.1
    • Add ports and exclude-ports inputs to allow customization of scanned ports