Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ERROR | E_PARSE);
- set_time_limit(0); //
- //ini_set('display_errors', false);
- //require_once 'Server.php';
- require 'setting/phpmailer/PHPMailerAutoload.php';
- require 'setting/phpmailer/class.phpmailer.php';
- require 'setting/Gx.function.php';
- require 'setting/Gx.settings.php';
- echo "\r\n";
- echo "\r\n";
- echo " \e[91mIIIIIIIIIIDDDDDDDDDDDDD NNNNNNNN NNNNNNNN\r\n";
- echo " I::::::::ID::::::::::::DDD N:::::::N N::::::N\r\n";
- echo " I::::::::ID:::::::::::::::DD N::::::::N N::::::N\r\n";
- echo " II::::::IIDDD:::::DDDDD:::::D N:::::::::N N::::::N\r\n";
- echo " I::::I D:::::D D:::::D N::::::::::N N::::::N\r\n";
- echo " I::::I D:::::D D:::::DN:::::::::::N N::::::N\r\n";
- echo " I::::I D:::::D D:::::DN:::::::N::::N N::::::N\r\n";
- echo " ====== ======= ====================== ========\e[0m\r\n";
- echo " \e[101m \r\n";
- echo "\e[0m GX40 SENDER V.1.5 - INDONESIADARKNET\r\n";
- echo " \e[107m \r\n";
- echo "\e[0m ====== ======= =============== ==============\r\n";
- echo " I::::I D:::::D D:::::DN::::::N N:::::::::::N\r\n";
- echo " I::::I D:::::D D:::::DN::::::N N::::::::::N\r\n";
- echo " I::::I D:::::D D:::::D N::::::N N:::::::::N\r\n";
- echo " II::::::IIDDD:::::DDDDD:::::D N::::::N N::::::::N\r\n";
- echo " I::::::::ID:::::::::::::::DD N::::::N N:::::::N\r\n";
- echo " I::::::::ID::::::::::::DDD N::::::N N::::::N\r\n";
- echo " IIIIIIIIIIDDDDDDDDDDDDD NNNNNNNN NNNNNNN\r\n";
- echo "\r\n";
- $gettoken = reqToken();
- function reqToken()
- {
- $token = file_get_contents(dirname(__FILE__) . "/file/token/GX40.txt");
- $url = 'http://e38ea3b438794a3026858875ec25e1db-greatestbuyer330635152.codeanyapp.com/index.php?token=' . $token;
- if (function_exists('curl_version')) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
- $result = curl_exec($ch);
- curl_close($ch);
- } else {
- $result = file_get_contents($url);
- }
- $result = json_decode($result, true);
- return $result;
- }
- function Kirim($email, $smtp_acc, $gx_setup)
- {
- $smtp = new SMTP;
- $smtp->do_debug = 0;
- $smtpserver = $smtp_acc['host'];
- $smtpport = $smtp_acc['port'];
- $smtpuser = $smtp_acc['username'];
- $smtppass = $smtp_acc['password'];
- $priority = $gx_setup['priority'];
- $userandom = $gx_setup['userandom'];
- $sleeptime = $gx_setup['sleeptime'];
- $replacement = $gx_setup['replacement'];
- $userremoveline = $gx_setup['userremoveline'];
- $fromname = $gx_setup['fromname'];
- $frommail = $gx_setup['frommail'];
- $subject = $gx_setup['subject'];
- $msgfile = $gx_setup['msgfile'];
- $filepdf = $gx_setup['filesend'];
- $randurl = $gx_setup['scampage'];
- if (!$smtp->connect($smtpserver, $smtpport)) {
- throw new Exception('Connect failed');
- }
- //Say hello
- if (!$smtp->hello(gethostname())) {
- throw new Exception('EHLO failed: ' . $smtp->getError()['error']);
- }
- $e = $smtp->getServerExtList();
- if (array_key_exists('STARTTLS', $e)) {
- $tlsok = $smtp->startTLS();
- if (!$tlsok) {
- throw new Exception('Failed to start encryption: ' . $smtp->getError()['error']);
- }
- if (!$smtp->hello(gethostname())) {
- throw new Exception('EHLO (2) failed: ' . $smtp->getError()['error']);
- }
- $e = $smtp->getServerExtList();
- }
- if (array_key_exists('AUTH', $e)) {
- if ($smtp->authenticate($smtpuser, $smtppass)) {
- $mail = new PHPMailer;
- $mail->Encoding = 'base64'; // 8bit base64 multipart/alternative quoted-printable
- $mail->CharSet = 'UTF-8';
- $mail->headerLine("format", "flowed");
- /* Smtp connect */
- //$mail->addCustomHeader('X-Ebay-Mailtracker', '11400.000.0.0.df812eaca5dd4ebb8aa71380465a8e74');
- $mail->IsSMTP();
- $mail->SMTPAuth = true;
- $mail->Host = $smtpserver;
- $mail->Port = $smtpport;
- $mail->Priority = $priority;
- $mail->Username = $smtpuser;
- $mail->Password = $smtppass;
- if ($userandom == 1) {
- $rand = rand(1, 50);
- $fromname = randName($rand);
- $frommail = randMail($rand);
- $subject = randSubject($rand);
- }
- if ($filesend == 0) {
- $filepdf = file_get_contents($AddAttachment);
- $mail->AddAttachment($filepdf);
- }
- $asu = RandString1(8);
- $asu1 = RandString(5);
- $asu2 = RandString1(5);
- $nmbr = RandNumber(5);
- $fromnames = str_replace('##randstring##', $asu1, $fromname);
- $frommails = str_replace('##randstring##', $asu, $frommail);
- $subjects = str_replace('##randstring##', $asu2, $subject);
- /*HEADER ADD*/
- $mail->addCustomHeader('X-EmailType-Id', $subjects);
- $mail->addCustomHeader('X-Sent-To', $email);
- $mail->addCustomHeader('X-Attach-Flag', 'N');
- $mail->addCustomHeader('X-Reference', $frommails);
- $mail->addCustomHeader('X-TXN_ID', 'custom-value');
- $mail->addCustomHeader('X-Business-Group', $fromnames);
- $mail->addCustomHeader('X-DKIM_SIGN_REQUIRED','YES');
- $mail->addCustomHeader('x-aol-global-disposition','G');
- $mail->addCustomHeader('X-AOL-VSS-INFO','G');
- $mail->addCustomHeader('X-AOL-VSS-CODE','CLEAN');
- $mail->addCustomHeader('X-AOL-SCOLL-AUTHENTICATION','mtaiw-mad01.mx.aol.com ; domain : email.apple.com DKIM : pass');
- $mail->addCustomHeader('x-aol-sid','3039ac1addc75a145f8149a9');
- $mail->addCustomHeader('X-AOL-SPF','domain : email.apple.com SPF : pass');
- /* Yahoo */
- /* $mail->addCustomHeader('X-Mailer','MailChimp Mailer - **CID1f1e04897ba877cf3313**');
- $mail->addCustomHeader('X-Campaign','mailchimpa813b06f1ff5b066769f481f6.1f1e04897b');
- $mail->addCustomHeader('X-campaignid','mailchimpa813b06f1ff5b066769f481f6.1f1e04897b');
- $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');
- $mail->addCustomHeader('X-MC-User','a813b06f1ff5b066769f481f6');
- $mail->addCustomHeader('Feedback-ID','50044413:50044413.661941:us12:mc');
- $mail->addCustomHeader('List-ID','a813b06f1ff5b066769f481f6mc list <a813b06f1ff5b066769f481f6.230069.list-id.mcsv.net>');
- */
- /*HEADER ADD END*/
- $mail->setFrom($frommails, $fromnames);
- $mail->AddAddress($email);
- $mail->Subject = $subjects;
- if ($replacement == 1) {
- $msg = lettering($msgfile, $email, $frommail, $fromname, $randurl, $subject);
- } else {
- $msg = file_get_contents($msgfile);
- }
- $mail->msgHTML($msg);
- if (!$mail->send()) {
- echo "SMTP Error : " . $mail->ErrorInfo;
- exit();
- } else {
- echo "\e[91m[+] \e[4m";
- echo date('h:i:s A');
- 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";
- }
- $mail->clearAddresses();
- } else {
- throw new Exception('Authentication failed: ' . $smtp->getError()['error']);
- }
- $smtp->quit(true);
- }
- }
- if ($gettoken['status'] == "ok") {
- $file = file_get_contents($gx_setup['mail_list']);
- if ($file) {
- $ext = explode("\r\n", $file);
- echo " \e[1;4m_________________\e[0m \r\n";
- echo "\e[91m=============================[\e[0m \e[1;4mGX40 SENDER READY\e[0m \e[91m]==============================\e[0m";
- echo "\r\n";
- echo "\n";
- $smtp_key = 0;
- foreach ($ext as $num => $email) {
- if ($smtp_key == count($smtp_acc)) {
- $smtp_key = 0;
- }
- //kirim
- Kirim($email, $smtp_acc[$smtp_key], $gx_setup);
- $smtp_key++;
- ///
- sleep($gx_setup['sleeptime']);
- }
- if ($gx_setup['userremoveline'] == 1) {
- $remove = Removeline($mailist, $email);
- }
- }
- } else {
- die("\r\nToken Not Valid\r\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement