mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-04-21 14:29:11 +00:00
14 lines
407 B
Python
14 lines
407 B
Python
|
import os
|
||
|
|
||
|
for root, dirs, _ in os.walk("/var/lib/tor/hidden_service/", topdown=False):
|
||
|
for service in dirs:
|
||
|
filename = "{root}{service}/hostname".format(
|
||
|
service=service,
|
||
|
root=root
|
||
|
)
|
||
|
with open(filename, 'r') as hostfile:
|
||
|
print('{service}: {onion}'.format(
|
||
|
service=service,
|
||
|
onion=hostfile.read()
|
||
|
))
|