mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 12:16:57 +00:00
changes
This commit is contained in:
parent
ca5290d94b
commit
029cd458ee
5 changed files with 113 additions and 20 deletions
|
@ -4,14 +4,15 @@
|
|||
# Main features:
|
||||
DONE:
|
||||
-py : option 6) Trust/Untrust/Blacklist a webring participant
|
||||
-php : make a search engine prompt that only accepts [a-zA-Z.://], it must refuse every other character
|
||||
|
||||
DOING:
|
||||
-php : if valid make it filter your own verified.csv and unverified.csv files
|
||||
-py : option 7) Add/Remove words in the sensitive list (assigned to anon)
|
||||
-py : option 8) Add/Remove words in the blacklist (assigned to anon)
|
||||
|
||||
TODO:
|
||||
-php : make a search engine prompt that only accepts [a-zA-Z.://], it must refuse every other character
|
||||
-php : if valid make it search your own verified.csv and unverified.csv files
|
||||
-py : fix uptimecheck.py to match the new csv format
|
||||
|
||||
# secondary features:
|
||||
-php : interactive search engine ? it displays as you type it ?
|
||||
|
|
|
@ -7,6 +7,51 @@
|
|||
|
||||
|
||||
<?php
|
||||
function DisplayCSVNEW($csvfile) {
|
||||
$row = 1;
|
||||
echo "<center><table>\n\n"; //begin html table formatting
|
||||
if (($handle = fopen($csvfile, "r")) !== FALSE) {
|
||||
|
||||
|
||||
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
|
||||
$num = count($data);
|
||||
//echo "<p>" . $data[1] . "</p>";
|
||||
//echo "<p> $num fields in line $row: <br /></p>\n";
|
||||
$row++;
|
||||
//echo $row;
|
||||
|
||||
|
||||
if ( $row == "2") {
|
||||
echo "<tr><td>Name</td> <td>Score</td> <td></td></tr>";
|
||||
}else{
|
||||
for ($c=0; $c < $num; $c++) {
|
||||
echo "<tr>"; // beging html table row
|
||||
// if the row is the first one (name url status score) only display (Name Status Score):
|
||||
// display the contents of a csv row
|
||||
if ( $c == "1" ){
|
||||
echo "<td>" . '<a href="'; // begin the table cell and a href
|
||||
echo $data[3] . '">'; // display the link
|
||||
echo $data[2] . "</a></td><td>"; // display the link title and close the a href and first cell, open the second cell
|
||||
echo $data[7] . "</td><td>"; // display the status and close the second cell, open the third cell
|
||||
echo $data[6] . "</td> \n"; // display the score and close the third cell
|
||||
}
|
||||
//if ($c == 2){
|
||||
//}
|
||||
}
|
||||
}
|
||||
echo "</tr>"; // end html table row
|
||||
}
|
||||
echo "\n</table></center>";
|
||||
fclose($handle);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function DisplayCSV($csvfile) {
|
||||
$row = 1;
|
||||
echo "<center><table>\n\n"; //begin html table formatting
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
blacklisted-words
|
||||
uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion
|
||||
porn
|
||||
Instance,Category,Name,URL,Sensitive,Description,Status,Score
|
||||
webring.nowhevi57f4lxxd6db43miewcsgtovakbh6v5f52ci7csc2yjzy5rnid.onion,Hackliberty,Hackliberty Gitea,http://vkp7367tcjpqdwwckigrdrvmwvispvbpg5rlsr2chjxvppfg7hipagyd.onion,,,,
|
||||
webring.nowhevi57f4lxxd6db43miewcsgtovakbh6v5f52ci7csc2yjzy5rnid.onion,Communities,Hackliberty main website,http://kj3wvs3wyfhm3uhhuqxlrhhcp6dneuau4mmvptlor27ghmrqx63fqnid.onion/,,,,
|
||||
webring.nowhevi57f4lxxd6db43miewcsgtovakbh6v5f52ci7csc2yjzy5rnid.onion,Forums,Hackliberty Forum,http://yw7nc56v4nsudvwewhmhhwltxpncedfuc43qbubj4nmwhdhwtiu4o6yd.onion/,,,,
|
||||
uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,Tor Taxi,http://tortaxi2dev6xjwbaydqzldruga77rrnth7yn2oqzjfmiuwn5h6vsk2a4syd.onion/,✔️,List of links to go to popular darknet places,✔️,0.0
|
||||
uptime.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion,Infos and Links,Tor Taxi,http://tortaxi2dev6xjwbaydqzla77rrnth7yn2oqzjfmiuwn5h6vsk2a4syd.onion/,,List of links to go to popular darknet places,✔️,100.0
|
||||
|
|
|
59
www/search.php
Normal file
59
www/search.php
Normal file
|
@ -0,0 +1,59 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<body>
|
||||
<head>
|
||||
<title>Darknet Onion Webring</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="style.css">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
</head>
|
||||
|
||||
|
||||
<center>
|
||||
|
||||
<?php
|
||||
require("header.php");
|
||||
?>
|
||||
|
||||
<form action="search.php" method="GET">
|
||||
<input type="text" name="query" />
|
||||
<input type="submit" value="Search" />
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
$query = $_GET['query'];
|
||||
// gets value sent over search form
|
||||
|
||||
$min_length = 3;
|
||||
$max_length = 32;
|
||||
if(strlen($query) >= $min_length and strlen($query) <= $max_length){ // if query length is more or equal minimum length then
|
||||
|
||||
$query = htmlspecialchars($query);
|
||||
// removes the risky characters
|
||||
// there needs to be regex checking, only allow [a-zA-Z0-9.:/]
|
||||
$query=preg_replace("/[^a-zA-Z0-9:\/.\ ]/", "", $query);
|
||||
|
||||
echo "Search results for " . $query . " :";
|
||||
echo nl2br("\n");
|
||||
echo "<p>" . "Instance name: " . $_SERVER['SERVER_NAME'] . "</p>";
|
||||
$instance= $_SERVER['SERVER_NAME'];
|
||||
echo nl2br("\n");
|
||||
$verifiedcsvpath="participants/" . $instance . '/verified.csv';
|
||||
$unverifiedcsvpath="participants/" . $instance . '/unverified.csv';
|
||||
//echo $verifiedcsvpath;
|
||||
//echo nl2br("\n");
|
||||
//echo $unverifiedcsvpath;
|
||||
echo nl2br("\n");
|
||||
DisplayCSVNEW($unverifiedcsvpath);
|
||||
// display the results of verified.csv
|
||||
// only display the results of verified.csv that matches with the search term
|
||||
// display the results of unverified.csv
|
||||
// only display the results of unverified.csv that matches with the search term
|
||||
|
||||
}
|
||||
else{ // if query length is less than minimum or more than maximum
|
||||
echo "Error: Query must be between ".$min_length . " and ".$max_length . " characters.";
|
||||
}
|
||||
?>
|
|
@ -1,15 +0,0 @@
|
|||
// https://github.com/H3l3na/php-search/blob/master/search.php
|
||||
//
|
||||
|
||||
<?php
|
||||
|
||||
// make a html prompt,
|
||||
// it must take into account what the user is typing in it and display it
|
||||
// there needs to be regex checking, only allow [a-zA-Z0-9.:/]
|
||||
// and if anything else is there, throw out an error
|
||||
// then if the regex matches,
|
||||
// display the results of verified.csv
|
||||
// only display the results of verified.csv that matches with the search term
|
||||
// display the results of unverified.csv
|
||||
// only display the results of unverified.csv that matches with the search term
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue