loading
loading
Network
Print the IP addresses in a given range.
overview
prips takes an IP range or a CIDR block and prints every address inside it, one per line. Many scanners and probers want a flat list of hosts rather than range notation, and prips is the small utility that bridges that gap. Give it 198.51.100.0/24 or a start-and-end pair and you get the full set of addresses ready to pipe forward.
It does more than a naive expansion. An increment lets you sample every Nth address, a format flag prints addresses as hex, decimal, or dotted notation, and an exclude option drops a sub-range you do not want to touch. It can also collapse a range back into CIDR notation when you need the compact form.
On Trickest it is a Network node that takes a range or CIDR plus formatting options and writes a file and a folder of results. Put it at the front of a scanning workflow so a single range expands into the host list that a port scanner or prober consumes.
source gitlab.com/prips/prips
use cases
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.
Drop a sub-range from the output so production gateways or out-of-scope hosts never reach the scanning stage.
Set an increment to print every Nth address and probe a representative slice of a big block before committing to a full sweep.
Use -c when you need the compact CIDR form of a start-and-end pair instead of the expanded host list.
reference
| 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
# 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
Use prips to turn an IP range or CIDR block into a flat list of addresses for a scanner. It expands ranges, it does not scan them, so follow it with a port scanner. For mapping and merging CIDRs rather than expanding them, use mapcidr.
A shell reimplementation with the same core job. Choose it when you want the script form.
Manipulates and aggregates CIDR ranges. Use it for set operations on networks rather than full expansion.
Resolves an ASN to its CIDR prefixes. Run it first, then expand the prefixes with prips.
faq
related
Quickly map an organization's network ranges using ASN information.
Maximize your resolver count by combining the target's DNS servers with public resolvers.
Expand CIDR ranges into a list of IP addresses easily.
Expand CIDR ranges into a list of IP addresses easily, from a file.
Maintain a list of IPv4 DNS servers verified against baseline servers for accurate responses.
Patched dnsvalidator that keeps only IPv4 resolvers verified against baseline servers.
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.