Anyone have a script to automatically check if onion / clearnet sites are up.
by earflaps - Wednesday July 24, 2024 at 01:45 AM
#1
As the title says, anyone have a script or insights they could give me onto automatically checking if sites are up or not? Ty ty
Tongue
Reply
#2
You can use this as a reference to update as you need: https://raidforums.su/Thread-Preventing-...s-With-Tor
Reply
#3
(07-24-2024, 01:48 AM)AFS_Nemesis Wrote: You can use this as a reference to update as you need: https://raidforums.su/Thread-Preventing-...s-With-Tor

O appreciate it <3
Tongue
Reply
#4
(07-24-2024, 01:50 AM)Cas Wrote: i found this
import requests from stem import Signal from stem.control import Controller import time import argparse def check_clearnet_site(url):     try:         response = requests.get(url, timeout=10)         return response.status_code == 200     except requests.RequestException as e:         print(f"Error accessing {url}: {e}")         return False def renew_tor_identity():     with Controller.from_port(port=9051) as controller:         controller.authenticate(password='YOUR_TOR_PASSWORD')  # Set this to your Tor control password         controller.signal(Signal.NEWNYM)         time.sleep(controller.get_newnym_wait()) # Function to check if an onion site is up def check_onion_site(url):     session = requests.session()     session.proxies = {         'http': 'socks5h://localhost:9050',         'https': 'socks5h://localhost:9050'     }     try:         response = session.get(url, timeout=30)         return response.status_code == 200     except requests.RequestException as e:         print(f"Error accessing {url}: {e}")         return False # Main function to check a list of sites def main(urls):     for url in urls:         if url.endswith('.onion'):             renew_tor_identity()             if check_onion_site(url):                 print(f'Onion site {url} is up')             else:                 print(f'Onion site {url} is down')         else:             if check_clearnet_site(url):                 print(f'Clearnet site {url} is up')             else:                 print(f'Clearnet site {url} is down') if __name__ == "__main__":     parser = argparse.ArgumentParser(description="Check if onion/clearnet sites are up.")     parser.add_argument('urls', nargs='*', help='List of URLs to check')     parser.add_argument('--file', type=str, help='File containing a list of URLs to check')     args = parser.parse_args()     urls = args.urls     if args.file:         with open(args.file, 'r') as f:             file_urls = f.read().splitlines()             urls.extend(file_urls)     if not urls:         print("Please provide URLs either as arguments or in a file.")     else:         main(urls)

the Tor control port must be configured and accessible, from the configuration make sure to copy/paste the password into the script.

Tyvm vro                                                .
Tongue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Script To Steal Any TikTok Username bs0d 302 14,688 Yesterday, 12:21 AM
Last Post: saucymel
  [SCRIPT] GOOGLE DORKS GENERATOR Hazura 62 9,693 01-31-2026, 03:47 AM
Last Post: ahmedovic
  [DISCORD] DM All member bot script iCrayTest 0 92 12-24-2025, 05:59 PM
Last Post: iCrayTest
  [FREE] Database Searcher Script the_lich 9 590 04-14-2025, 05:46 AM
Last Post: pawn
  Telegram Account Manager script source stolensol 3 355 04-03-2025, 03:59 PM
Last Post: Swiptt



 Users browsing this thread: