OSINTverse

otinstaller · Networks and hosts

Install mapcidr on Windows, macOS, or Linux in one command

mapcidr is a utility for IP ranges. It expands a CIDR block into addresses, splits it into smaller blocks, merges a list of addresses into the fewest ranges, and counts hosts. It prepares input for scanners rather than scanning anything itself.

mapcidr in three lines

curl -fsSL https://otinstaller.com/install.sh | sh
ot install mapcidr
ot run mapcidr -cidr 192.0.2.0/24

On Windows, replace the first line with irm https://otinstaller.com/install.ps1 | iex in PowerShell.

Runs projectdiscovery/mapcidr (MIT, ★ 1.2k, otinstaller 0.3.0). otinstaller installs it as a release binary, pinned to version 1.1.97; it does not change or audit the tool itself.

What mapcidr is for

  • Expanding a CIDR block into addresses for another tool.
  • Splitting a large range into smaller blocks.
  • Merging a list of addresses into the fewest ranges.

Run mapcidr with ot

ot run mapcidr passes everything after the tool's name to mapcidr unchanged, with input and output passed through, so the project's own documentation applies and tools pipe into each other.

List every address in a range.
ot run mapcidr -cidr 192.0.2.0/24
Split a range into four equal blocks.
ot run mapcidr -cidr 10.0.0.0/16 -sbc 4
Merge a list of addresses into the fewest ranges.
ot run mapcidr -cl ips.txt -aggregate

Where the results go

ot run saves nothing itself: mapcidr's output goes to your terminal, a pipe, or wherever its own output option writes it. Results can hold personal data, so store and share them accordingly.

Before you run it

  • It only does arithmetic on addresses. Nothing is sent anywhere.

Update, remove, inspect

ot info mapcidr              # details, and how it installs on this system
ot update mapcidr            # move to the version the registry pins
ot update mapcidr --latest   # take the newest upstream release instead
ot remove mapcidr            # remove it

Full reference: the otinstaller docs, mapcidr on otinstaller.com, and the tool's own project page.

Pairs with

asnmap turns an organisation, a domain, an IP address, or an AS number into the network ranges registered to it, ready to hand to a port scanner.
naabu is a fast port scanner that does one thing: tell you which ports are open on a list of hosts.
masscan is a port scanner built for very large address ranges.

FAQ

mapcidr with otinstaller, answered

How do I install mapcidr on Windows, macOS, or Linux?

Install ot once with the one-line script on the otinstaller page, then run ot install mapcidr. Ot downloads the project's release binary for your system and checks its SHA-256 hash before it installs anything, at version 1.1.97. ot itself needs no administrator rights, and ot doctor checks that every installed tool starts.

How do I run mapcidr through ot?

With ot run mapcidr followed by mapcidr's own arguments, for example: ot run mapcidr -cidr 192.0.2.0/24. ot passes everything after the tool's name straight through and exits with the tool's exit code, so the project's own documentation applies unchanged. Add ~/.ot/bin to your PATH to call the tool by its own name.

Is mapcidr part of ot scan?

No. ot scan takes a username, an email address, a domain, or a phone number and runs the tools the registry assigns to that kind of target. Run mapcidr on its own with ot run mapcidr.

Does mapcidr need an API key or a login?

ot stores no key for it. The basic run needs neither a key nor a login.

Does mapcidr send traffic to the target?

The registry lists mapcidr as passive: it does not probe the target's own systems. Options that do contact the target, where the tool has them, are named under "Before you run it".