Skip to content

Commit d500881

Browse files
committed
πŸš€ Released TorMorph πŸ”„
Released an advanced tool leveraging the Tor project to enhance online privacy with seamless IP address rotation. This release includes installation instructions, usage guidelines, and browser/PC configuration details for enhanced anonymity. For further details and updates, visit: [Ninja Hackerz Kurdish](http://facebook.com/ninja.hackerz.kurdish/) πŸ“ License: MIT License πŸ”— Repository: [TorMorph](https://github.com/Dev-Yoko/TorMorph) πŸ‘€ Modified by: [Dev](https://github.com/Dev-Yoko) πŸ›‘οΈ Let's protect online privacy together!
1 parent 01dae9a commit d500881

File tree

2 files changed

+52
-33
lines changed

2 files changed

+52
-33
lines changed

β€ŽautoTOR.pyβ€Ž

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,50 @@
44
import os
55
import subprocess
66

7+
78
def install_package(package_name):
89
try:
9-
check_package = subprocess.check_output(f'dpkg -s {package_name}', shell=True)
10-
if str('install ok installed') in str(check_package):
10+
check_package = subprocess.check_output(f"dpkg -s {package_name}", shell=True)
11+
if str("install ok installed") in str(check_package):
1112
pass
1213
except subprocess.CalledProcessError:
13-
print(f'[+] {package_name} not installed')
14-
subprocess.check_output('sudo apt update',shell=True)
15-
subprocess.check_output(f'sudo apt install {package_name} -y', shell=True)
16-
print(f'[!] {package_name} installed succesfully')
14+
print(f"[+] {package_name} not installed")
15+
subprocess.check_output("sudo apt update", shell=True)
16+
subprocess.check_output(f"sudo apt install {package_name} -y", shell=True)
17+
print(f"[!] {package_name} installed succesfully")
18+
1719

1820
def install_python_package(package_name):
1921
try:
2022
import package_name
2123
except Exception:
22-
print(f'[+] python3 {package_name} is not installed')
23-
os.system(f'pip3 install {package_name}')
24-
print(f'[!] python3 {package_name} is installed ')
24+
print(f"[+] python3 {package_name} is not installed")
25+
os.system(f"pip3 install {package_name}")
26+
print(f"[!] python3 {package_name} is installed ")
27+
2528

2629
def ma_ip():
27-
url='https://www.myexternalip.com/raw'
28-
get_ip= requests.get(url,proxies=dict(http='socks5://127.0.0.1:9050',https='socks5://127.0.0.1:9050'))
30+
url = "https://www.myexternalip.com/raw"
31+
get_ip = requests.get(
32+
url,
33+
proxies=dict(http="socks5://127.0.0.1:9050", https="socks5://127.0.0.1:9050"),
34+
)
2935
return get_ip.text
3036

37+
3138
def change():
3239
os.system("service tor reload")
33-
print ('[+] Your IP has been Changed to : '+str(ma_ip()))
40+
print("[+] Your IP has been Changed to : " + str(ma_ip()))
41+
3442

3543
def main():
36-
install_package('python3-pip')
37-
install_python_package('requests')
38-
install_package('tor')
44+
install_package("python3-pip")
45+
install_python_package("requests")
46+
install_package("tor")
3947

4048
os.system("clear")
41-
print('''\033[1;32;40m \n
49+
print(
50+
"""\033[1;32;40m \n
4251
_ _______
4352
/\ | | |__ __|
4453
/ \ _ _| |_ ___ | | ___ _ __
@@ -47,27 +56,31 @@ def main():
4756
/_/ \_\__,_|\__\___/ |_|\___/|_|
4857
V 2.1
4958
from mrFD
50-
''')
59+
"""
60+
)
5161
print("\033[1;40;31m http://facebook.com/ninja.hackerz.kurdish/\n")
5262

5363
os.system("service tor start")
5464
time.sleep(3)
5565
print("\033[1;32;40m change your SOCKES to 127.0.0.1:9050 \n")
5666
os.system("service tor start")
5767
x = input("[+] time to change Ip in Sec [type=60] >> ")
58-
lin = input("[+] how many time do you want to change your ip [type=1000]for infinte ip change type [0] >>")
59-
if int(lin) ==int(0):
68+
lin = input(
69+
"[+] how many time do you want to change your ip [type=1000]for infinte ip change type [0] >>"
70+
)
71+
if int(lin) == int(0):
6072
while True:
6173
try:
6274
time.sleep(int(x))
6375
change()
6476
except KeyboardInterrupt:
65-
print('\nauto tor is closed ')
77+
print("\nauto tor is closed ")
6678
quit()
6779
else:
6880
for i in range(int(lin)):
6981
time.sleep(int(x))
70-
change()
82+
change()
83+
7184

7285
if __name__ == "__main__":
7386
main()

β€Žinstall.pyβ€Ž

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,35 @@
11
import os
22

3+
34
def install():
4-
os.system('chmod 777 autoTOR.py')
5-
os.system('mkdir /usr/share/aut')
6-
os.system('cp autoTOR.py /usr/share/aut/autoTOR.py')
5+
os.system("chmod 777 autoTOR.py")
6+
os.system("mkdir /usr/share/aut")
7+
os.system("cp autoTOR.py /usr/share/aut/autoTOR.py")
78

89
cmnd = '#! /bin/sh \n exec python3 /usr/share/aut/autoTOR.py "$@"'
9-
with open('/usr/bin/aut', 'w') as file:
10+
with open("/usr/bin/aut", "w") as file:
1011
file.write(cmnd)
11-
os.system('chmod +x /usr/bin/aut & chmod +x /usr/share/aut/autoTOR.py')
12-
print('\n\nCongratulations, auto Tor IP Changer is installed successfully. From now just type "aut" in terminal.')
12+
os.system("chmod +x /usr/bin/aut & chmod +x /usr/share/aut/autoTOR.py")
13+
print(
14+
'\n\nCongratulations, auto Tor IP Changer is installed successfully. From now just type "aut" in terminal.'
15+
)
16+
1317

1418
def uninstall():
15-
os.system('rm -r /usr/share/aut')
16-
os.system('rm /usr/bin/aut')
17-
print('[!] Now Auto Tor IP changer has been removed successfully.')
19+
os.system("rm -r /usr/share/aut")
20+
os.system("rm /usr/bin/aut")
21+
print("[!] Now Auto Tor IP changer has been removed successfully.")
22+
1823

1924
def main():
20-
choice = input('[+] To install press (Y), to uninstall press (N) >> ')
21-
if str(choice).lower() == 'y':
25+
choice = input("[+] To install press (Y), to uninstall press (N) >> ")
26+
if str(choice).lower() == "y":
2227
install()
23-
elif str(choice).lower() == 'n':
28+
elif str(choice).lower() == "n":
2429
uninstall()
2530
else:
2631
print("Invalid choice. Please enter 'Y' for install or 'N' for uninstall.")
2732

33+
2834
if __name__ == "__main__":
2935
main()

0 commit comments

Comments
Β (0)