patrickhener/goshs
GitHub: patrickhener/goshs
一个功能丰富的多协议文件服务器,替代 SimpleHTTPServer 并增强认证、协作与捕获能力。
Stars: 573 | Forks: 39

[](https://github.com/patrickhener/goshs/blob/master/LICENSE)

[](https://github.com/patrickhener/goshs/issues)

[](https://goreportcard.com/report/github.com/patrickhener/goshs)
[](https://github.com/patrickhener/goshs/stargazers)
goshs 是 Python 的 `SimpleHTTPServer` 的替代品。它是一个功能丰富的文件服务器,支持 HTTP/S、WebDAV、SFTP 和 SMB —— 内置认证、共享链接、Webhook 以及用于渗透测试和 CTF 挑战的协作功能。

# 快速开始
```
# 在端口 8000 上提供当前目录服务
goshs
# 使用 HTTPS(自签名)和基本身份验证提供服务
goshs -s -ss -b user:password
# 捕获 SMB 哈希
goshs -smb -smb-domain CORP
# 捕获 DNS 回调并接收电子邮件
goshs -dns -dns-ip 1.2.3.4 -smtp -smtp-domain your-domain.com
```
# 文档
详细文档请访问 [goshs.de](https://goshs.de)
# 功能
| | |
|---|---|
| 📁 **文件操作** | 下载、上传(拖放、POST/PUT)、删除、批量 ZIP、QR 码 |
| 🔌 **协议** | HTTP/S、WebDAV、SFTP、SMB |
| 🔒 **认证与安全** | 基本认证、证书认证、TLS(自签名、Let's Encrypt、自定义证书)、IP 白名单、基于文件的 ACL |
| ⚙️ **服务器模式** | 只读、仅上传、禁止删除、静默、隐藏、CLI 命令执行 |
| 🔗 **共享链接** | 基于令牌分享、下载限制、时间限制 |
| 🎯 **协作 / CTF** | DNS 服务器、SMTP 服务器、SMB NTLM 哈希捕获 + 破解、重定向端点 |
| 🔔 **集成** | Webhook、通过 localhost.run 隧道、配置文件、JSON API、mDNS |
| 🛠️ **其他** | 深色/浅色主题、剪贴板、自更新、日志输出、嵌入文件、降权 |
# 安装
| 方法 | |
|---|---|
| 🦫 **Go** | `go install goshs.de/goshs/v2@latest` |
| 🐉 **Kali** | `sudo apt install goshs` |
| 🍺 **Homebrew** | `brew install goshs` |
| 🪟 **Scoop** | `scoop bucket add extras && scoop install extras/goshs` |
| 🐳 **Docker** | `docker run --rm -it -p 8000:8000 -v "$PWD:/pwd" patrickhener/goshs:latest -d /pwd` |
| 📦 **发布版** | [从 GitHub Releases 下载](https://github.com/patrickhener/goshs/releases) |
# 安全贡献者
这些出色的贡献者让 `goshs` 更加安全 ❤️
# 星标历史
[](https://www.star-history.com/#patrickhener/goshs&type=date&legend=top-left)
# 致谢
特别感谢 *sc0tfree* 用他的项目 [updog](https://github.com/sc0tfree/updog)(Python 编写)启发了这个项目。
goshs 是 Python 的 `SimpleHTTPServer` 的替代品。它是一个功能丰富的文件服务器,支持 HTTP/S、WebDAV、SFTP 和 SMB —— 内置认证、共享链接、Webhook 以及用于渗透测试和 CTF 挑战的协作功能。

# 快速开始
```
# 在端口 8000 上提供当前目录服务
goshs
# 使用 HTTPS(自签名)和基本身份验证提供服务
goshs -s -ss -b user:password
# 捕获 SMB 哈希
goshs -smb -smb-domain CORP
# 捕获 DNS 回调并接收电子邮件
goshs -dns -dns-ip 1.2.3.4 -smtp -smtp-domain your-domain.com
```
# 文档
详细文档请访问 [goshs.de](https://goshs.de)
# 功能
| | |
|---|---|
| 📁 **文件操作** | 下载、上传(拖放、POST/PUT)、删除、批量 ZIP、QR 码 |
| 🔌 **协议** | HTTP/S、WebDAV、SFTP、SMB |
| 🔒 **认证与安全** | 基本认证、证书认证、TLS(自签名、Let's Encrypt、自定义证书)、IP 白名单、基于文件的 ACL |
| ⚙️ **服务器模式** | 只读、仅上传、禁止删除、静默、隐藏、CLI 命令执行 |
| 🔗 **共享链接** | 基于令牌分享、下载限制、时间限制 |
| 🎯 **协作 / CTF** | DNS 服务器、SMTP 服务器、SMB NTLM 哈希捕获 + 破解、重定向端点 |
| 🔔 **集成** | Webhook、通过 localhost.run 隧道、配置文件、JSON API、mDNS |
| 🛠️ **其他** | 深色/浅色主题、剪贴板、自更新、日志输出、嵌入文件、降权 |
# 安装
| 方法 | |
|---|---|
| 🦫 **Go** | `go install goshs.de/goshs/v2@latest` |
| 🐉 **Kali** | `sudo apt install goshs` |
| 🍺 **Homebrew** | `brew install goshs` |
| 🪟 **Scoop** | `scoop bucket add extras && scoop install extras/goshs` |
| 🐳 **Docker** | `docker run --rm -it -p 8000:8000 -v "$PWD:/pwd" patrickhener/goshs:latest -d /pwd` |
| 📦 **发布版** | [从 GitHub Releases 下载](https://github.com/patrickhener/goshs/releases) |
🔧 自行构建
构建需要 [uglify-js](https://www.npmjs.com/package/uglify-js) 和 [sass](https://sass-lang.com/install)。安装这些包后运行: ``` git clone https://github.com/patrickhener/goshs.git cd goshs make build-all ```![]() |
![]() |
![]() |
![]() |
Guilhem7 |
标签:CTF 工具, EVTX分析, goshs, Go 语言, Go 静态文件服务器, HTTPS, HTTP 文件服务, SMB, WebDAV, Webhook, 代码生成, 内置认证, 分享链接, 力导向图, 协作功能, 安全测试, 开源文件共享, 攻击性安全, 文件服务器, 日志审计, 替代 Python SimpleHTTPServer, 渗透测试工具, 错误配置检测



