loading
loading
Network
Expand CIDR ranges into a list of IP addresses easily.
overview
Decant does one thing and does it cleanly: hand it a CIDR range and it prints every IP address inside the block, one per line. Scanners and probers want a flat list of hosts, not network notation, and Decant is the small filter that bridges that gap.
It reads a range from stdin and streams the expanded addresses straight back out, so it drops between a source of network blocks and a port scanner without anyone hand-expanding subnets. Because it is a plain transform, it fits almost any network-recon graph.
Inside a Trickest workflow, Decant runs as a Network node that takes a single CIDR address and writes both a file and a folder of expanded IPs. When you have many ranges to expand at once, reach for the decant-file variant that reads a file of blocks instead of one address.
source github.com/Cgboal/Decant
use cases
Expand a range like 198.51.100.0/24 into individual IPs so a port scanner or prober can work from a flat host list instead of network notation.
Hand the expanded addresses to naabu, masscan, or rustscan, which want concrete hosts and let you sweep an IP range for open ports.
Convert mixed range and host inputs into a uniform IP list early in a workflow so every downstream node reads the same one-IP-per-line format.
Expand a provider's published CIDR block into addresses to enumerate and probe the hosts living inside it.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| cidr-address | STRING | · | CIDR block to expand into individual IP addresses, for example 192.168.0.0/24. |
Showing key inputs. decant exposes 1 inputs in total.
example
# expand a /24 into 256 host addresses, one per lineecho 198.51.100.0/24 | decant > 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 a /24 block)guidance
Use Decant when you have a single CIDR range and need a flat IP list for the next stage. For a file of many ranges, use decant-file. For CIDR math and aggregation rather than full expansion, mapcidr is the richer option.
The same expansion from a file of CIDR ranges instead of a single address.
CIDR aggregation, slicing, and expansion. Richer math when you need more than a flat list.
Prints each IP in a range. A similar primitive for range-to-host expansion.
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, 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 simple Node.js network scanner.
A CIDR range feeds Decant, which expands it into individual IPs and passes them to naabu so the open ports land as a queryable output.
Facts on this page come from the live Trickest tool library.