captjack on Nostr: List all files in any linux dir headless system in html to browse remotely #techstr ...
List all files in any linux dir headless system in html to browse remotely #techstr folder browser http
nano index.php
<?php echo "Here are our files"; $path = "."; $dh = opendir($path); $i=1; while (($file = readdir($dh)) !== false) { if($file != "." && $file != ".." && $file != "index.php" && $file != ".htaccess" && $file != "error_log" && $file != "cgi-bin") { echo "<a href='$path/$file'>$file</a><br /><br />"; $i++; } } closedir($dh); ?>
Published at
2024-04-27 07:16:18Event JSON
{
"id": "2a61277142c9ebc643d5c5ff95f7bde7a29fef5f9fff5a47cc2c2da45cd7e457",
"pubkey": "5e5fc1434c928bcdcba6f801859d5238341093291980fd36e33b7416393d5a2c",
"created_at": 1714194978,
"kind": 1,
"tags": [
[
"t",
"techstr"
],
[
"e",
"09fbbad8c7c878fbca47b28b8efe6c4d6593e0a0da42ffc40da98bedea05e291",
"wss://kim-garcia-triumph-recall.trycloudflare.com/",
"root"
],
[
"e",
"09fbbad8c7c878fbca47b28b8efe6c4d6593e0a0da42ffc40da98bedea05e291",
"wss://kim-garcia-triumph-recall.trycloudflare.com/",
"reply"
]
],
"content": "List all files in any linux dir headless system in html to browse remotely #techstr folder browser http \nnano index.php\n\u003c?php echo \"Here are our files\"; $path = \".\"; $dh = opendir($path); $i=1; while (($file = readdir($dh)) !== false) { if($file != \".\" \u0026\u0026 $file != \"..\" \u0026\u0026 $file != \"index.php\" \u0026\u0026 $file != \".htaccess\" \u0026\u0026 $file != \"error_log\" \u0026\u0026 $file != \"cgi-bin\") { echo \"\u003ca href='$path/$file'\u003e$file\u003c/a\u003e\u003cbr /\u003e\u003cbr /\u003e\"; $i++; } } closedir($dh); ?\u003e",
"sig": "e123c3bce385b39ce447a44f0dbe344d73fb9f20f7f1660a45510bafb665a5c6b86902417dd80d73f2711c8dd3e2a50468403ec3e677dcd372fa7ffff5fa009f"
}