你正处于渗透测试的中期阶段。你需要传输文件、捕获 SMB 哈希,或快速搭建一个 HTTPS 服务器——而 python3 -m http.server 根本不够用。
goshs 是一个单二进制文件服务器,专为那些你需要比 Python 的 SimpleHTTPServer 更强大、但又不想配置 Apache 的场景而设计。HTTP/S、WebDAV、FTP/SFTP、SMB、LDAP/S、基本认证、分享链接、DNS/SMTP 回调、NTLM 哈希捕获与破解——全部通过一条命令完成。


亲自体验:demo.goshs.de

# 在 8000 端口提供当前目录服务
goshs
# 使用 HTTPS(自签名)和基本认证提供服务
goshs -s -ss -b user:password
# 捕获 SMB 哈希
goshs -smb -smb-domain CORP
# 捕获 LDAP 凭据和 NTLM 哈希(可选字典破解)
goshs -ldap
goshs -ldap -ldap-wordlist /usr/share/wordlists/rockyou.txt
# 捕获 DNS 回调并接收邮件
goshs -dns -dns-ip 1.2.3.4 -smtp -smtp-domain your-domain.com
# 2 小时后自毁
goshs --ttl 2h
# 使用交互式终端仪表盘运行(非常适合无头 SSH 会话)
goshs --tui
# 提供在下载时自动填充回调主机/端口的载荷
goshs -i 10.10.14.7 --template --tpl-var LPORT=4444
# 获取渲染结果:curl 'http://10.10.14.7:8000/rev.ps1?tpl'
详细文档请访问 docs.goshs.de
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 更加安全的优秀贡献者 ❤️
加入 Discord 社区,开始交流。
特别感谢 sc0tfree,他的 Python 项目 updog 启发了本项目。
| 📁 文件操作 | 下载(通过 HTTP Range 支持断点续传与随机访问)、上传(拖放、POST/PUT)、删除、批量 ZIP、二维码 |
| 🔌 协议 | HTTP/S、WebDAV、FTP/SFTP、SMB、LDAP/S |
| 🔒 认证与安全 | 基本认证、证书认证、TLS(自签名、Let's Encrypt、自定义证书)、IP 白名单、基于文件的 ACL |
| ⚙️ 服务器模式 | 只读、仅上传、禁止删除、静默、隐身、CLI 命令执行、TTL 自毁 |
| 🔗 分享链接 | 基于令牌的分享、下载限制、时间限制 |
| 🎯 协作 / CTF | 实时团队聊天(Markdown、emoji + :shortcodes: 自动建议、图片粘贴、文件上传、表情回应、消息编辑、可选磁盘持久化——Web 与 TUI 共享)、DNS 服务器、SMTP 服务器、SMB NTLM 哈希捕获与破解、LDAP 凭据捕获与 NTLM 哈希破解(Log4Shell 的 JNDI 模式)、重定向端点、反向 Shell 捕获器 + 载荷生成器 |
| 🧩 载荷模板化 | 按需(?tpl)将 {{.LHOST}}/{{.LPORT}} 及自定义 --tpl-var 值渲染到提供的文件中 |
| 🔔 集成 | Webhooks、通过 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 下载 |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | wooseokdotkim | Guilhem7 |