srhoe/mac-cyber-bootstrap

GitHub: srhoe/mac-cyber-bootstrap

一个面向网络安全从业者的 macOS 一键环境配置脚本,通过单条命令将全新 Mac 转变为装备齐全的安全工作站。

Stars: 65 | Forks: 5

# 🛡️ mac-cyber-bootstrap 一个专为网络安全专业人员、CTF 选手和漏洞赏金猎人设计的 macOS 一键设置脚本。 ## 功能简介 只需一条命令,即可将一台全新的 Mac 变成一个装备齐全的安全工作站。它包揽了一切 —— 包管理器、CLI 工具、GUI 应用、Go/Python/Rust 工具链、字典列表和 shell 配置 —— 让你可以专注于黑客技术本身,而非环境配置。 ## 环境要求 | 要求 | 说明 | |---|---| | macOS | 已在 macOS 13 Ventura 及更高版本上测试 | | Apple Silicon 或 Intel | 脚本会自动处理两种架构的 Homebrew 路径 | | 管理员权限 | 安装 Homebrew 和 Xcode CLT 所需 | | 互联网连接 | 全程需要网络连接 | ## 快速开始 ``` curl -fsSL https://raw.githubusercontent.com/srhoe/mac-cyber-bootstrap/main/mac-cyber-bootstrap.sh -o mac-cyber-bootstrap.sh chmod +x mac-cyber-bootstrap.sh ./mac-cyber-bootstrap.sh ``` 或者先克隆该仓库: ``` git clone https://github.com/srhoe/mac-cyber-bootstrap.git cd mac-cyber-bootstrap chmod +x mac-cyber-bootstrap.sh ./mac-cyber-bootstrap.sh ``` ## 安装内容 ### 🖥️ 核心 / 终端 `git` · `wget` · `curl` · `jq` · `tmux` · `fzf` · `ripgrep` · `bat` · `neovim` · `htop` · `btop` 等 ### 🌐 信息收集 / Web / 漏洞赏金 `ffuf` · `gobuster` · `feroxbuster` · `amass` · `subfinder` · `httpx` · `nuclei` · `naabu` · `sqlmap` · `nikto` · `wafw00f` · `wfuzz` · `masscan` · `nmap` · `recon-ng` · `theharvester` · `wpscan` ### 🔑 凭证 / 破解 `hydra` · `john-jumbo` · `hashcat` · `hcxtools` · `bitwarden-cli` ### 🏢 活动目录 / Windows / 基础设施 `evil-winrm` · `kerbrute` · `impacket` · `azurehound` · `crackmapexec` ### 🔍 开发 / 扫描 / 密钥 `semgrep` · `gitleaks` ### 🐍 Python(通过 pipx) `dirsearch` · `paramspider` · `mitmproxy` · `bloodhound-python` ### 🐹 Go 工具 `hakrawler` · `waybackurls` · `assetfinder` · `gau` · `katana` · `httprobe` · `shuffledns` · `cdncheck` · `interactsh-client` ### 🖱️ GUI 应用 `Burp Suite` · `Caido` · `Wireshark` · `Obsidian` · `BloodHound` · `Maltego` · `Docker` · `Firefox` · `Tor Browser` · `Mullvad VPN` · `iTerm2` · `VS Code` · `Signal` · `Bitwarden` ### 📚 字典列表与仓库 - [SecLists](https://github.com/danielmiessler/SecLists) → `~/wordlists/SecLists` - [PayloadsAllTheThings](https://github.com/swisskyrepo/PayloadsAllTheThings) → `~/tools/PayloadsAllTheThings` - [nuclei-templates](https://github.com/projectdiscovery/nuclei-templates) → `~/tools/nuclei-templates` - [XSStrike](https://github.com/s0md3v/XSStrike) · `Gf-Patterns` · `fuzzing-templates` · `PrivescCheck` · `Responder` · `PowerSploit` ## 工作区结构 ``` ~/ ├── labs/ # CTF and lab workspaces ├── tools/ # Cloned repos and custom tools ├── wordlists/ # SecLists and other wordlists ├── reports/ # Pentest and bug bounty reports └── screenshots/ # Evidence and findings ``` ## 新增的 Shell 别名 | 别名 | 命令 | |---|---| | `ll` | `ls -lah` | | `ctf` | `cd ~/labs` | | `tools` | `cd ~/tools` | | `wordlists` | `cd ~/wordlists` | | `ports` | 列出所有正在监听的端口 | | `myip` | 显示你的公网 IP | | `grepip` | 从输出中提取 IP | | `pyserver` | 在 8000 端口启动 Python HTTP 服务器 | | `reload` | 重新加载你的 shell 配置 | ## 运行脚本后 ``` # 1. 重启 Terminal(或重新加载 shell) source ~/.zshrc # 2. 健全性检查 brew doctor # 3. 验证关键工具 which nmap ffuf nuclei subfinder httpx sqlmap evil-winrm crackmapexec # 4. 打开并完成以下软件的首次运行设置: # Burp Suite, Caido, Wireshark, Docker # 5. 登录 Bitwarden CLI bw login # 6. 在从公共网络运行 recon 之前,确认您的 VPN(Mullvad) ``` ## 手动 / 特殊情况 以下工具出于特定原因**未包含**在此脚本中 —— 具体说明如下: | 工具 | 原因 | 替代方案 | |---|---|---| | **Nessus** | 必须直接通过 Tenable 安装 | [从 Tenable 下载](https://www.tenable.com/downloads/nessus) | | **Mimikatz** | 实际上仅限 Windows 使用 | 在 Windows VM 中使用 | | **Flameshot** | 主要面向 Linux | 使用 Shottr、CleanShot X 或 macOS 内置截图工具 | | **netstat-nat** | 仅限 Linux | `lsof -i -P -n`, `nettop`, `tcpdump` | | **BloodHound** | Brew cask 已弃用 | 关注后续更新或手动安装 | ## 错误与部分失败 脚本使用了 `set -Eeuo pipefail` 并针对每个工具进行了错误处理。如果单个工具安装失败,脚本会发出警告并继续执行,而不会直接退出。完成后,请检查输出中是否有任何 `[!]` 警告信息。 ## 许可证 MIT —— 可自由使用,欢迎贡献代码。 ## 免责声明 本脚本仅供**合法且经授权的用途**使用 —— 适用于你自己的机器、家庭实验室和 CTF 环境。作者不对任何不当使用承担责任。
标签:Cutter, 可视化界面, 密码管理, 数字取证, 日志审计, 环境配置, 自动化脚本, 逆向工具