Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "---------------------------------------------------------------"
- echo "INSTALADOR TOR (Debian or Ubuntu):::"
- echo "[+][INFO]:: https://www.torproject.org/docs/debian.html.en"
- echo "---------------------------------------------------------------"
- cat /etc/[A-Za-z]*[_-][rv]e[lr]*
- echo "---------------------------------------------------------------"
- echo "[+]QUAL SUA DISTRO LINUX ?"
- echo "---------------------------------------------------------------"
- read distro;
- if ["$distro" ]
- then
- echo "deb http://deb.torproject.org/torproject.org $distro main" >> /etc/apt/sources.list
- echo "[+] Repositório adicionado sources.list"
- processo1=$(gpg --keyserver keys.gnupg.net --recv 886DDD89)
- if [ "$processo1" ]
- then
- echo "[PROCESSO gpg ADICIONAR KEY SERVER]:: OK"
- else
- echo "[PROCESSO gpg ADICIONAR KEY SERVER]:: ERROR"
- exit
- fi
- echo "---------------------------------------------------------------"
- processo2=$(gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -)
- if [ "$processo2" ]
- then
- echo "[PROCESSO gpg EXPORT KEY SERVER]:: OK"
- else
- echo "[PROCESSO gpg ADICIONAR KEY SERVER]:: ERROR"
- exit
- fi
- echo "---------------------------------------------------------------"
- processo3=$(apt-get update)
- if [ "$processo3" ]
- then
- echo "[PROCESSO UPDATE]:: OK"
- else
- echo "[PROCESSO UPDATE]:: ERROR"
- exit
- fi
- echo "---------------------------------------------------------------"
- processo4=$(apt-get install deb.torproject.org-keyring)
- if [ "$processo4" ]
- then
- echo "[PROCESSO INSTALL DEB TOR]:: OK"
- else
- echo "[PROCESSO INSTALL DEB TOR]:: ERROR"
- exit
- fi
- echo "---------------------------------------------------------------"
- processo5=$(apt-get install tor)
- if [ "$processo5" ]
- then
- echo "[PROCESSO INSTALL TOR]:: OK"
- else
- echo "[PROCESSO INSTALL TOR]:: ERROR"
- exit
- fi
- echo "---------------------------------------------------------------"
- processo6=$(service tor status)
- if [ "$processo6" ]
- then
- echo "[PROCESSO CONCLUIDO COM SUCESSO]:: OK $processo6"
- else
- echo "[PROCESSO INSTALL TOR]:: ERROR"
- exit
- fi
- else
- echo "[!]Defina a distribuição linux usada."
- exit
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement