# 使用 Homebrew, Nix 安装 smap

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

## 安装

```sh
sudo av install brew:smap
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install smap
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#smap
```

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

## 软件包事实

- **软件包键:** brew:smap
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/smap>
- **版本:** 0.1.12
- **来源摘要:** Drop-in replacement for Nmap powered by shodan.io
- **主页:** <https://github.com/s0md3v/Smap>
- **仓库:** <https://github.com/s0md3v/Smap>
- **上游文档:** <https://github.com/s0md3v/Smap#readme>
- **许可证:** AGPL-3.0-or-later
- **源码归档:** <https://github.com/s0md3v/Smap/archive/refs/tags/0.1.12.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- smap (cli)
- smap (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.1.12
- 本地数据: OK
- 上游仓库: https://github.com/s0md3v/Smap
- 检测到的最新版本: 0.1.12 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Smap is a passive, Nmap-like port scanner backed by Shodan data. It accepts many familiar Nmap-style arguments while avoiding direct connections to targets unless active verification is requested.

### 项目历史

The GitHub repository was created in March 2022. The first release candidate, 0.1.0-rc, appeared later that month, followed by 0.1.0 in April 2022; the README describes Smap as a passive Nmap-like scanner built with shodan.io.

### 采用历史

The official README documents prebuilt binaries, Go installation, AUR packages, and Homebrew installation. The supplied package metadata lists Homebrew and Nix package names, showing adoption by security-tool package sets as well as Go-based CLI users.

### 使用方式

Smap is used for fast passive port lookups, Nmap-compatible output formats, target lists, port filters, vulnerability display, and optional active verification through local nmap. The README notes that it does not require an account or API key.

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

Smap is interesting to package nerds because it wraps a network-intelligence service in a familiar Unix CLI shape: one binary, Nmap-like flags, packaged installs, and output formats that fit existing scanner pipelines.

### 时间线

- 2022: GitHub repository created.
- 2022: 0.1.0-rc and 0.1.0 released.
- 2022: 0.1.12 released.
- 2026: 0.2.0-rc published.

### Related projects

- Smap is related to Nmap, Shodan InternetDB, passive reconnaissance tools, and security scanner packaging ecosystems.

### 来源

- <https://api.github.com/repos/s0md3v/Smap>
- <https://api.github.com/repos/s0md3v/Smap/releases>
- <https://github.com/s0md3v/Smap#readme>
- <https://github.com/s0md3v/Smap/wiki/FAQ>
- input.source_facts.package-manager


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** smap
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [havn](https://www.automicvault.com/zh-hans/pkg/brew/havn/) - Shares av.db curated category or tags: cli, network-scanner, networking, port-scanner, security.
- [zmap](https://www.automicvault.com/zh-hans/pkg/brew/zmap/) - Shares av.db curated category or tags: cli, networking, scanner, security.
- [arp-scan](https://www.automicvault.com/zh-hans/pkg/brew/arp-scan/) - Shares av.db curated category or tags: cli, network-scanner, networking.
- [netscanner](https://www.automicvault.com/zh-hans/pkg/brew/netscanner/) - Shares av.db curated category or tags: cli, network-scanner, networking.
- [activemq](https://www.automicvault.com/zh-hans/pkg/brew/activemq/) - Shares av.db curated category or tags: cli, networking.
- [adns](https://www.automicvault.com/zh-hans/pkg/brew/adns/) - Shares av.db curated category or tags: cli, networking.
- [aerleon](https://www.automicvault.com/zh-hans/pkg/brew/aerleon/) - Shares av.db curated category or tags: cli, networking.
- [ahcpd](https://www.automicvault.com/zh-hans/pkg/brew/ahcpd/) - Shares av.db curated category or tags: cli, networking.

## Combined YAML source

View the package source record on GitHub. [combined/smap.yml](https://github.com/automic-vault/db/blob/main/combined/smap.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
