服务器清理挖矿问题

top -c

ps -ef

netstat -antp # 查所有端口链接

ls -al /proc/$PID/exe # 查执行文件

kill -9 $PID # 杀进程

// 查文件

/usr/lib/systemd/system

/usr/lib/systemd/system/multi-user.target.wants

/etc/rc.local

/etc/inittab

/etc/rc0.d/

/etc/rc1.d/

/etc/rc2.d/

/etc/rc3.d/

/etc/rc4.d/

/etc/rc5.d/

/etc/rc6.d/

/etc/rc.d/

查找定时任务

cat /etc/crontab

cat /var/spool/cron

cat /etc/anacrontab

cat /etc/cron.d/

cat /etc/cron.daily/

cat /etc/cron.hourly/

cat /etc/cron.weekly/

cat /etc/cron.monthly/

cat /var/spool/cron/

对定时任务提权

chattr -ia /etc/cron.hourly/logrotate /etc/cron.daily/logrotate /etc/cron.weekly/logrotate /etc/cron.monthly/logrotate

删除定时任务

rm -rf /etc/cron.hourly/logrotate /etc/cron.daily/logrotate /etc/cron.weekly/logrotate /etc/cron.monthly/logrotate

相关推荐
编码浪子7 小时前
趣味学RUST基础篇(异步)
服务器·rust·负载均衡
九河云8 小时前
华为云 GaussDB:金融级高可用数据库,为核心业务保驾护航
网络·数据库·科技·金融·华为云·gaussdb
独行soc8 小时前
2025年渗透测试面试题总结-66(题目+回答)
java·网络·python·安全·web安全·adb·渗透测试
码农101号8 小时前
运维安全05 - iptables规则保存与恢复
运维·网络·安全
Empty_7778 小时前
SELinux安全上下文
linux·服务器·安全
bug攻城狮9 小时前
解决Ubuntu中apt-get -y安装时弹出交互提示的问题
linux·运维·ubuntu
xiachong279 小时前
ubuntu18.04安装PCL1.14
linux·ubuntu
夜阑珊夭夭10 小时前
linux自定义网卡名字
linux·运维
czhc114007566310 小时前
Linux912 shell:$# $1 $?;RHEL 8 AppStream BaseOS
linux
佛天华10 小时前
centos 时间校准
linux·运维·centos