Network
Expand an IP range or CIDR into a host list
Print every IP in a range or CIDR, one per line.
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
| 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
Run prips
# expand a documentation /24, skip a reserved slice, dotted outputprips -f dot -l 198.51.100.0/28 198.51.100.0/24198.51.100.16198.51.100.17198.51.100.18198.51.100.19198.51.100.20198.51.100.21198.51.100.22198.51.100.23guidance
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
related
More Network tools
asnmap
Map an organization's network ranges from ASN data.
dnsvalidator
Validate public DNS resolvers against trusted baselines.
fping
Parallel ICMP echo sweeps for CIDR ranges and host files.
httprobe
Probe a domain list for working HTTP and HTTPS servers.
httpx
A fast and multi-purpose HTTP toolkit that runs multiple probers with reliable, high-throughput results.
mapcidr
Expand, aggregate, and slice CIDR ranges into 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.