DarkProgrammer000

Anonymous [tor ghost]

Jul 26th, 2021
1,624
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # Execucao do programa
  4. execucao()
  5. {
  6.  
  7.     ip=$(curl ifconfig.me --silent | awk {'print $1'})
  8.    
  9.     clear
  10.     echo -e "\033[01;34m\n ----- Execucao ----- \n\033[01;37m" 
  11.     echo -e "\033[01;34m\n ---- https://nordvpn.com/pt/ip-lookup/ ----\n\033[01;37m"
  12.     echo -e "\033[01;35m --> IP atual: $ip \n\033[01;37m"
  13.    
  14.     # Tor
  15.     #service tor start
  16.     cd TorGhost/
  17.     python3 torghost.py -u
  18.     python3 torghost.py -a
  19.    
  20.     ip=$(curl ifconfig.me --silent | awk {'print $1'})
  21.     echo -e "\033[01;32m\n--> Novo IP: $ip \n\033[01;37m"
  22.  
  23.     cd ../
  24. }
  25.  
  26. # IP (usa, china)
  27. IP()
  28. {
  29.     clear
  30.     echo -e "\033[01;34m\n ----- IP USA ou CHINA ----- \n\033[01;37m"
  31.    
  32.     ip=$(curl ifconfig.me --silent | awk {'print $1'})
  33.     echo -e "\033[01;32m\n--> IP: $ip \n\033[01;37m"
  34.  
  35.  
  36.     # New Request
  37.     cd TorGhost/
  38.     python3 torghost.py -u
  39.     python3 torghost.py -a -c us,ch
  40.     cd ../
  41.  
  42.     ip=$(curl ifconfig.me --silent | awk {'print $1'})
  43.     echo -e "\033[01;32m\n--> Novo IP: $ip \n\033[01;37m"
  44. }
  45.  
  46. # Desativacao do programa
  47. desativacao()
  48. {
  49.     clear
  50.     echo -e "\033[01;34m\n  ----- Desativacao ----- \n\033[01;37m"
  51.    
  52.     # Finalizando conexao
  53.     cd TorGhost/
  54.     python3 torghost.py -x
  55.     cd ../
  56.    
  57.     echo -e "\033[01;33m\n-1-> Desativar placa de rede: ifconfig eth1 down \n\033[01;37m"
  58.     echo -e "\033[01;33m-2-> Ativar placa de rede:    ifconfig eth1 up \n\033[01;37m"
  59. }
  60.  
  61. # Instalacao do programa
  62. instalacao()
  63. {
  64.     echo -e "\033[01;35m\n  ----- Instalacao ----- \n\033[01;37m"
  65.    
  66.     # Estutura de decisao: Analisar se o arquivo existe
  67.     if [[ -r TorGhost/ ]]
  68.     then
  69.         echo -e "\033[01;33m\n # Diretorio existente \n\033[01;37m"
  70.    
  71.     else
  72.         # Instalar TOR
  73.         apt-get install tor
  74.        
  75.         # GitHub       
  76.         git clone https://github.com/databurn-in/TorGhost.git
  77.  
  78.         # Instalar
  79.         cd TorGhost/
  80.         chmod +x build.sh
  81.         ./build.sh
  82.         cd ../
  83.     fi
  84. }
  85.  
  86. # Apresentacao
  87. clear
  88. echo -e "\033[01;34m -----------------\033[01;37m"
  89. echo -e "\033[01;35m     TOR GHOST    \033[01;37m"
  90. echo -e "\033[01;34m -----------------\033[01;37m"
  91. echo ""
  92. echo -e "\033[01;31m [1] Executar        \033[01;37m"
  93. echo -e "\033[01;32m [2] IP (usa, china) \033[01;37m"
  94. echo -e "\033[01;33m [3] Desativar       \033[01;37m"
  95. echo -e "\033[01;36m [4] Instalar        \033[01;37m"
  96. echo ""
  97. echo -e -n "\033[01;37m - Opc: \033[01;37m"
  98. read opc
  99. clear
  100.  
  101. # Estrutura de escolha
  102. case $opc in
  103.  
  104. 1)  execucao;;
  105. 2)  IP;;
  106. 3)  desativacao;;
  107. 4)  instalacao;;
  108. *)  ;;
  109.  
  110. esac
RAW Paste Data