Using pyentrypoint
This commit is contained in:
parent
7f16f43cdf
commit
ccfdb851cc
8 changed files with 59 additions and 93 deletions
13
assets/display_onions.py
Normal file
13
assets/display_onions.py
Normal 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()
|
||||
))
|
||||
Loading…
Add table
Add a link
Reference in a new issue