Guest User

Untitled

a guest
Feb 9th, 2018
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.13 KB | None | 0 0
  1. <?php
  2. // Import PHPMailer classes into the global namespace
  3. // These must be at the top of your script, not inside a function
  4. error_reporting(0);
  5. use PHPMailer\PHPMailer\PHPMailer;
  6. use PHPMailer\PHPMailer\Exception;
  7.  
  8. //Load composer's autoloader
  9. require('class.SendIt.php');
  10. require 'vendor/autoload.php';
  11. $Extender = new Modules;
  12. class Colors {
  13. private $foreground_colors = array();
  14. private $background_colors = array();
  15.  
  16. public function __construct() {
  17. // Set up shell colors
  18. $this->foreground_colors['black'] = '0;30';
  19. $this->foreground_colors['dark_gray'] = '1;30';
  20. $this->foreground_colors['blue'] = '0;34';
  21. $this->foreground_colors['light_blue'] = '1;34';
  22. $this->foreground_colors['green'] = '0;32';
  23. $this->foreground_colors['light_green'] = '1;32';
  24. $this->foreground_colors['cyan'] = '0;36';
  25. $this->foreground_colors['light_cyan'] = '1;36';
  26. $this->foreground_colors['red'] = '0;31';
  27. $this->foreground_colors['light_red'] = '1;31';
  28. $this->foreground_colors['purple'] = '0;35';
  29. $this->foreground_colors['light_purple'] = '1;35';
  30. $this->foreground_colors['brown'] = '0;33';
  31. $this->foreground_colors['yellow'] = '1;33';
  32. $this->foreground_colors['light_gray'] = '0;37';
  33. $this->foreground_colors['white'] = '1;37';
  34.  
  35. $this->background_colors['black'] = '40';
  36. $this->background_colors['red'] = '41';
  37. $this->background_colors['green'] = '42';
  38. $this->background_colors['yellow'] = '43';
  39. $this->background_colors['blue'] = '44';
  40. $this->background_colors['magenta'] = '45';
  41. $this->background_colors['cyan'] = '46';
  42. $this->background_colors['light_gray'] = '47';
  43. }
  44.  
  45. // Returns colored string
  46. public function getColoredString($string, $foreground_color = null, $background_color = null) {
  47. $colored_string = "";
  48.  
  49. // Check if given foreground color found
  50. if (isset($this->foreground_colors[$foreground_color])) {
  51. $colored_string .= "\033[" . $this->foreground_colors[$foreground_color] . "m";
  52. }
  53. // Check if given background color found
  54. if (isset($this->background_colors[$background_color])) {
  55. $colored_string .= "\033[" . $this->background_colors[$background_color] . "m";
  56. }
  57.  
  58. // Add string and end coloring
  59. $colored_string .= $string . "\033[0m";
  60.  
  61. return $colored_string;
  62. }
  63.  
  64. // Returns all foreground color names
  65. public function getForegroundColors() {
  66. return array_keys($this->foreground_colors);
  67. }
  68.  
  69. // Returns all background color names
  70. public function getBackgroundColors() {
  71. return array_keys($this->background_colors);
  72. }
  73. }
  74. class SendIt extends Modules
  75. {
  76. function __construct()
  77. {
  78. if(phpversion() < "7.0.0"){
  79. echo "PHP ".phpversion()." TIDAK SUPPORT SILAHKAN UPDATE KE PHP 7\r\n";
  80. exit;
  81. }
  82. echo "=========================================\r\n";
  83. echo " || ======== || SendIt Rhx ".$this->version()."\r\n";
  84. echo " || || || (c) 2017 RhxFiles\r\n";
  85. echo " || || || www.rhxfiles.com\r\n";
  86. echo " || || ||\r\n";
  87. echo "=========================================\r\n";
  88.  
  89. $LoadEmail = $this->stuck("[ Load Email List (file.txt) ] : ");
  90. $du = $this->stuck("[ Send Duplicate Mail (0 = Yes , 1 = No)] : ");
  91. $this->del = $this->stuck("[ Send Email Delay] : ");
  92. $this->LoadEmail = $LoadEmail;
  93. $this->listEmail = $this->load($this->LoadEmail , $du);
  94. }
  95. public function senders($email){
  96. $mail = new PHPMailer(true);
  97. $mail->SMTPDebug = 0;
  98. $mail->isSMTP();
  99. $mail->Host = 'smtp-relay.gmail.com';
  100. $mail->SMTPAuth = true;
  101. $mail->SMTPOptions = array('ssl' =>array('verify_peer' =>false,'verify_peer_name' =>false,'allow_self_signed'=>true));
  102.  
  103. //======================================= SMTP SETTING ================================
  104.  
  105. $mail->Username = 'not-replymyasmas@bean-building.company';
  106. $mail->Password = 'aSDaSD123';
  107.  
  108. //======================================= END OF SMTP SETTING =============================
  109. $mail->SMTPSecure = 'tls';
  110. $mail->Port = 587;
  111. $hitMail = 1;
  112. $hitMails = 1;
  113. //============================================= HEADER SETTING =======================================
  114. $mail->addCustomHeader("X-Relaying-Domain","google.com");
  115. $mail->addCustomHeader("X-MSMail-Priority","High");
  116. $mail->addCustomHeader("Importance","High");
  117. $mail->XMailer='RhxFiles - Secure Mailer';
  118. $mail->MessageID = "<" . md5($this->randomf(textrandom,10).(idate("U")-1000000000).uniqid()).'-'.$type.'-'.$id.'@'.$this->randomf(textrandom,10).'.'.$this->randomf(textrandom,5).'>';
  119. $mail->addCustomHeader('Content-Transfer-Encoding', 'base64');
  120. $mail->addCustomHeader('MIME-Version', '1.0');
  121. // $mail->addCustomHeader('Content-Type', 'multipart/alternative;');
  122. //============================================ END OF HEADER SETTING===============================
  123.  
  124. //======================================= SEND SETTING ============================================
  125. $Mailtarget = $email;
  126. $mail->addAddress($Mailtarget);
  127. $mail->isHTML(true);
  128. $mail->CharSet = 'UTF-8';
  129. $mail->Encoding = 'base64';
  130. $mail->WordWrap = 50;
  131. $mail->setFrom($this->randomf(minirandom,7).'informationacc'.$this->randomf(textrandom,7).'support'.$this->randomf(textrandom,7).'@bean-building.company', 'AppleID Confirmation');
  132. $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).'';
  133. //======================================= END OF SEND SETTING =======================================
  134.  
  135.  
  136. //============================================= START MANUAL HTML =======================================
  137. $html = '
  138.  
  139. <DIV class="AOLWebSuite AOLWebSuiteM1" data-dojo-attach-point="bodyCont">
  140. <DIV id=AOLMsgPart_2_dc37f217-a8dc-4532-abf8-7886ff044b12>
  141. <DIV class=aolReplacedBody bgcolor="#FFFFFF"><BR><BR>
  142. <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">
  143. <TABLE class=aolmail_aapl-desktop-tbl style="WIDTH: 742px; BORDER-COLLAPSE: collapse; BORDER-SPACING: 0" cellSpacing=0 cellPadding=0 align=center border=0>
  144. <TBODY>
  145. <TR>
  146. <TD class=aolmail_left-gutter style="WIDTH: 40px"></TD>
  147. <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>
  148. <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>
  149. <TD class=aolmail_right-gutter style="WIDTH: 40px"></TD></TR>
  150. <TR height=20>
  151. <TD colSpan=4></TD></TR>
  152. <TR></TR>
  153. <TR>
  154. <TD colSpan=4 align=center>
  155. <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>
  156. <TBODY>
  157. <TR height=10>
  158. <TD style="border-top-right-radius: 2px; border-top-left-raidus: 2px" bgColor=#f5f5f5 colSpan=3></TD></TR>
  159. <TR>
  160. <TD class=aolmail_left-gutter style="WIDTH: 20px" bgColor=#f5f5f5></TD>
  161. <TD bgColor=#f5f5f5 align=left>
  162. <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">
  163. <TBODY>
  164. <TR>
  165. <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>&nbsp; </TD>
  166. <TD class=aolmail_lockup-art-spacer style="WIDTH: 20px"></TD>
  167. <TD>
  168. <TABLE style="FONT-SIZE: 13px; LETTER-SPACING: 0px; LINE-HEIGHT: 24px" cellSpacing=0 cellPadding=0 border=0>
  169. <TBODY>
  170. <TR>
  171. <TD><SPAN style="FONT-SIZE: 18px">Photable</SPAN></TD></TR>
  172. <TR>
  173. <TD><SPAN style="COLOR: rgb(170,170,170)">Photable Pro (3&nbsp;days)</SPAN></TD></TR>
  174. <TR>
  175. <TD><SPAN style="COLOR: rgb(170,170,170)">Free Trial</SPAN></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
  176. <TD class=aolmail_right-gutter style="WIDTH: 20px" bgColor=#f5f5f5></TD></TR>
  177. <TR height=10>
  178. <TD style="border-bottom-right-radius: 2px; border-bottom-left-raidus: 2px" bgColor=#f5f5f5 colSpan=3></TD></TR>
  179. <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
  180. <TD></TD></TR>
  181. <TR>
  182. <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
  183. <TD>Dear JUAN,</TD>
  184. <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
  185. <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
  186. <TD></TD></TR>
  187. <TR>
  188. <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
  189. <TD>You’ve purchased the following subscription with a 3&nbsp;days free trial:</TD>
  190. <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
  191. <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
  192. <TD></TD></TR>
  193. <TR>
  194. <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
  195. <TD align=center>
  196. <TABLE style="FONT-SIZE: 13px; FONT-FAMILY: Helvetica Neue, Helvetica, Arial, sans-serif" cellSpacing=1 cellPadding=0 border=0>
  197. <TBODY>
  198. <TR>
  199. <TD vAlign=bottom align=right><B>Subscription</B></TD>
  200. <TD width=10></TD>
  201. <TD vAlign=bottom align=left>Photable Pro</TD></TR>
  202. <TR>
  203. <TD vAlign=bottom align=right><B>App</B></TD>
  204. <TD width=10></TD>
  205. <TD vAlign=bottom align=left>Photable - Photo Editor</TD></TR>
  206. <TR>
  207. <TD align=right><B>Content Provider</B></TD>
  208. <TD width=10></TD>
  209. <TD align=left>xuan liu|10926886306</TD></TR>
  210. <TR>
  211. <TD vAlign=bottom align=right><B>Date of Purchase</B></TD>
  212. <TD width=10></TD>
  213. <TD vAlign=bottom align=left>Dec 26, 2017</TD></TR>
  214. <TR>
  215. <TD vAlign=bottom align=right><B>Trial Duration</B></TD>
  216. <TD width=10></TD>
  217. <TD vAlign=bottom align=left>3&nbsp;days</TD></TR>
  218. <TR>
  219. <TD vAlign=bottom align=right><B>Trial Price</B></TD>
  220. <TD width=10></TD>
  221. <TD vAlign=bottom align=left>Free </TD></TR>
  222. <TR>
  223. <TD vAlign=bottom align=right><B>Price</B></TD>
  224. <TD width=10></TD>
  225. <TD vAlign=bottom align=left>$4.99/month </TD></TR>
  226. <TR>
  227. <TD vAlign=bottom align=right><B>Payment Method</B></TD>
  228. <TD width=10></TD>
  229. <TD vAlign=bottom align=left>Visa .... 2604</TD></TR></TBODY></TABLE></TD>
  230. <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
  231. <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
  232. <TD></TD></TR>
  233. <TR>
  234. <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
  235. <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>
  236. <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
  237. <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
  238. <TD></TD></TR>
  239. <TR>
  240. <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
  241. <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&amp;familyId=20385609">review your subscription</A>.</TD>
  242. <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
  243. <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
  244. <TD></TD></TR>
  245. <TR>
  246. <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
  247. <TD>Regards,<BR>The App Store team</TD>
  248. <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR>
  249. <TR class=aolmail_paragraph-spacer style="HEIGHT: 20px">
  250. <TD></TD></TR>
  251. <TR>
  252. <TD class=aolmail_left-gutter style="WIDTH: 20px"></TD>
  253. <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>
  254. <TD class=aolmail_right-gutter style="WIDTH: 20px"></TD></TR></TBODY></TABLE></TD></TR>
  255. <TR class=aolmail_footer-notice-spacer style="HEIGHT: 20px">
  256. <TD colSpan=4></TD></TR>
  257. <TR>
  258. <TD></TD>
  259. <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>
  260. <TD></TD></TR>
  261. <TR class=aolmail_footer-spacer style="HEIGHT: 50px">
  262. <TD colSpan=4></TD></TR>
  263. <TR>
  264. <TD></TD>
  265. <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>
  266. <TD></TD></TR>
  267. <TR height=8>
  268. <TD colSpan=4></TD></TR>
  269. <TR>
  270. <TD></TD>
  271. <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&amp;emailType=sub_confirm&amp;lang=en_us&amp;eventType=linkClick&amp;redirectUrl=https%3A%2F%2Fbuy.itunes.apple.com%2FWebObjects%2FMZFinance.woa%2Fwa%2FaccountSummary">Apple ID Summary</A>&nbsp;•&nbsp;<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&amp;emailType=sub_confirm&amp;lang=en_us&amp;eventType=linkClick&amp;redirectUrl=http%3A%2F%2Fwww.apple.com%2Flegal%2Fitunes%2Fus%2Fsales.html">Terms of Sale</A>&nbsp;•&nbsp;<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&amp;emailType=sub_confirm&amp;lang=en_us&amp;eventType=linkClick&amp;redirectUrl=https%3A%2F%2Fwww.apple.com%2Flegal%2Fprivacy%2F">Privacy Policy</A> </TD>
  272. <TD></TD></TR>
  273. <TR height=25>
  274. <TD colSpan=4></TD></TR>
  275. <TR>
  276. <TD></TD>
  277. <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&amp;emailType=sub_confirm&amp;lang=en_us&amp;eventType=linkClick&amp;redirectUrl=https%3A%2F%2Fwww.apple.com%2Flegal%2F">All rights reserved</A> </TD>
  278. <TD></TD></TR>
  279. <TR height=25>
  280. <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&amp;emailType=sub_confirm&amp;lang=en_us&amp;eventType=open" width=1 height=1></DIV></DIV></DIV>
  281.  
  282. ';
  283.  
  284. $mail->Body = $html;
  285. //============================================= END MANUAL HTML =========================================
  286.  
  287. //============================= FOOTER / SENDER =================================================
  288. echo "\r\n";
  289. echo 'Sending To '.$Mailtarget;
  290. if( $mail->Send() ){
  291. $this->hitMail++;
  292. echo ' Succesfully Sent!['.$this->hitMail.'/'.$this->listEmail[total].']';
  293. }else{
  294. echo " ".$mail->ErrorInfo;
  295. echo "\r\n";
  296. }
  297. $this->hitMails++;
  298. //============================================= END =========================================
  299. }
  300. public function Mulai(){
  301. $Coloring = new Colors;
  302. $mailistea = $this->listEmail['list'];
  303. $this->pause =1;
  304. $this->delay = $this->del;
  305. echo "\n";
  306. echo $Coloring->getColoredString("Sending With Ratio [ $this->pause Emails \ $this->delay Second ] \n","cyan");
  307. foreach ($mailistea as $value => $nama_bulan) {
  308. $emailmantap = trim($nama_bulan);
  309. if($this->hitMails === $this->pause){
  310. echo "\r\n";
  311. echo $Coloring->getColoredString("[SendIt Rhx][==== delay $this->delay Sec====] ","light_red");
  312. $this->hitMails = 0;
  313. sleep($this->delay);
  314. }
  315. $this->senders($emailmantap);
  316. if($this->hitMail == $this->listEmail[total])
  317. {
  318. echo "\r\n";
  319. echo "[SendIt Rhx][====ALL MAILIST HAS BEEN SPAMMED !====] ";
  320. }
  321. }
  322. }
  323. }
  324. $SendIt = new SendIt;
  325. $SendIt->Mulai();
Add Comment
Please, Sign In to add comment