macOS
brew install shclocal Homebrew formula metadata
安装
brew install shclocal Homebrew formula metadata
sudo apk add shcAlpine Linux edge package indexes · shc · 来源: dl-cdn.alpinelinux.org
sudo dnf install shcFedora Rawhide package metadata · shc · 来源: dl.fedoraproject.org
nix profile install nixpkgs#shcnixpkgs package indexes · pkgs/by-name/sh/shc/package.nix · 来源: api.github.com
sudo apt install shcUbuntu 24.04 LTS package indexes · shc · 来源: archive.ubuntu.com
概览
Shell Script Compiler
历史
shc packages shell scripts as executable binaries by generating C source that decrypts and runs the original script through its designated shell.
shc was created as a generic shell-script-to-executable tool. It encodes and encrypts a script, emits C source, and invokes the system compiler to produce a stripped executable.
The current official project is maintained in the neurobin GitHub repository and documents experimental anti-tracing hardening alongside its traditional expiration and obfuscation capabilities.
shc is packaged for multiple Unix-like systems, including Alpine, Fedora-family distributions, Ubuntu, Nix, MacPorts, and Homebrew.
A typical invocation is shc -f script.sh -o binary. The resulting executable behaves like the source script but remains dependent on the shell named by its shebang.
Users should test generated binaries carefully. The official documentation notes argument-size limits and describes the -H hardening mode as experimental.
shc occupies an unusual niche between packaging, obfuscation, and compilation. It can turn a script into a conventional executable artifact, but the result still depends on the script's original interpreter.
Its limitations matter to packagers: shc does not produce a truly self-contained native program, and generated executables remain constrained by shell availability and system argument-size limits.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
shc | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/neurobin/shc
安装元数据
| 软件包键 | brew:shc |
|---|---|
| 版本 | 4.0.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/shc |
| 主页 | https://neurobin.github.io/shc |
| 仓库 | https://github.com/neurobin/shc |
| 上游文档 | https://neurobin.github.io/shc |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://github.com/neurobin/shc/archive/refs/tags/4.0.3.tar.gz |
| 最后更新 | 2026-09-13T09:33:53Z |
| Pulse | updated |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | shc |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
shc
nix profile install nixpkgs#shcshc 4.0.3-1
Shell script compiler
https://neurobin.org/projects/softwares/unix/shc/
sudo apt install shcshc 4.0.3-r2
A generic shell script compiler.
https://neurobin.org/projects/softwares/unix/shc/
sudo apk add shcshc 4.0.3-17.fc45
Shell script compiler
https://neurobin.org/projects/softwares/unix/shc/
sudo dnf install shcshc
sudo port install shc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.