Network
Expand an IP range or CIDR into a host list
Print every IP in a range or CIDR, one per line.
Free plan: 1 user, 3 execution slots, no card.
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
image quay.io/trickest/prips:1.2.0
use cases
prips use cases
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
| Name | Type | Flag | Description |
|---|---|---|---|
| subnet-or-cidr | STRING | · | IP range or CIDR to expand (e.g. 192.168.0.0 192.168.0.255 or 192.168.0.1/24). |
| increment | STRING | -i | Print every Nth address to sample a large range. |
| range-to-cidr | BOOLEAN | -c | Print the range in CIDR notation instead of expanding it. |
| address-format | STRING | -f | Format addresses as hex, dec, or dot. |
| exclude-range-or-cidr | STRING | -l | Exclude a sub-range from the output. |
Showing key inputs. prips exposes 5 inputs in total.
example
prips command examples
# expand a documentation /24, skip a reserved slice, dotted output
prips -f dot -l 198.51.100.0/28 198.51.100.0/24198.51.100.16
198.51.100.17
198.51.100.18
198.51.100.19
198.51.100.20
198.51.100.21
198.51.100.22
198.51.100.23guidance
prips vs alternatives
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.
| Tool | Pick it when |
|---|---|
| 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 FAQ
related
More Network tools
dnsvalidator
Validate public DNS resolvers against trusted baselines.
fping
Parallel ICMP echo sweeps for CIDR ranges and host files.
httpx
A fast and multi-purpose HTTP toolkit that runs multiple probers with reliable, high-throughput results.
naabu
A fast and reliable port scanner that enumerates open ports for hosts.
netexec
Authenticated network assessment across SMB, LDAP, WinRM, and more.
onesixtyone
SNMP community-string scanner for host lists.
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.