Googleinurl

[SCRIPT] INSTALADOR TOR (Debian or Ubuntu)

Dec 11th, 2014
703
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. echo "---------------------------------------------------------------"
  3. echo "INSTALADOR TOR (Debian or Ubuntu):::"
  4. echo "[+][INFO]:: https://www.torproject.org/docs/debian.html.en"
  5. echo "---------------------------------------------------------------"
  6. cat  /etc/[A-Za-z]*[_-][rv]e[lr]*
  7. echo "---------------------------------------------------------------"
  8. echo "[+]QUAL SUA DISTRO LINUX ?"
  9. echo "---------------------------------------------------------------"
  10. read distro;
  11. if ["$distro" ]
  12. then
  13. echo "deb http://deb.torproject.org/torproject.org $distro main" >> /etc/apt/sources.list
  14. echo "[+] Repositório adicionado sources.list"
  15.  
  16. processo1=$(gpg --keyserver keys.gnupg.net --recv 886DDD89)
  17. if [ "$processo1" ]
  18. then
  19.     echo "[PROCESSO gpg ADICIONAR KEY SERVER]:: OK"
  20. else
  21.     echo "[PROCESSO gpg ADICIONAR KEY SERVER]:: ERROR"
  22.     exit
  23. fi
  24. echo "---------------------------------------------------------------"
  25. processo2=$(gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -)
  26. if [ "$processo2" ]
  27. then
  28.     echo "[PROCESSO gpg EXPORT KEY SERVER]:: OK"
  29. else
  30.     echo "[PROCESSO gpg ADICIONAR KEY SERVER]:: ERROR"
  31.     exit
  32. fi
  33. echo "---------------------------------------------------------------"
  34. processo3=$(apt-get update)
  35. if [ "$processo3" ]
  36. then
  37.     echo "[PROCESSO UPDATE]:: OK"
  38. else
  39.     echo "[PROCESSO UPDATE]:: ERROR"
  40.     exit
  41. fi
  42. echo "---------------------------------------------------------------"
  43. processo4=$(apt-get install deb.torproject.org-keyring)
  44. if [ "$processo4" ]
  45. then
  46.     echo "[PROCESSO INSTALL DEB TOR]:: OK"
  47. else
  48.     echo "[PROCESSO INSTALL DEB TOR]:: ERROR"
  49.     exit
  50. fi
  51. echo "---------------------------------------------------------------"
  52. processo5=$(apt-get install tor)
  53. if [ "$processo5" ]
  54. then
  55.     echo "[PROCESSO INSTALL TOR]:: OK"
  56. else
  57.     echo "[PROCESSO INSTALL TOR]:: ERROR"
  58.     exit
  59. fi
  60. echo "---------------------------------------------------------------"
  61.  
  62. processo6=$(service tor status)
  63. if [ "$processo6" ]
  64. then
  65.     echo "[PROCESSO CONCLUIDO COM SUCESSO]:: OK $processo6"
  66. else
  67.     echo "[PROCESSO INSTALL TOR]:: ERROR"
  68.     exit
  69. fi
  70.  
  71. else
  72. echo "[!]Defina a distribuição linux usada."
  73. exit   
  74. fi
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×