Added option 1 in lantern.py

This commit is contained in:
SovereigntyIsNotFreedom 2025-04-13 13:43:08 +01:00
parent 412a36e66d
commit 9158e265fe
3 changed files with 38 additions and 5 deletions

View file

@ -1197,7 +1197,43 @@ Maintenance:
csvdf.to_csv(csvfilepath, index=False)
#read=input("Continue?")
break
case 11:
category = "EXTERNAL USER"
sensitive = "YES"
try:
print_colors("[+] LISTING ALL LINK INSIDE SUBMISSION")
print_colors("1) MOVE TO VERIFIED 2) MOVE TO UNVERIFIED 3) DELETE FROM LIST 0) EXIT")
option = int(input("ENTER AN OPTION: "))
# can't use instance variable because it will go inside www
submission_csv_file = "../submissions/submission.csv"
verified_csv_df = pd.read_csv(verifiedcsvfile)
match option:
case 1:
submission_df = pd.read_csv(submission_csv_file)
print_colors(submission_df)
try:
indx = int(input("Which index do you want to add? "))
link = submission_df.iloc[indx]['link']
name = submission_df.iloc[indx]['name']
desc = submission_df.iloc[indx]['desc']
# new_row = [instance,category,name,link,sensitive,desc,'YES','100']
new_row = pd.DataFrame({'Instance': [instance], 'Category': [category], 'Name':[name],'URL':[link],'Sensitive':[sensitive],'Description':[desc],'Status':['YES'],'Score':['100']})
df = pd.concat([verified_csv_df, new_row], ignore_index=True)
df.to_csv(verifiedcsvfile, index=False)
except Exception as e:
print(e)
print_colors("Try again", is_error=True)
break
except Exception as e:
print(e)
break
break
case 0:
print_colors(f"[-] Exiting", bold=True)
break