# 使用 Homebrew, Nix 安装 mapcidr

查看 mapcidr 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mapcidr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mapcidr
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mapcidr
```

  证据: nixpkgs package indexes: pkgs/by-name/ma/mapcidr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:mapcidr
- **软件包管理器:** Homebrew
- **版本:** 1.1.97
- **来源摘要:** Subnet/CIDR operation utility
- **主页:** <https://projectdiscovery.io>
- **仓库:** <https://github.com/projectdiscovery/mapcidr>
- **最后更新:** 2026-07-29T17:04:50+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mapcidr (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.1.97
## 项目历史与用法

mapcidr is a ProjectDiscovery Go utility and library for subnet and CIDR operations, including expansion, slicing, aggregation, matching, filtering, sorting, and IP format conversion.

### 项目历史

The public repository was created in August 2020. The README says mapCIDR was developed to ease load distribution for mass scanning operations and can be used both as an independent CLI and as a Go library.

### 采用历史

mapcidr is distributed through Go install, Homebrew, and other package-manager channels. Its adoption is tied to ProjectDiscovery's security tooling ecosystem, where CIDR expansion and splitting are common preparation steps for scanning and reconnaissance.

### 使用方式

Common uses include expanding CIDR ranges to IP lists, slicing large ranges into smaller blocks by CIDR or host count, aggregating IPs back into minimal subnets, filtering or matching IPs, sorting ranges, shuffling IP or IP:port input, and converting IPv4/IPv6 formats.

### 为什么软件包爱好者会关心

mapcidr is useful package-manager glue for operators who need predictable, scriptable IP range transformations before passing targets into scanners, probes, or asset-inventory tools.

### 时间线

- 2020: Public GitHub repository created.
- 2024: v1.1.34 release published.
- 2025: v1.1.97 release published.

### Related projects

- ProjectDiscovery maintains mapcidr as part of its broader open-source security tooling ecosystem.

### 来源

- <https://github.com/projectdiscovery/mapcidr>
- <https://github.com/projectdiscovery/mapcidr#readme>
- <https://github.com/projectdiscovery/mapcidr/releases/tag/v1.1.97>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - mapcidr: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mapcidr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/mapcidr.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mapcidr.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
