Updated with correct GitHub email

This commit is contained in:
5t4l1n
2025-05-09 23:53:05 +05:30
parent 27b811f3cb
commit 8d9f1c9182
2 changed files with 251 additions and 35 deletions
Regular → Executable
+47 -35
View File
@@ -4,39 +4,54 @@ import time
import os
import subprocess
try:
import requests
except Exception:
print('[+] python3 requests is not installed')
os.system('pip3 install requests')
os.system('pip3 install requests[socks]')
os.system('pip3 install requests requests[socks]')
print('[!] python3 requests is installed ')
try:
try:
from stem import Signal
from stem.control import Controller
except ImportError:
print('[+] python3 stem is not installed')
os.system('pip3 install stem')
from stem import Signal
from stem.control import Controller
try:
check_tor = subprocess.check_output('which tor', shell=True)
except subprocess.CalledProcessError:
print('[+] tor is not installed !')
subprocess.check_output('sudo apt update',shell=True)
subprocess.check_output('sudo apt install tor -y',shell=True)
print('[!] Nex tor is installed succesfully ')
subprocess.check_output('sudo apt update', shell=True)
subprocess.check_output('sudo apt install tor -y', shell=True)
print('[!] Tor installed successfully')
os.system("clear")
def new_tor_identity():
try:
with Controller.from_port(port=9051) as controller:
controller.authenticate() # Uses default cookie auth
controller.signal(Signal.NEWNYM)
print('[*] Requested new identity from Tor')
except Exception as e:
print(f"[!] Failed to request new identity: {e}")
def ma_ip():
url='http://checkip.amazonaws.com'
get_ip= requests.get(url,proxies=dict(http='socks5://127.0.0.1:9050',https='socks5://127.0.0.1:9050'))
return get_ip.text
url = 'http://checkip.amazonaws.com'
proxies = {
'http': 'socks5h://127.0.0.1:9050',
'https': 'socks5h://127.0.0.1:9050'
}
get_ip = requests.get(url, proxies=proxies, timeout=10)
return get_ip.text.strip()
def change():
os.system("service tor reload")
print ('[+] Your IP has been Changed to : '+str(ma_ip()))
new_tor_identity()
time.sleep(5) # Allow Tor to build a new circuit
print('[+] Your IP has been changed to:', ma_ip())
print('''\033[1;32;40m \n
_ _ _____
@@ -44,41 +59,38 @@ print('''\033[1;32;40m \n
| \| |/ _ \ \/ / | |/ _ \| '__|
| |\ | __/> < | | (_) | |
|_| \_|\___/_/\_\ |_|\___/|_|
1.1
''')
print("\033[1;40;31m https:github.com/Stalin-143\n")
print("\033[1;40;31m https://github.com/Stalin-143\n")
print("Nexulean")
os.system("service tor start")
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("[+] Set Time to change Ip in Sec [type=60] >> ")
lin = input("[+] How many times do you want to change your IP? enter 0 to infinite IP change] >> ") or "0"
print("\033[1;32;40m Change your SOCKS to 127.0.0.1:9050 \n")
x = input("[+] Set time to change IP in seconds [default=60] >> ") or "60"
lin = input("[+] How many times do you want to change your IP? [0 = infinite] >> ") or "0"
try:
x = int(x)
lin = int(lin)
if lin == 0:
print("Starting infinite IP change. Press Ctrl+C to stop.")
while True:
try:
time.sleep(int(x))
change()
change()
time.sleep(x)
except KeyboardInterrupt:
print('\n IP changer is closed.')
print('\n[+] IP changer stopped.')
break
else:
for _ in range(lin):
time.sleep(int(x))
change()
change()
time.sleep(x)
except ValueError:
print("Invalid input. Please enter a valid number.")
print("Invalid input. Please enter valid numbers.")