How to check if a .onion is alive or dead (with Hidden Service Descriptors)
discuss.privacyguides.net·17h
Flag this post

This can be done by querying the “Hidden Service Descriptor”.

By default, Onion Services publish a “Hidden Service Descriptor” to the Tor network’s distributed Hidden Service Directory (HDir) every 3 hours.

The Hidden Service Descriptor returned by the HDir contains the metadata necessary for a client to connect to the Onion Service.

If a given Onion Service’s Hidden Service Descriptor cannot be found, then the Onion Service is likely dead.

Script

Here’s a simple python script that queries the HDir for a list of onions

from stem.control import Controller
from stem.descriptor.hidden_service import HiddenServiceDescriptorV3

onions = ['2n3tvi...

Similar Posts

Loading similar posts...