IsInCidrRanges
Determines whether an IPv4 or IPv6 address is contained in at least one of the comma-delimited CIDR ranges. Multiple IPv4/IPv6 addresses can be passed comma-delimited and each will be tested. A mix of IPv4 and IPv6 addresses will always return false.
javascript · Filters And Transformers
Details
| ID | IsInCidrRanges |
|---|---|
| Language | javascript |
| From Version | 5.0.0 |
| Tags | filter |
README
Determines whether an IPv4 or IPv6 address is in part of at least one of the comma-delimited CIDR ranges given. Multiple IPv4/IPv6
addresses can be passed as comma-delimited list to be checked. A mix of IPv4 and IPv6 addresses will always return false.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | filter |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| left | The IPv4 or IPv6 address to search for. |
| right | A comma-separated list of IPv4 or IPv6 ranges in CIDR notation against which to match. |
commonfields: id: IsInCidrRanges version: -1 name: IsInCidrRanges script: '' type: javascript tags: - filter comment: Determines whether an IPv4 or IPv6 address is contained in at least one of the comma-delimited CIDR ranges. Multiple IPv4/IPv6 addresses can be passed comma-delimited and each will be tested. A mix of IPv4 and IPv6 addresses will always return false. enabled: true args: - name: left required: true isArray: true description: A comma-separated list of IPv4 or IPv6 addresses to search for. - name: right required: true isArray: true description: A comma-separated list of IPv4 or IPv6 ranges in CIDR notation against which to match. scripttarget: 0 isllm: false runas: DBotWeakRole tests: - TestIsInCidrRanges fromversion: 5.0.0 contentitemexportablefields: contentitemfields: fromServerVersion: ""