From 5829f566221be0840bac2789c985cdac189d5850 Mon Sep 17 00:00:00 2001 From: Sa-Te <106857731+Sa-Te@users.noreply.github.com> Date: Thu, 18 Jan 2024 19:42:49 +0530 Subject: [PATCH] Update autoTOR.py some minor code refactoring --- autoTOR.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/autoTOR.py b/autoTOR.py index 2d928d5..8de20f8 100644 --- a/autoTOR.py +++ b/autoTOR.py @@ -67,13 +67,13 @@ def change(): time.sleep(3) print("\033[1;32;40m change your SOCKES to 127.0.0.1:9050 \n") os.system("service tor start") -x = input("[+] time to change Ip in Sec [type=60] >> ") -lin = input("[+] how many time do you want to change your ip [type=1000]for infinte ip change type [0] >>") -if int(lin) ==int(0): +x = int(input("[+] time to change Ip in Sec [type=60] >> ")) +lin = int(input("[+] how many time do you want to change your ip [type=1000]for infinte ip change type [0] >>")) +if lin is not 0: while True: try: - time.sleep(int(x)) + time.sleep(x) change() except KeyboardInterrupt: @@ -81,6 +81,6 @@ def change(): quit() else: - for i in range(int(lin)): - time.sleep(int(x)) + for i in range(lin): + time.sleep(x) change()