44import os
55import subprocess
66
7+
78def 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
1820def 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
2629def 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+
3138def 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
3543def 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 (' \n auto tor is closed ' )
77+ print (" \n auto 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
7285if __name__ == "__main__" :
7386 main ()
0 commit comments