scripts7com

Bypass read files [R-5] 2016 - scripts7.com

Jan 19th, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.12 KB | None | 0 0
  1.  <?php
  2. #// Bypass read files [R-5] 2016
  3. #// scriptr7.com
  4. #// twitter.com/scriptr7com
  5. #// r-5
  6. #// ONLY READ Dir  !!! /root/ or /home/user/ or /
  7. #// Can't read files /etc/passwd !!
  8. #// But this time , Gonna show you all paths roots of dir
  9. #// EX:
  10. #// showmedir7('/');
  11. #// Gonna display all of paths and files and gonna takes long time
  12. #// For the Best just do : /home/ or /home/user/public_html/ to see all files and Dirs  
  13.  
  14. function showmedir7($d='.')
  15. {
  16. if (!is_dir($d)):return false;endif;
  17. $r7 = array();showme7($d, $r7);return $r7;
  18. }
  19.  
  20. function showme7($d, &$r7)
  21. {
  22. $h = opendir($d);
  23. while (($f7 = readdir($h)) !== false):if ($f7 == '.' || $f7 == '..'):continue;endif;
  24. $sr7 = $d == '.' ? $f7 : $d . '/' . $f7;
  25. if (is_link($sr7)) continue;if (is_file($sr7))
  26. $r7[] = $sr7;else if (is_dir($sr7))showme7($sr7, $r7);endwhile;closedir($h);
  27. }
  28. #////////////////   Change this one to ///////////////#
  29. #/////////////// Whatever you want ///////////////////#
  30. #////////////// Try : /home/user/ or /home/ or /home/user/public_html////#
  31. $r7 = showmedir7('/scripts7.com');
  32. foreach ($r7 as $f):echo  $f, "\n <br>";endforeach;
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment