diff --git a/README.md b/README.md index f81d5c5..cd2644a 100644 --- a/README.md +++ b/README.md @@ -109,8 +109,22 @@ SocksPort 127.0.0.1:9050 ``` ### 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 +[ 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 ``` diff --git a/scripts/lantern.py b/scripts/lantern.py index 71b2232..3101cae 100644 --- a/scripts/lantern.py +++ b/scripts/lantern.py @@ -15,7 +15,7 @@ def main(): # 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" while isitvalid != "y": if os.path.isfile(urlpath): @@ -32,7 +32,7 @@ def main(): else: print("[+] Instance Path doesn't exist yet") # 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 # check if the instance URL domain is valid if IsOnionValid(instance): @@ -45,7 +45,7 @@ def main(): # ask the user if the instance URL is valid ? print() 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 isitvalid == "y" : print("OK writing the instance url to ~/.darknet_participants_url") @@ -455,7 +455,7 @@ Maintenance: webring_participant_url = '' 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: - 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, participantdir=rootpath+'www/participants/'+webring_participant_url if not os.path.isdir(participantdir): # to test on your own instance