mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-17 04:36:57 +00:00
wip doc
This commit is contained in:
parent
6dd04a41f3
commit
b9b3b9f4bd
2 changed files with 19 additions and 5 deletions
16
README.md
16
README.md
|
@ -109,8 +109,22 @@ SocksPort 127.0.0.1:9050
|
||||||
```
|
```
|
||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
Run scripts/lantern.py to confirm your own instance name
|
Run scripts/lantern.py for the first time to confirm your own instance name
|
||||||
```sh
|
```sh
|
||||||
|
[ Wonderland ] [ /dev/pts/20 ] [/srv/darknet-lantern]
|
||||||
|
→ python3 scripts/lantern.py
|
||||||
|
[+] Instance Path doesn't exist yet
|
||||||
|
What is your Instance domain ? (ex: uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion): lantern.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion
|
||||||
|
|
||||||
|
[+] Instance Name: lantern.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion True
|
||||||
|
|
||||||
|
lantern.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion
|
||||||
|
Is this your this your instance domain ? (y/n)y
|
||||||
|
OK writing the instance url to ~/.darknet_participants_url
|
||||||
|
[+] file written, let's read it
|
||||||
|
lantern.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion
|
||||||
|
[+] Initial Setup Completed!
|
||||||
|
[+] file exists, your Webring URL is lantern.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
# check if ~/.darknet_participant_url exists,
|
# check if ~/.darknet_participant_url exists,
|
||||||
# if exists, instance= the content of ~/.darknet_participant_url (which is the url: such as uptime.nowherejez...onion)
|
# if exists, instance= the content of ~/.darknet_participant_url (which is the url: such as lantern.nowherejez...onion)
|
||||||
isitvalid="n"
|
isitvalid="n"
|
||||||
while isitvalid != "y":
|
while isitvalid != "y":
|
||||||
if os.path.isfile(urlpath):
|
if os.path.isfile(urlpath):
|
||||||
|
@ -32,7 +32,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
print("[+] Instance Path doesn't exist yet")
|
print("[+] Instance Path doesn't exist yet")
|
||||||
# and ask for the instance URL domain
|
# and ask for the instance URL domain
|
||||||
instance = input("What is your Instance domain ? (ex: uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion):")
|
instance = input("What is your Instance domain ? (ex: lantern.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion): ")
|
||||||
instancepath=rootpath+'www/participants/'+instance
|
instancepath=rootpath+'www/participants/'+instance
|
||||||
# check if the instance URL domain is valid
|
# check if the instance URL domain is valid
|
||||||
if IsOnionValid(instance):
|
if IsOnionValid(instance):
|
||||||
|
@ -45,7 +45,7 @@ def main():
|
||||||
# ask the user if the instance URL is valid ?
|
# ask the user if the instance URL is valid ?
|
||||||
print()
|
print()
|
||||||
print(instance)
|
print(instance)
|
||||||
isitvalid=input("Is this your this your instance domain ? (y/n)")
|
isitvalid=input("Is this your this your instance domain ? (y/n) ")
|
||||||
# if yes, then write it into ~/.darknet_participant_url
|
# if yes, then write it into ~/.darknet_participant_url
|
||||||
if isitvalid == "y" :
|
if isitvalid == "y" :
|
||||||
print("OK writing the instance url to ~/.darknet_participants_url")
|
print("OK writing the instance url to ~/.darknet_participants_url")
|
||||||
|
@ -455,7 +455,7 @@ Maintenance:
|
||||||
webring_participant_url = ''
|
webring_participant_url = ''
|
||||||
while(IsOnionValid(webring_participant_url) is not True):
|
while(IsOnionValid(webring_participant_url) is not True):
|
||||||
# ask for the url to the other webring participant and check if the (onion only) url is valid or not:
|
# ask for the url to the other webring participant and check if the (onion only) url is valid or not:
|
||||||
webring_participant_url = input("What is the onion domain of the new webring participant? (ex: uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion) ")
|
webring_participant_url = input("What is the onion domain of the new webring participant? (ex: lantern.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion) ")
|
||||||
# check if the directory exists locally or not,
|
# check if the directory exists locally or not,
|
||||||
participantdir=rootpath+'www/participants/'+webring_participant_url
|
participantdir=rootpath+'www/participants/'+webring_participant_url
|
||||||
if not os.path.isdir(participantdir): # to test on your own instance
|
if not os.path.isdir(participantdir): # to test on your own instance
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue