list 4.8 KB

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