URL - 2


SUBMITTED BY: rick966

DATE: Feb. 2, 2021, 3:43 a.m.

UPDATED: Feb. 2, 2021, 3:56 a.m.

FORMAT: Text only

SIZE: 4.5 kB

HITS: 801

  1. #!/bin/bash
  2. #====================================================
  3. # SCRIPT: CONEXAO SSHPLUS MANAGER
  4. # DATA ATT: 02 de Fev 2021
  5. # DESENVOLVIDO POR: rick966
  6. # CONTATO TELEGRAM: http://t.me/rick966
  7. # CANAL TELEGRAM: http://t.me/NEW_SSHLOADED
  8. #====================================================
  9. _lvk=$(wget -qO- http://SEU-IP-AKI/script/versao)
  10. IP=$(wget -qO- ipv4.icanhazip.com)
  11. IP2=$(wget -qO- http://whatismyip.akamai.com/)
  12. [[ "$IP" != "$IP2" ]] && ipdovps="$IP2" || ipdovps="$IP"
  13. echo -e "$ipdovps" >/etc/IP
  14. lst=$1 && lst1=$2 && lst2=$3 && key1=$4 && key2=crz
  15. echo -e "America/Sao_Paulo" >/etc/timezone
  16. ln -fs /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime >/dev/null 2>&1
  17. dpkg-reconfigure --frontend noninteractive tzdata >/dev/null 2>&1
  18. [[ -z $lst1 ]] && {
  19. rm -rf $_Ink/list >/dev/null 2>&1 && cat /dev/null >~/.bash_history && history -c && exit 0
  20. }
  21. [[ ! -d /etc/SSHPlus ]] && mkdir /etc/SSHPlus
  22. [[ ! -d /etc/SSHPlus/senha ]] && mkdir /etc/SSHPlus/senha
  23. [[ ! -e /etc/SSHPlus/Exp ]] && touch /etc/SSHPlus/Exp
  24. [[ ! -d /etc/SSHPlus/userteste ]] && mkdir /etc/SSHPlus/userteste
  25. [[ ! -d /etc/SSHPlus/.tmp ]] && mkdir /etc/SSHPlus/.tmp
  26. [[ ! -d /etc/bot ]] && mkdir /etc/bot
  27. [[ ! -d /etc/bot/info-users ]] && mkdir /etc/bot/info-users
  28. [[ ! -d /etc/bot/arquivos ]] && mkdir /etc/bot/arquivos
  29. [[ ! -d /etc/bot/revenda ]] && mkdir /etc/bot/revenda
  30. [[ ! -d /etc/bot/suspensos ]] && mkdir /etc/bot/suspensos
  31. [[ ! -e /etc/bot/lista_ativos ]] && touch /etc/bot/lista_ativos
  32. [[ ! -e /etc/bot/lista_suspensos ]] && touch /etc/bot/lista_suspensos
  33. echo -e 'by: @CRAZY_VPN' >/usr/lib/sshplus && cat /usr/lib/sshplus >$lst2/licence && cat /usr/lib/sshplus > /etc/SSHPlus/.tmp/crazy
  34. netstat -nplt | grep -w 'apache2' | grep -w '80' && sed -i "s/Listen 80/Listen 81/g" /etc/apache2/ports.conf && service apache2 restart
  35. [[ "$(grep -o '#Port 22' /etc/ssh/sshd_config)" == "#Port 22" ]] && sed -i "s;#Port 22;Port 22;" /etc/ssh/sshd_config && service ssh restart
  36. grep -v "^PasswordAuthentication" /etc/ssh/sshd_config >/tmp/passlogin && mv /tmp/passlogin /etc/ssh/sshd_config
  37. echo "PasswordAuthentication yes" >>/etc/ssh/sshd_config
  38. _dir1='/bin'
  39. _dir2='/etc/SSHPlus'
  40. rm $_dir2/ShellBot.sh $_dir2/cabecalho $_dir2/open.py $_dir2/proxy.py >/dev/null 2>&1
  41. _mdls=("addhost" "delhost" "alterarsenha" "criarusuario" "expcleaner" "mudardata" "remover" "criarteste" "verifbot" "droplimiter" "alterarlimite" "ajuda" "sshmonitor" "badvpn" "userbackup" "instsqd" "blockt" "otimizar" "menu" "speedtest" "banner" "senharoot" "reiniciarservicos" "reiniciarsistema" "attscript" "conexao" "delscript" "detalhes" "botssh" "infousers" "verifatt" "limiter" "uexpired" "cabecalho" "bot" "open.py" "proxy.py")
  42. for _arq in ${_mdls[@]}; do
  43. [[ -e $_dir1/$_arq ]] && rm $_dir1/$_arq >/dev/null 2>&1
  44. wget -c -P $_dir1 http://SEU-IP-AKI/_S_script/$_arq
  45. chmod +x $_dir1/$_arq
  46. done
  47. mv $_dir1/cabecalho $_dir1/bot $_dir1/open.py $_dir1/proxy.py $_dir2
  48. _arq_host="/etc/hosts"
  49. _host[0]="d1n212ccp6ldpw.cloudfront.net"
  50. _host[1]="dns.whatsapp.net"
  51. _host[2]="portalrecarga.vivo.com.br/recarga"
  52. _host[3]="navegue.vivo.com.br/controle/"
  53. _host[4]="navegue.vivo.com.br/pre/"
  54. _host[5]="www.whatsapp.net"
  55. _host[6]="/SSHPLUS?"
  56. for host in ${_host[@]}; do
  57. if [[ "$(grep -w "$host" $_arq_host | wc -l)" = "0" ]]; then
  58. sed -i "3i\127.0.0.1 $host" $_arq_host
  59. fi
  60. done
  61. [[ ! -e /etc/autostart ]] && {
  62. echo '#!/bin/bash
  63. clear
  64. #INICIO AUTOMATICO' >/etc/autostart
  65. chmod +x /etc/autostart
  66. } || {
  67. [[ $(ps x | grep "bot_plus" | grep -v grep | wc -l) != '0' ]] && wget -qO- https://raw.githubusercontent.com/shellscriptx/shellbot/master/ShellBot.sh >/etc/SSHPlus/ShellBot.sh
  68. for proc in $(ps x | grep 'dmS' | grep -v 'grep' | awk {'print $1'}); do
  69. screen -r -S "$proc" -X quit
  70. done
  71. screen -wipe >/dev/null
  72. echo '#!/bin/bash
  73. clear
  74. #INICIO AUTOMATICO' >/etc/autostart
  75. chmod +x /etc/autostart
  76. }
  77. crontab -r >/dev/null 2>&1
  78. (
  79. crontab -l 2>/dev/null
  80. echo "@daily /bin/verifatt"
  81. echo "@reboot /etc/autostart"
  82. echo "* * * * * /etc/autostart"
  83. echo "0 */6 * * * /bin/uexpired"
  84. ) | crontab -
  85. echo "$_lvk" | sed -n '1 p' | cut -d' ' -f2 >/bin/versao && cat /bin/versao >/home/sshplus
  86. wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 >/dev/null 2>&1
  87. chmod +x jq-linux64 && mv jq-linux64 $(which jq)
  88. service cron restart >/dev/null 2>&1
  89. service ssh restart >/dev/null 2>&1
  90. [[ -d /var/www/html/openvpn ]] && service apache2 restart >/dev/null 2>&1
  91. rm -rf $lst1/list >/dev/null 2>&1

comments powered by Disqus