daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Aug 4th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh -e
  2. #
  3. # rc.local
  4. #
  5. # This script is executed at the end of each multiuser runlevel.
  6. # Make sure that the script will "exit 0" on success or any other
  7. # value on error.
  8. #
  9. # In order to enable or disable this script just change the execution
  10. # bits.
  11. #
  12. # By default this script does nothing.
  13. l
  14. #
  15. # This script is executed at the end of each multiuser runlevel.
  16. # Make sure that the script will "exit 0" on success or any other
  17. # value on error.
  18. #
  19. # In order to enable or disable this script just change the execution
  20. # bits.
  21. #
  22. # By default this script does nothing.
  23. HONEYPOT_INSTALL_CHECK=/home/ubuntu/sanjayInstaller
  24. SCRIPT1=/home/ubuntu/deploy1.sh
  25. SCRIPT2=/home/ubuntu/deploy2.sh
  26. SCRIPT3=/home/ubuntu/deploy3.sh
  27. SCRIPT4=/home/ubuntu/deploy4.sh
  28.  
  29. if [ ! -f ${HONEYPOT_INSTALL_CHECK} ]; then
  30.     wget 'http://13.58.x.253/api/script/?text=true&script_id=14' -O ${SCRIPT1} && bash ${SCRIPT1} http://13.58.x.253 vXEXem2n &&
  31.     wget 'http://13.58.x.253/api/script/?text=true&script_id=8'  -O ${SCRIPT2} && bash ${SCRIPT2} http://13.58.x.253 vXEXem2n &&
  32.     wget 'http://13.58.x.253/api/script/?text=true&script_id=13' -O ${SCRIPT3} && bash ${SCRIPT3} http://13.58.x.253 vXEXem2n &&
  33.     wget 'http://13.58.x.253/api/script/?text=true&script_id=2'  -O ${SCRIPT4} && bash ${SCRIPT4} http://13.58.x.253 vXEXem2n &&
  34.     touch ${HONEYPOT_INSTALL_CHECK}
  35. fi
  36. exit 0
RAW Paste Data
Top