loading
loading
Network
Print the IP addresses in a given range.
overview
prips.sh expands an IP range or CIDR block into every address inside it, one per line. It is a portable shell rewrite of the classic prips utility, so it runs wherever a POSIX shell does, with no compiled binary to ship. The job is the same as prips: take a range notation a scanner cannot read and turn it into a flat host list it can.
Set an increment with -i to print every Nth address, pick hex, decimal, or dotted output with -f, and cap the run with -n when you only want the first slice of a large block. That last option gives you a quick sample before you commit to expanding a full /16.
As a Network node it sits at the front of a scanning workflow: feed it one range, and it hands a port scanner the exact host list to sweep.
use cases
Convert a start-and-end pair or a CIDR into every address inside so a port scanner receives a flat host list it can read.
Use -n to print only the first N addresses, or -i to keep every Nth, and probe a representative slice before committing to a full sweep.
Set -f to dec or hex to write each address as a single integer for scripts or tools that expect a numeric form rather than dotted notation.
Use the shell form in stripped-down or containerized environments where shipping the compiled prips is inconvenient, keeping the same expansion behavior.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| ip-address-range | STRING | · | The range to expand, as a start and end pair (198.51.100.0 198.51.100.255) or a CIDR (198.51.100.0/24). |
| increment | STRING | -i | Print every Nth address to thin out a dense range. |
| address-format | STRING | -f | Format addresses as hex, dec, or dot. |
| number-of-addresses | STRING | -n | Cap the output to a set number of addresses from the start (the end must not be set). |
Showing key inputs. prips-sh exposes 4 inputs in total.
example
# expand a CIDR block into every address, one IP per lineprips.sh 198.51.100.0/24 > hosts.txt198.51.100.0198.51.100.1198.51.100.2198.51.100.3198.51.100.4198.51.100.5198.51.100.6198.51.100.7… (256 addresses for 198.51.100.0/24)guidance
Use prips.sh to expand an IP range or CIDR into a host list when you want the portable shell form rather than a binary. It expands ranges, it does not scan them, so follow it with a port scanner like naabu or masscan.
The original compiled tool with the same purpose, plus a CIDR-collapse and exclude option.
Aggregates and manipulates CIDR ranges. Use it for set operations on networks, not plain expansion.
Scans the expanded host list for open ports. The natural next stage after prips.sh.
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.sh, which expands it into individual addresses for masscan to scan before the open ports land as output.
Facts on this page come from the live Trickest tool library.