|
|
@ -25,6 +25,7 @@ def main():
|
|
|
|
#print(urlpath,instance)
|
|
|
|
#print(urlpath,instance)
|
|
|
|
if IsOnionValid(instance):
|
|
|
|
if IsOnionValid(instance):
|
|
|
|
print("[+] Instance Name:",instance,IsOnionValid(instance))
|
|
|
|
print("[+] Instance Name:",instance,IsOnionValid(instance))
|
|
|
|
|
|
|
|
isitvalid="y"
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
print('[-] Invalid instance name in ~/.darknet_participant_url:', instance)
|
|
|
|
print('[-] Invalid instance name in ~/.darknet_participant_url:', instance)
|
|
|
|
return False
|
|
|
|
return False
|
|
|
@ -68,7 +69,7 @@ def main():
|
|
|
|
os.makedirs(instancepath)
|
|
|
|
os.makedirs(instancepath)
|
|
|
|
# check if all the required csv files exist in it, otherwise copy them from the templates directory
|
|
|
|
# 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.
|
|
|
|
# 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
|
|
|
|
filepath=instancepath+'/'+i
|
|
|
|
if not os.path.isfile(filepath):
|
|
|
|
if not os.path.isfile(filepath):
|
|
|
|
# copy templates/ FILE.CSV to instancepath/ FILE.CSV
|
|
|
|
# copy templates/ FILE.CSV to instancepath/ FILE.CSV
|
|
|
@ -160,6 +161,7 @@ Maintenance:
|
|
|
|
case "2":
|
|
|
|
case "2":
|
|
|
|
print("[+] Trust a Website entry (move an entry from unverified to verified.csv)")
|
|
|
|
print("[+] Trust a Website entry (move an entry from unverified to verified.csv)")
|
|
|
|
# search for a word
|
|
|
|
# search for a word
|
|
|
|
|
|
|
|
print(uvdf[['Name','URL']])
|
|
|
|
name=''
|
|
|
|
name=''
|
|
|
|
while(IsNameValid(name) is not True):
|
|
|
|
while(IsNameValid(name) is not True):
|
|
|
|
name = input("What is the Website name you want to trust ? (ex: Nowhere)")
|
|
|
|
name = input("What is the Website name you want to trust ? (ex: Nowhere)")
|
|
|
@ -195,6 +197,7 @@ Maintenance:
|
|
|
|
|
|
|
|
|
|
|
|
case "3":
|
|
|
|
case "3":
|
|
|
|
print("[+] Untrust a Website entry (move an entry from verified to unverified.csv)")
|
|
|
|
print("[+] Untrust a Website entry (move an entry from verified to unverified.csv)")
|
|
|
|
|
|
|
|
print(vdf[['Name','URL']])
|
|
|
|
# search for a word
|
|
|
|
# search for a word
|
|
|
|
name=''
|
|
|
|
name=''
|
|
|
|
while(IsNameValid(name) is not True):
|
|
|
|
while(IsNameValid(name) is not True):
|
|
|
@ -257,8 +260,8 @@ Maintenance:
|
|
|
|
participantdir=participantsdir+participant
|
|
|
|
participantdir=participantsdir+participant
|
|
|
|
#print(participant)
|
|
|
|
#print(participant)
|
|
|
|
# TODO check if the webring participant is yourself, if it is, then skip it
|
|
|
|
# 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: # prod: dont use your own intance
|
|
|
|
if participant == myinstance: # preprod testing only on your own instance
|
|
|
|
#if participant == myinstance: # preprod testing only on your own instance
|
|
|
|
#print("[+] Webring Participant is valid, adding it if it's not already added.")
|
|
|
|
#print("[+] Webring Participant is valid, adding it if it's not already added.")
|
|
|
|
print('[+] PARTICIPANT=',participant)
|
|
|
|
print('[+] PARTICIPANT=',participant)
|
|
|
|
# check if the participant is already listed in webring-participants.csv or not, and add them if not already listed
|
|
|
|
# check if the participant is already listed in webring-participants.csv or not, and add them if not already listed
|
|
|
|