Using pyentrypoint

This commit is contained in:
Christophe Mehay 2016-03-07 03:43:12 +01:00
parent 7f16f43cdf
commit ccfdb851cc
8 changed files with 59 additions and 93 deletions

13
assets/display_onions.py Normal file
View file

@ -0,0 +1,13 @@
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()
))