loading
loading
Network
Expand CIDR ranges into a list of IP addresses easily, from a file.
overview
decant-file is the bulk form of Decant: hand it a file of CIDR ranges and it writes out every IP address inside all of them as a single flat list. When recon leaves you with dozens of network blocks, this is the node that turns them into the concrete hosts a scanner can act on.
It stays small by design. Decant reads CIDRs from standard input and expands each range in full, so cloud-range exports, ASN prefix lookups, and inventory dumps normalize into one address list in a single step, with no hand-expanding between stages.
Reach for it whenever a downstream node wants hosts rather than network notation. Port scanners like naabu, masscan, and rustscan take a flat IP list, and decant-file is the cheap transform that produces one. Use the single-address Decant variant when you have only one range.
source github.com/Cgboal/Decant
use cases
Read a file of CIDR blocks and emit every IP across all of them as one flat list, ready for a scanner or prober.
Convert provider CIDR exports or ASN-derived prefixes into concrete addresses so downstream nodes enumerate the hosts inside them.
Hand the expanded addresses to naabu, rustscan, or masscan, which want a flat host list rather than network notation.
Turn a mixed set of network blocks into a uniform IP list early so every later stage reads the same format.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| cidr-addresses | FILE | · | File of CIDR ranges to expand into a flat list of IP addresses. |
Showing key inputs. decant-file exposes 1 inputs in total.
example
# expand a file of CIDR ranges into a flat IP listcat cidr-ranges.txt | decant > ips.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… (512 IPs expanded from 198.51.100.0/24 and 203.0.113.0/24)guidance
Use Decant file when you have a file of CIDR ranges to expand into a flat IP list. For a single range, the Decant variant is simpler. For CIDR aggregation and slicing rather than full expansion, reach for mapcidr.
The same expansion for a single CIDR address instead of a file.
CIDR aggregation, slicing, and expansion. Richer math when a flat list is not enough.
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.
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 file of CIDR ranges feeds Decant file, which expands them all into individual IPs and passes them to naabu so the open ports land as output.
Facts on this page come from the live Trickest tool library.