Updated Jul 15, 2026

Network

Expand an IP range or CIDR into a host list

Print every IP in a range or CIDR, one per line.

Agent

overview

What prips does

Put prips at the front of a scan chain when a port scanner needs a flat host file instead of range notation.

Trigger it with a start-end pair or CIDR on subnet-or-cidr; thin with -i, drop out-of-scope slices with -l, or emit hex/dec/dot via -f.

It expands addresses. It does not probe ports. For CIDR set ops use mapcidr; for the shell form use prips-sh.

source gitlab.com/prips/prips

use cases

Where prips fits

Expand a CIDR into a scan list

Turn 10.0.0.0/24 into every address inside it so a port scanner or prober receives a flat host list instead of a range it cannot read.

Exclude addresses you must not scan

Drop a sub-range from the output so production gateways or out-of-scope hosts never reach the scanning stage.

Sample a large range

Set an increment to print every Nth address and probe a representative slice of a big block before committing to a full sweep.

Print ranges as CIDR notation

Use -c when you need the compact CIDR form of a start-and-end pair instead of the expanded host list.

reference

prips inputs and flags

5 inputs
NameTypeFlagDescription
subnet-or-cidrSTRING·IP range or CIDR to expand (e.g. 192.168.0.0 192.168.0.255 or 192.168.0.1/24).
incrementSTRING-iPrint every Nth address to sample a large range.
range-to-cidrBOOLEAN-cPrint the range in CIDR notation instead of expanding it.
address-formatSTRING-fFormat addresses as hex, dec, or dot.
exclude-range-or-cidrSTRING-lExclude a sub-range from the output.

Showing key inputs. prips exposes 5 inputs in total.

example

Run prips

prips · command
# expand a documentation /24, skip a reserved slice, dotted outputprips -f dot -l 198.51.100.0/28 198.51.100.0/24
sample output
198.51.100.16198.51.100.17198.51.100.18198.51.100.19198.51.100.20198.51.100.21198.51.100.22198.51.100.23

guidance

Choosing prips

Use prips to turn an IP range or CIDR into a flat address list for a scanner. Follow with a port scanner. Prefer mapcidr when you need to merge, slice, or filter CIDR sets rather than enumerate hosts.

prips-sh

Portable shell rewrite with the same core expansion job. Prefer when you want the script form.

mapcidr

Manipulates and aggregates CIDR ranges. Use for set operations, not full host expansion.

get-asn-prefixes

Resolves an ASN to CIDR prefixes. Run it first, then expand those prefixes with prips.

faq

prips questions

A start-and-end pair or a CIDR on subnet-or-cidr. Output is one address per line unless -c prints CIDR form.

Run prips yourself

A CIDR range feeds prips, which expands it into individual addresses for naabu to scan before the open ports land as output.

Facts on this page come from the live Trickest tool library.