This commit is contained in:
2026-05-21 01:45:07 +05:30
parent 306a16c88a
commit 8e8dc38d8c
15 changed files with 7 additions and 2869 deletions
+4 -4
View File
@@ -22,11 +22,11 @@ except Exception:
# Check if Tor is installed
try:
check_tor = subprocess.check_output('which tor', shell=True)
except subprocess.CalledProcessError:
check_tor = subprocess.check_output(['/usr/bin/tor', '--version'], stderr=subprocess.DEVNULL)
except (subprocess.CalledProcessError, FileNotFoundError):
print('[+] tor is not installed!')
subprocess.check_output('sudo apt update', shell=True)
subprocess.check_output('sudo apt install tor -y', shell=True)
subprocess.check_output(['/usr/bin/sudo', '/usr/bin/apt', 'update'])
subprocess.check_output(['/usr/bin/sudo', '/usr/bin/apt', 'install', 'tor', '-y'])
print('[!] Tor is installed successfully')
os.system("clear")