mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
Added option 1 in lantern.py
This commit is contained in:
parent
412a36e66d
commit
9158e265fe
3 changed files with 38 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue