updated new instance

This commit is contained in:
root 2025-01-12 15:51:26 +01:00
parent 1915487f50
commit 8c84c3db85
7 changed files with 21 additions and 3 deletions

View file

@ -25,6 +25,7 @@ def main():
#print(urlpath,instance)
if IsOnionValid(instance):
print("[+] Instance Name:",instance,IsOnionValid(instance))
isitvalid="y"
else:
print('[-] Invalid instance name in ~/.darknet_participant_url:', instance)
return False
@ -68,7 +69,7 @@ def main():
os.makedirs(instancepath)
# check if all the required csv files exist in it, otherwise copy them from the templates directory
# NOTE : the templates files are EMPTY by default, this is because i want each peer to manually review lists of links, and links themselves manually, this is to avoid allowing malicious links to slip through without intentional edits from the peer themselves.
for i in ['verified.csv','unverified.csv','blacklist.csv','sensitive.csv','webring-participants.csv']:
for i in ['verified.csv','unverified.csv','blacklist.csv','sensitive.csv','webring-participants.csv','banner.png']:
filepath=instancepath+'/'+i
if not os.path.isfile(filepath):
# copy templates/ FILE.CSV to instancepath/ FILE.CSV
@ -160,6 +161,7 @@ Maintenance:
case "2":
print("[+] Trust a Website entry (move an entry from unverified to verified.csv)")
# search for a word
print(uvdf[['Name','URL']])
name=''
while(IsNameValid(name) is not True):
name = input("What is the Website name you want to trust ? (ex: Nowhere)")
@ -195,6 +197,7 @@ Maintenance:
case "3":
print("[+] Untrust a Website entry (move an entry from verified to unverified.csv)")
print(vdf[['Name','URL']])
# search for a word
name=''
while(IsNameValid(name) is not True):
@ -257,8 +260,8 @@ Maintenance:
participantdir=participantsdir+participant
#print(participant)
# TODO check if the webring participant is yourself, if it is, then skip it
#if participant != myinstance: # prod: dont use your own intance
if participant == myinstance: # preprod testing only on your own instance
if participant != myinstance: # prod: dont use your own intance
#if participant == myinstance: # preprod testing only on your own instance
#print("[+] Webring Participant is valid, adding it if it's not already added.")
print('[+] PARTICIPANT=',participant)
# check if the participant is already listed in webring-participants.csv or not, and add them if not already listed