Skip to main content

IsInCidrRanges

This Script is part of the Common Scripts Pack.#

Determines whether an IPv4 address is in part of at least one of the comma-delimited CIDR ranges given. Multiple IPv4 addresses can be passed as comma-delimited list to be checked.

Script Data#


NameDescription
Script Typepython3
Tagsfilter
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
leftThe IPv4 address to search for.
rightA comma-separated list of IPv4 ranges in CIDR notation against which to match.