mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
Implemented suggested fixes
Submit.php doesn't redirect you to index.php. It's now easier to perform actions with option 11 in lantern.py
This commit is contained in:
parent
9321804658
commit
6988a93a27
3 changed files with 46 additions and 34 deletions
|
@ -179,6 +179,7 @@ Managing Wordlists:
|
|||
Maintenance:
|
||||
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)
|
||||
11) Review submissions and add to verified, unverfied csv files or delete them
|
||||
|
||||
0) Exit
|
||||
""")
|
||||
|
@ -1207,11 +1208,13 @@ Maintenance:
|
|||
submission_df = pd.read_csv(submission_csv_file)
|
||||
verified_csv_df = pd.read_csv(verifiedcsvfile)
|
||||
unverified_csv_df = pd.read_csv(unverifiedcsvfile)
|
||||
|
||||
match option:
|
||||
case 1:
|
||||
while len(submission_df) != 0:
|
||||
print_colors(submission_df)
|
||||
|
||||
indx = int(input("Which index do you want to add? "))
|
||||
indx = int(input("Which index do you want to add? -1 to exit: "))
|
||||
if indx == -1: break
|
||||
link = submission_df.iloc[indx]['link'].strip()
|
||||
name = submission_df.iloc[indx]['name'].strip()
|
||||
desc = submission_df.iloc[indx]['desc'].strip()
|
||||
|
@ -1223,31 +1226,41 @@ Maintenance:
|
|||
|
||||
df = pd.concat([verified_csv_df, new_row], ignore_index=True)
|
||||
df.to_csv(verifiedcsvfile, index=False)
|
||||
submission_df.drop(index=indx, inplace=True)
|
||||
submission_df.to_csv(submission_csv_file, index=False)
|
||||
|
||||
|
||||
|
||||
case 2:
|
||||
while len(submission_df)!=0:
|
||||
print_colors(submission_df)
|
||||
|
||||
indx = int(input("Which index do you want to add? "))
|
||||
indx = int(input("Which index do you want to add? -1 to exit: "))
|
||||
if indx == -1: break
|
||||
link = submission_df.iloc[indx]['link'].strip()
|
||||
name = submission_df.iloc[indx]['name'].strip()
|
||||
desc = submission_df.iloc[indx]['desc'].strip()
|
||||
category = submission_df.iloc[indx]['category'].strip()
|
||||
sensitive = "YES" if submission_df.iloc[indx]['sensitive'].strip() == 'y' else "NO"
|
||||
|
||||
new_row = pd.DataFrame({'Instance': [instance], 'Category': [category], 'Name':[name],'URL':[link],'Sensitive':[sensitive],'Description':[desc],'Status':['YES'],'Score':['100']})
|
||||
|
||||
df = pd.concat([unverified_csv_df, new_row], ignore_index=True)
|
||||
df.to_csv(unverifiedcsvfile, index=False)
|
||||
|
||||
submission_df.drop(index=indx,inplace=True)
|
||||
submission_df.to_csv(submission_csv_file, index=False)
|
||||
|
||||
case 3:
|
||||
while len(submission_df) != 0:
|
||||
print_colors(submission_df)
|
||||
choose = int(input("Enter which row should be removed: "))
|
||||
submission_df.drop(index=choose, inplace=True)
|
||||
submission_df.to_csv(submission_csv_file)
|
||||
print_colors(submission_df)
|
||||
|
||||
indx = int(input("Enter which row should be removed(-2 for all, -1 to exit): "))
|
||||
if indx == -1:
|
||||
break
|
||||
elif indx == -2:
|
||||
for i in range(0, len(submission_df)):
|
||||
submission_df.drop(index=i, inplace=True)
|
||||
submission_df.to_csv(submission_csv_file, index=False)
|
||||
else:
|
||||
submission_df.drop(index=indx, inplace=True)
|
||||
submission_df.to_csv(submission_csv_file, index=False)
|
||||
|
||||
case 0:
|
||||
break
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
link,name,desc,category,sensitive
|
||||
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,"Nihilist Git repo","GIt repo","Git Repo",n
|
||||
|
|
|
|
@ -34,7 +34,7 @@ if (isset($_POST['submit'])){
|
|||
// Handle error opening the file
|
||||
errorlog("Error opening the file.");
|
||||
}
|
||||
header("Location: index.php");
|
||||
echo "Link Successfully Submitted";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue