This commit is contained in:
nihilist 2025-01-02 16:48:58 +01:00
parent 61955f6c67
commit ad084d5201

View file

@ -40,10 +40,12 @@ def main():
print("[+] Welcome to the Darknet Onion Webring, where you are exploring the Darknet and helping others do the same.") print("[+] Welcome to the Darknet Onion Webring, where you are exploring the Darknet and helping others do the same.")
print(""" print("""
1) add a new entry (into unverified.csv) 1) Add a new entry (into unverified.csv)
2) verify an entry (move an entry from unverified to verified.csv) 2) Verify an entry (move an entry from unverified to verified.csv)
3) add a new webring participant (and download their files into their directory (without trusting them yet!)) 3) Add a new webring participant (and download their files into their directory (without trusting them yet!))
4) trust a webring participant (Potentially dangerous) 4) Trust a webring participant (Potentially dangerous)
5) Add/Remove words in the sensitive list (ex: drug)
6) Add/Remove words in the blacklist (ex: porn)
""") """)
option = input("Select Option? (1-4)") option = input("Select Option? (1-4)")
print(option) print(option)
@ -52,13 +54,13 @@ def main():
print("[+] Add a new Entry (into unverified.csv)") print("[+] Add a new Entry (into unverified.csv)")
# ask for the following: # ask for the following:
unverifiedpath=instancepath+'/unverified.csv' unverifiedpath=instancepath+'/unverified.csv'
# the name of the website (required) # the name of the website (required) + check if its valid
entry_name = input("What is the Website name ?") entry_name = input("What is the Website name ?")
# the url of the website (required) # the url of the website (required) + check if its valid
entry_url = input("What is URL of the Website ? (ex: https://torproject.org or http://2gzyxa5ihm7nsggfxnu52rck2vv4rvmdlkiu3zzui5du4xyclen53wid.onion") entry_url = input("What is URL of the Website ? (ex: https://torproject.org or http://2gzyxa5ihm7nsggfxnu52rck2vv4rvmdlkiu3zzui5du4xyclen53wid.onion")
# a quick description (optional) # a quick description (optional) + check if its valid
entry_url = input("(Optional) Description of the website ? (max 256 characters) (press enter to skip)" entry_url = input("(Optional) Description of the website ? (max 256 characters) (press enter to skip)"
# sensitive ? (y/n) # sensitive ? (y/n) + check if its valid
entry_url = input("is it a sensitive website ? (ex: website related to drugs)" entry_url = input("is it a sensitive website ? (ex: website related to drugs)"
# (rest is automatic: status, score, instance is = '' because it is your own instance) # (rest is automatic: status, score, instance is = '' because it is your own instance)
# check if the entry doesn't already exist in verified.csv and in unverified.csv # check if the entry doesn't already exist in verified.csv and in unverified.csv
@ -67,24 +69,56 @@ def main():
case "2": case "2":
print("[+] Verify an entry (move an entry from unverified.csv to verified.csv)") print("[+] Verify an entry (move an entry from unverified.csv to verified.csv)")
# search for a word # search for a word
searchterm = input("What is the Website name ?")
# and display only the matching entries in an array format (display it in CLI). # and display only the matching entries in an array format (display it in CLI).
# Each of the rows must have an index, # Each of the rows must have an index,
# prompt the user to ask for with row they want to move to verified.csv # prompt the user to ask for with row they want to move to verified.csv
searchterm = input("What is the index of the entry that you want to move to verified.csv ?")
# once selected, it must be able to print that row, and: # once selected, it must be able to print that row, and:
# append it into verified.csv # append it into verified.csv
# remove it from unverified.csv # remove it from unverified.csv
# print completed! You are now listing [name] (url) (sensitive). # print("[+] completed! You are now listing [name] (url) (sensitive)")
case "3": case "3":
print("[+] add a new webring participant (and download their files into their directory (without trusting them yet!))") print("[+] Add a new webring participant (and download their files into their directory (without trusting them yet!))")
# ask for the url to the other webring participant # ask for the url to the other webring participant
# check if the url is valid or not: at http://URL.onion/participants/URL.onion/{verified.csv,unverified.csv,sensitive.csv,blacklist.csv,webring-participants.csv} webring_participant_url = input("What is URL of the new webring participant? (ex: https://torproject.org or http://2gzyxa5ihm7nsggfxnu52rck2vv4rvmdlkiu3zzui5du4xyclen53wid.onion")
# check if the (onion only) url is valid or not: at http://URL.onion/participants/URL.onion/{verified.csv,unverified.csv,sensitive.csv,blacklist.csv,webring-participants.csv}
case "4": case "4":
print("[+] trust a webring participant (Potentially dangerous)") print("[+] Trust a webring participant (Potentially dangerous)")
# list the existing webring participants from webring-participants.csv and # list the existing webring participants from webring-participants.csv and
# ask the user to pick the index (0-9?) of the instance to trust # ask the user to pick the index (0-9?) of the instance to trust
# if index is valid, then mark the instance as trusted in webring-participants.csv # if index is valid, then mark the instance as trusted in webring-participants.csv
searchterm = input("What is the index of the entry that you want to trust ?")
case "5":
print("[+] Add/Remove words in the sensitive list (ex: drug)")
# print("do you want to 1) add words or 2) remove words ?")
# while option is not 1 or 2:
# option=input("do you want to 1) add words or 2) remove words ?")
# done = False
# while(done == False):
# display the contents of sensitive.csv file
# if option == 1:
# word=input("which word do you want to add? (write 0 to exit")
# if word = 0
#then done= True to get out of the while loop
# else
#check if word is valid in a while loop (dont check if
# if invalid! remove word at index
#else:
# index=input("which word do you want to remove? (index 0 to (max index) (write exit to exit)")
# if index = exit
#then done= True to get out of the while loop
# else
# check if index is valid or not
# if valid! remove word at index
case "6":
print("[+] Add/Remove words in the blacklist list (ex: porn)")
# copy option 5
# print("do you want to 1) add words or 2) remove words ?")
# display the contents of blacklist.csv file
case _: case _:
print("[-] ERROR, incorrect input") print("[-] ERROR, incorrect input")