expand_port_ranges: Expand a Snort port description

Description Usage Arguments Value Examples

Description

Snort rule port descriptions can be anything from a single number, to any, to a $ variable specifier to a full or partial range. This function will identify full or partial ranges and expand then, leaving other port descriptors untouched.

Usage

1

Arguments

x

character vector of individual port strings

Value

list

Examples

1
expand_port_ranges(c("25", "$HTTP_PORTS", "1024:", ":1024", "1:1024", "any"))

hrbrmstr/porc documentation built on May 28, 2019, 5:43 a.m.