# scanOpenPorts

**Identifier:** `shodan_scanOpenPorts`

**Provider:** [Shodan](https://kirha.com/providers/shodan.md)

Get information about open ports, vulnerabilities, hostnames, and other security-related data for a specific IP address using Shodan InternetDB. This tool performs a fast lookup to retrieve publicly accessible information about the IP.

## Run it with the CLI

```bash
kirha tools run shodan_scanOpenPorts \
  --input '{
    "ip": "8.8.8.8"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "shodan_scanOpenPorts",
  "input": {
    "ip": "8.8.8.8"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "ip": {
      "description": "IP address to scan (e.g., '8.8.8.8', '1.1.1.1')",
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "ip"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "cpes": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "hostnames": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "ip": {
      "type": "string"
    },
    "ports": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "vulns": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "ip",
    "ports",
    "hostnames",
    "tags",
    "cpes",
    "vulns"
  ],
  "type": "object"
}
```

-----

[All Shodan tools](https://kirha.com/providers/shodan.md) · [< Back to tools list](https://kirha.com/tools.md)