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,7 +179,8 @@ Managing Wordlists:
|
||||||
Maintenance:
|
Maintenance:
|
||||||
9) Remove the duplicate URLs for your own instance
|
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)
|
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
|
0) Exit
|
||||||
""")
|
""")
|
||||||
option = input("Select an option? (0-11): ").strip()
|
option = input("Select an option? (0-11): ").strip()
|
||||||
|
@ -1207,47 +1208,59 @@ Maintenance:
|
||||||
submission_df = pd.read_csv(submission_csv_file)
|
submission_df = pd.read_csv(submission_csv_file)
|
||||||
verified_csv_df = pd.read_csv(verifiedcsvfile)
|
verified_csv_df = pd.read_csv(verifiedcsvfile)
|
||||||
unverified_csv_df = pd.read_csv(unverifiedcsvfile)
|
unverified_csv_df = pd.read_csv(unverifiedcsvfile)
|
||||||
|
|
||||||
match option:
|
match option:
|
||||||
case 1:
|
case 1:
|
||||||
print_colors(submission_df)
|
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: "))
|
||||||
link = submission_df.iloc[indx]['link'].strip()
|
if indx == -1: break
|
||||||
name = submission_df.iloc[indx]['name'].strip()
|
link = submission_df.iloc[indx]['link'].strip()
|
||||||
desc = submission_df.iloc[indx]['desc'].strip()
|
name = submission_df.iloc[indx]['name'].strip()
|
||||||
category = submission_df.iloc[indx]['category'].strip()
|
desc = submission_df.iloc[indx]['desc'].strip()
|
||||||
sensitive = "YES" if submission_df.iloc[indx]['sensitive'].strip() == 'y' else "NO"
|
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']})
|
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 = pd.concat([verified_csv_df, new_row], ignore_index=True)
|
||||||
df.to_csv(verifiedcsvfile, index=False)
|
df.to_csv(verifiedcsvfile, index=False)
|
||||||
|
submission_df.drop(index=indx, inplace=True)
|
||||||
|
submission_df.to_csv(submission_csv_file, index=False)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
print_colors(submission_df)
|
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: "))
|
||||||
link = submission_df.iloc[indx]['link'].strip()
|
if indx == -1: break
|
||||||
name = submission_df.iloc[indx]['name'].strip()
|
link = submission_df.iloc[indx]['link'].strip()
|
||||||
desc = submission_df.iloc[indx]['desc'].strip()
|
name = submission_df.iloc[indx]['name'].strip()
|
||||||
category = submission_df.iloc[indx]['category'].strip()
|
desc = submission_df.iloc[indx]['desc'].strip()
|
||||||
sensitive = "YES" if submission_df.iloc[indx]['sensitive'].strip() == 'y' else "NO"
|
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']})
|
||||||
|
|
||||||
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)
|
||||||
df = pd.concat([unverified_csv_df, new_row], ignore_index=True)
|
submission_df.drop(index=indx,inplace=True)
|
||||||
df.to_csv(unverifiedcsvfile, index=False)
|
submission_df.to_csv(submission_csv_file, index=False)
|
||||||
|
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
print_colors(submission_df)
|
while len(submission_df) != 0:
|
||||||
choose = int(input("Enter which row should be removed: "))
|
print_colors(submission_df)
|
||||||
submission_df.drop(index=choose, inplace=True)
|
indx = int(input("Enter which row should be removed(-2 for all, -1 to exit): "))
|
||||||
submission_df.to_csv(submission_csv_file)
|
if indx == -1:
|
||||||
print_colors(submission_df)
|
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:
|
case 0:
|
||||||
break
|
break
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
link,name,desc,category,sensitive
|
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
|
// Handle error opening the file
|
||||||
errorlog("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