forked from FDX100/Auto_Tor_IP_changer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.py
18 lines (16 loc) · 778 Bytes
/
install.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os
choice = input('[+] to install press (Y) to uninstall press (N) >> ')
run = os.system
if str(choice) =='Y' or str(choice)=='y':
run('chmod 777 autoTOR.py')
run('mkdir /usr/share/aut')
run('cp autoTOR.py /usr/share/aut/autoTOR.py')
cmnd=(' #! /bin/sh \n exec python3 /usr/share/aut/autoTOR.py "$@"')
with open('/usr/bin/aut','w')as file:
file.write(cmnd)
run('chmod +x /usr/bin/aut & chmod +x /usr/share/aut/autoTOR.py')
print('''\n\ncongratulation auto Tor Ip Changer is installed successfully \nfrom now just type \x1b[6;30;42maut\x1b[0m in terminal ''')
if str(choice)=='N' or str(choice)=='n':
run('rm -r /usr/share/aut ')
run('rm /usr/bin/aut ')
print('[!] now Auto Tor Ip changer has been removed successfully')