简单ai了个代码监测飞牛有没有被黑
代码详情:
#!/bin/bash
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
echo "========== 文件检查结果 =========="
for file in /usr/sbin/gots /usr/bin/nginx /usr/trim/bin/trim_https_cgi;
do
if [ -f "$file" ]; then
echo -e "${GREEN}[✓ 存在]${NC} $file"
else
echo -e "${RED}[✗ 缺失]${NC} $file"
fi
done
echo "================================="
手动使用:
vim check_files.sh #粘贴代码进去,esc+:wq保存
chmod +x check_files.sh
sudo ./check_files.sh
联网在线使用:
Curl
curl -fsSL https://d.vekixx.com/Code/check_files.sh | bash
Wget
wget -qO- https://d.vekixx.com/Code/check_files.sh | bash
大神的自动化工具
https://gist.github.com/luodaoyi/3317b3b584ce173bff15d76e7797bcda
使用
联网在线使用:
Curl
curl -fsSL https://d.vekixx.com/Code/fnos_security_fix.sh | bash
Wget
wget -qO- https://d.vekixx.com/Code/fnos_security_fix.sh | bash
手动使用:
vim fnos_security_fix.sh #粘贴代码进去,esc+:wq保存
chmod +x fnos_security_fix.sh
sudo ./fnos_security_fix.sh
评论区