tools:
- name: mapcidr_process
description: Process CIDR/IP targets with flexible mapcidr operations
run:
kind: shell
cmd: "mapcidr -cl {{cidr}} {{options}}"
args:
cidr:
type: string
description: "CIDR(s), IP(s), or file path to list of CIDR/IP (comma-separated or file). Examples: '192.168.0.0/24,10.0.0.0/8' or 'targets.txt'."
required: true
options:
type: string
description: "Additional mapcidr flags (space-separated). Examples: '-f4 -skip-base -skip-broadcast -mi include.txt -fi exclude.txt -s -sr -si -sp ip:port -ip-format 1 -zpn 3 -zpp -o output.txt -silent -verbose'."
required: false
default: ""
- name: mapcidr_slice_by_cidrs
description: Slice input CIDRs into N CIDR chunks
run:
kind: shell
cmd: "mapcidr -cl {{cidr}} -sbc {{slice_cidr_count}} {{options}}"
args:
cidr:
type: string
description: "CIDR(s), IP(s), or file path to list of CIDR/IP (comma-separated or file)."
required: true
slice_cidr_count:
type: int
description: "Number of CIDR slices to produce (for -sbc)."
required: true
options:
type: string
description: "Additional flags (space-separated). Combine with filters/sort/shuffle/output as needed."
required: false
default: ""
- name: mapcidr_slice_by_hosts
description: Slice input CIDRs into chunks of approximately N hosts
run:
kind: shell
cmd: "mapcidr -cl {{cidr}} -sbh {{slice_host_count}} {{options}}"
args:
cidr:
type: string
description: "CIDR(s), IP(s), or file path to list of CIDR/IP (comma-separated or file)."
required: true
slice_host_count:
type: int
description: "Host count per slice (for -sbh)."
required: true
options:
type: string
description: "Additional flags (space-separated). Combine with filters/sort/shuffle/output as needed."
required: false
default: ""
- name: mapcidr_aggregate
description: Aggregate IPs/CIDRs into the minimum subnet
run:
kind: shell
cmd: "mapcidr -cl {{cidr}} -a {{options}}"
args:
cidr:
type: string
description: "CIDR(s), IP(s), or file path to list of CIDR/IP (comma-separated or file)."
required: true
options:
type: string
description: "Additional flags (space-separated). Common: '-o output.txt -silent -verbose'."
required: false
default: ""
- name: mapcidr_aggregate_approx
description: Aggregate sparse IPs/CIDRs into an approximated minimum subnet
run:
kind: shell
cmd: "mapcidr -cl {{cidr}} -aa {{options}}"
args:
cidr:
type: string
description: "CIDR(s), IP(s), or file path to list of CIDR/IP (comma-separated or file)."
required: true
options:
type: string
description: "Additional flags (space-separated). Common: '-o output.txt -silent -verbose'."
required: false
default: ""
- name: mapcidr_count
description: Count number of IPs contained in the given CIDR(s)
run:
kind: shell
cmd: "mapcidr -cl {{cidr}} -c {{options}}"
args:
cidr:
type: string
description: "CIDR(s), IP(s), or file path to list of CIDR/IP (comma-separated or file)."
required: true
options:
type: string
description: "Additional flags (space-separated). Combine with filters/output as needed."
required: false
default: ""
- name: mapcidr_to_ipv4
description: Convert provided IPs to IPv4 format
run:
kind: shell
cmd: "mapcidr -cl {{cidr}} -t4 {{options}}"
args:
cidr:
type: string
description: "CIDR(s), IP(s), or file path to list of CIDR/IP (comma-separated or file)."
required: true
options:
type: string
description: "Additional flags (space-separated). Combine with filters/output as needed."
required: false
default: ""
- name: mapcidr_to_ipv6
description: Convert provided IPs to IPv6 format
run:
kind: shell
cmd: "mapcidr -cl {{cidr}} -t6 {{options}}"
args:
cidr:
type: string
description: "CIDR(s), IP(s), or file path to list of CIDR/IP (comma-separated or file)."
required: true
options:
type: string
description: "Additional flags (space-separated). Combine with filters/output as needed."
required: false
default: ""