SSH


SUBMITTED BY: NyeinKoKo255

DATE: Sept. 10, 2023, 4:03 p.m.

UPDATED: Sept. 10, 2023, 7:02 p.m.

FORMAT: Text only

SIZE: 2.3 kB

HITS: 679

  1. #!/bin/bash
  2. #red='\x1b[31;1m'
  3. #yellow='\x1b[33;1m'
  4. #green='\x1b[32;1m'
  5. plain='\033[0m'
  6. red='\e[31m'
  7. yellow='\e[33m'
  8. gray='\e[90m'
  9. green='\e[92m'
  10. blue='\e[94m'
  11. magenta='\e[95m'
  12. cyan='\e[96m'
  13. none='\e[0m'
  14. # check root
  15. [[ $EUID -ne 0 ]] && echo -e "${red}Error: ${plain} You must use root user to run this script!\n" && exit 1
  16. sed -i 's/#\?AllowTcpForwarding .*/AllowTcpForwarding yes/' /etc/ssh/sshd_config && sed -i 's/#\?PasswordAuthentication .*/PasswordAuthentication yes/' /etc/ssh/sshd_config && sed -i 's/#\?Banner .*/Banner \/etc\/ssh\/gcp_404/' /etc/ssh/sshd_config && /etc/init.d/ssh restart;
  17. echo "
  18. <h3><font color='red'>▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬
  19. </font></h3>
  20. <h3><font color='magenta'>--- ۩ PREMIUM SERVER ۩ ---
  21. </font></h3>
  22. <h3><font color='#f27401'>--- ۩ SERVER BY ④ ⍤⃝🌻④ ۩ ---
  23. </font></h3>
  24. <h4><font color='#F535AA'>Telegram Channel >> https://t.me/Pmttg
  25. </font></h4>
  26. <h4><font color='#E65100'>Telegram Channel >> https://t.me/nkka_404
  27. </font></h4>
  28. <h3><font color='red'>▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬
  29. </font></h3>" | tee /etc/ssh/gcp_404 >/dev/null
  30. useradd "404" --shell=/bin/false -M
  31. echo "404:404" | chpasswd
  32. echo ""
  33. echo "------------------------------------"
  34. printf "Developed the script by \n"
  35. echo "------------------------------------"
  36. echo ""
  37. echo -e "${yellow}▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ${plain}"
  38. echo -e "${cyan} ___ ___ ________ ___ ___ ${plain}"
  39. echo -e "${cyan}|\ \ |\ \ |\ __ \ |\ \ |\ \ ${plain}"
  40. echo -e "${cyan}\ \ \|_\ \ \ \ \|\ \ \ \ \|_\ \ ${plain}"
  41. echo -e "${cyan} \ \______ \ \ \ \/\ \ \ \______ \ ${plain}"
  42. echo -e "${cyan} \|_____|\ \ \ \ \/\ \ \|_____|\ \ ${plain}"
  43. echo -e "${cyan} \ \__\ \ \_______\ \ \__\ ${plain}"
  44. echo -e "${cyan} \|__| \|_______| \|__| ${plain}"
  45. echo -e "${green}Contact the developer https://t.me/nkka404 for more information ${plain}"
  46. echo -e "${yellow}▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ${plain}"
  47. echo -e "${cyan}i am 404 😎 ${plain}"

comments powered by Disqus