From 064e79140703a4ae2f449ada6919eaeb5f9bd71f Mon Sep 17 00:00:00 2001 From: root Date: Sun, 12 Jan 2025 18:24:55 +0100 Subject: [PATCH] fix numbers of options --- scripts/darknet_exploration.py | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/scripts/darknet_exploration.py b/scripts/darknet_exploration.py index d3a079c..4bcc19f 100644 --- a/scripts/darknet_exploration.py +++ b/scripts/darknet_exploration.py @@ -103,12 +103,12 @@ Managing Webring Participants: 6) Trust/UnTrust/Blacklist a webring participant (Potentially dangerous) Managing Wordlists: - 8) Add/Remove words or links in the sensitive list (ex: drug) - 9) Add/Remove words or links in the blacklist (ex: porn) + 7) Add/Remove words or links in the sensitive list (ex: drug) + 8) Add/Remove words or links in the blacklist (ex: porn) Maintenance: -10) remove the duplicate URLs -11) perform sanity checks on all csv files (to mark them as sensitive / or remove the ones that are blacklisted) +9) remove the duplicate URLs for your own instance +10) perform sanity checks on all csv files for all instances (to mark them as sensitive / or remove the ones that are blacklisted) 0) Exit """) @@ -646,13 +646,16 @@ Maintenance: ################### MANAGING WORDLISTS ################# -#Wordlists: -# 8) Add/Remove words in the sensitive list (ex: drug) -# 9) Add/Remove words in the blacklist (ex: porn) -# 0) Exit +#Managing Wordlists: +# 7) Add/Remove words or links in the sensitive list (ex: drug) +# 8) Add/Remove words or links in the blacklist (ex: porn) + +#Maintenance: +#9) remove the duplicate URLs for your own instance +#10) perform sanity checks on all csv files (all instances) (to mark them as sensitive / or remove the ones that are blacklisted) ######################################################### - case "8": + case "7": print("[+] Add/Remove words in the sensitive list (ex: drug)") print("do you want to 1) add words or 2) remove words ?") option="0" @@ -682,7 +685,7 @@ Maintenance: # TODO if valid! remove word at index # TODO if invalid! just pass to ask for another word - case "9": + case "8": print("[+] Add/Remove words in the blacklist list (ex: porn)") option="0" @@ -711,9 +714,9 @@ Maintenance: # TODO if valid! remove word at index # TODO if invalid! just pass to ask for another word - # TODO CASE 10 : cleanup all duplicates in unverified + verified.csv, based on the url (check if each url appears more than once, and if they do, remove them + write to csv file) - case "10": - print("[+] Cleaning up all duplicates in your own unverified + verified.csv (based on the url)") + # TODO CASE 9 : cleanup all duplicates in unverified + verified.csv, based on the url (check if each url appears more than once, and if they do, remove them + write to csv file) + case "9": + print("[+] 9) Cleaning up all duplicates in your own unverified + verified.csv (based on the url)") # TODO for unverified.csv, and verified.csv # TODO iterate through each row of the csv file # TODO get the index of that row (save it as indextocheck), and the url in that row @@ -722,8 +725,8 @@ Maintenance: # ignore it if the index is "indextocheck" and if the index is already listed in rows2delete # else: add the index to "rows2delete" # go drop the rows by their index listed in "rows2delete" - case "11": - print("11) perform sanity checks on all csv files (to mark them as sensitive / or remove the ones that are blacklisted)") + case "10": + print("[+] 10) perform sanity checks on all csv files (to mark them as sensitive / or remove the ones that are blacklisted)") # TODO find the list of all csv files (in www/participants/*/*.csv) (templates should remain empty by default) # copy what was done in option 4, to : # delete the ones that have invalid entries