# 使用 Homebrew, Nix 安装 gsan

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

## 安装

```sh
sudo av install brew:gsan
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gsan
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gsan
```

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

## 软件包事实

- **软件包键:** brew:gsan
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gsan>
- **版本:** 5.0.0
- **来源摘要:** Extract subdomains from SSL certificates in HTTPS sites
- **主页:** <https://franccesco.github.io/getaltname/>
- **仓库:** <https://github.com/franccesco/getaltname>
- **上游文档:** <https://franccesco.github.io/getaltname/>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/73/0c/1fc5a29ae79fd74f0fd54d2c4d487b8cf7b21ede08efe99a6c39977816c6/gsan-5.0.0.tar.gz>
- **最后更新:** 2026-08-02T20:52:09+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gsan (cli)
- gsan (别名)

## 依赖

- cryptography
- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.0.0
- 管理器更新时间: 2026-08-02
- 本地数据: OK
- 上游仓库: https://franccesco.github.io/getaltname/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

GSAN, from the getaltname project, is a small reconnaissance CLI for extracting Subject Alternative Names from HTTPS certificates. Its distinctive point is that it connects directly to servers rather than relying on Certificate Transparency logs.

### 项目历史

The GitHub repository was created in November 2017, and early releases appeared in March 2018. The release stream moved quickly through 0.x and 1.x versions in 2018, reached 3.x during 2018 and 2019, published 4.2.3 in October 2020, and published 5.0.0 in August 2024.

The README and GitHub Pages site present a focused tool: pass a domain or pipe domain and IP:PORT lists into `gsan`, extract DNS names from the certificate SAN extension, and optionally write output for other tools.

### 采用历史

GSAN's adoption evidence is narrow but clear: it is packaged for Homebrew and Nix and documented for pipx and Docker use. Its audience is security practitioners doing subdomain enumeration, especially in cases where direct certificate inspection is useful for internal servers, self-signed certificates, or targets not covered by public Certificate Transparency logs.

### 使用方式

Basic usage is `gsan example.com`, producing the SAN DNS names found in the HTTPS certificate. The documentation also shows piping many targets with xargs, using Docker, combining results from Shodan, applying timeouts, writing an output file, and passing that output to Nmap.

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

GSAN is package-manager interesting as a tiny Python security CLI whose value comes from composing with other tools. It takes certificate metadata, emits target lists, and fits into Unix pipelines with Shodan, xargs, Docker, and Nmap.

### 时间线

- 2017: GitHub repository created.
- 2018: 0.2.0 through 2.0.0 releases published in March.
- 2018: 3.0.3 release published in July.
- 2019: 3.0.13 and v3.0.14 releases published.
- 2020: v4.2.3 release published.
- 2024: v5.0.0 release published.

### Related projects

- Shodan is shown in the README as a source of HTTPS targets for GSAN.
- Nmap is shown as a downstream consumer of GSAN output files.
- Certificate Transparency log tools are related but differ from GSAN's direct TLS-connection approach.

### 来源

- <https://api.github.com/repos/franccesco/getaltname>
- <https://api.github.com/repos/franccesco/getaltname/releases?per_page=50>
- <https://franccesco.github.io/getaltname/>
- <https://github.com/franccesco/getaltname>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gsan
- **Version Scheme:** 0
- **Revision:** 5
- **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 - gsan: normalized package name match | nixpkgs package indexes: pkgs/by-name/gs/gsan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Shares pkgdb curated category or tags: cli, security, tls.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, security, tls.
- [mkcert](https://pkg.so/zh-hans/brew/mkcert/) - Shares pkgdb curated category or tags: cli, security, tls.
- [nss](https://pkg.so/zh-hans/brew/nss/) - Shares pkgdb curated category or tags: cli, security, tls.
- [mbedtls](https://pkg.so/zh-hans/brew/mbedtls/) - Shares pkgdb curated category or tags: cli, security, tls.
- [openssl@4](https://pkg.so/zh-hans/brew/openssl-4/) - Shares pkgdb curated category or tags: cli, security, tls.
- [openssl@3.5](https://pkg.so/zh-hans/brew/openssl-3-5/) - Shares pkgdb curated category or tags: cli, security, tls.
- [certbot](https://pkg.so/zh-hans/brew/certbot/) - Shares pkgdb curated category or tags: cli, security, tls.
- [botan](https://pkg.so/zh-hans/brew/botan/) - Both packages touch the same language runtime or ecosystem. Shared terms: certificates, cli, cryptography, python, python-3-14.
- [showcert](https://pkg.so/zh-hans/brew/showcert/) - Both packages touch the same language runtime or ecosystem. Shared terms: certificates, cli, cryptography, python, python-3-14.

## Combined YAML source

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


## 来源

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