This script is designed to check the availability of onion domains. It generates random domain names, checks if they exist, and saves the results to a text file. The script also includes a check to see if the result.txt file already exists, and if it does, it deletes it before writing to it.
- Python 3.6 or higher
- The
dns.resolver,string,random,concurrent.futures,os,requests,stem, andstem.controlPython libraries - A running instance of TOR with the control port set to 9051
- Make sure you have Python 3.6 or higher installed on your machine.
- Install the required Python libraries by running
pip install dnspython requests stemin your terminal. - Make sure you have a running instance of TOR with the control port set to 9051.
- Save the script to a file, for example
check_domains.py. - Run the script by executing
python check_domains.pyin your terminal.
The script works as follows:
- It generates a list of random domain names.
- It checks each domain to see if it exists.
- It saves the results to a text file named
result.txt. - If the
result.txtfile already exists, it deletes it before writing to it. - It uses the TOR network to check the availability of the domains.
The script outputs a text file named result.txt in the same directory as the script. Each line in the file corresponds to a domain that was checked, and indicates whether the domain was available or not.