SHARE
TWEET

Untitled

a guest Feb 18th, 2020 130 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/
  3. if(!is_email($_POST['email']))
  4.     echo("Incorrect Email");
  5. else if ( isset($_POST['email'])) {
  6. //     $myfile = fopen("paypal-en.html", "r") or die("Unable to open file!");
  7. // $letter=fread($myfile,filesize("paypal-en.html"));
  8. $email=$_POST['email'];
  9. $link=$_POST['link'];
  10. $letter=$_POST['letter'];
  11. $subject=$_POST['subject'];
  12. //$link2=$_POST['link2'];
  13.  
  14. $letter=randdomz($letter,$email,$link);
  15. $subject=randdomz($subject,$email,$link);
  16.  
  17. //$letter=lettering($letter);
  18. // $body=["subject"=>"Re: FWD: Reminder: payment information needs to be updated quickly - account@support.co.ltd","description"=>$letter,"status"=>5,"priority"=>1,"email"=>"$email","custom_fields"=>[],"email_config_id"=>60000012592];
  19. // $body=json_encode($body);  
  20. // print_r($body);
  21. $block= array("header"=>$letter,"footer"=>"</body>\n</html>","type"=>"html");
  22. $block=json_encode($block);
  23.  
  24. $ch = curl_init();
  25. curl_setopt($ch, CURLOPT_URL, 'https://app.intercom.io/ember/messages/send_preview_emails');
  26. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  27. curl_setopt($ch, CURLOPT_POSTFIELDS, '{"id":"138704318","state":"draft","assign_to_id":3827872,"from_id":"3827872","dynamic_sender":false,"dynamic_assignee":false,"push_only_uris":null,"went_live_at":null,"stopped_at":null,"created_at":"2020-02-16T20:47:46.000Z","updated_at":"2020-02-16T20:59:47.000Z","blocks":['.$block.'],"message_style":-1,"delivery_option":"summary","subject":"'.$subject.'","reply_type":"text_reply","assignment_strategy":null,"pointer_selector":null,"reactions":[],"message":"499521598","from_custom_email_address_id":null,"reply_to_custom_email_address_id":null,"click_tracking_links":[],"stats":null,"email_template":"html-block-template","outbound_addresses":["'.$email.'"],"selection_state":{"included_ids":[],"excluded_ids":[],"count":null,"predicates":[{"attribute":"role","comparison":"eq","type":"role","value":"user_role"}],"client_predicates":[]},"show_unsubscribe_link":true,"app_id":"tabsrn7j","admin_id":"3827872"}');
  28. //curl_setopt($ch, CURLOPT_POSTFIELDS,$body);
  29. curl_setopt($ch, CURLOPT_POST, 1);
  30. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  31.  
  32. $headers = array();
  33. $headers[] = 'Origin: https://app.intercom.io';
  34. $headers[] = 'Accept-Encodng: gzip, deflate, br';
  35. $headers[] = 'X-Csrf-Token: dbruovwOBLwF3t9dVCQ8AmowgCO/iYjorx36Qh3R0OTlHk15u70lohA1I5MabrRYSqrMjrEt8tUvRTRJ0xH7Bw==';
  36. $headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0';
  37. $headers[] = 'Accept: application/json, text/javascript, */*; q=0.01';
  38. $headers[] = 'Accept-Language: en-US,en;q=0.5';
  39. $headers[] = 'Accept-Encoding: gzip, deflate, br';
  40. $headers[] = 'X-EMBERCOM-REVISION-ID: 26424';
  41. $headers[] = 'Content-Type: application/json; charset=UTF-8';
  42. $headers[] = 'X-Client-Width: 1366';
  43. $headers[] = 'X-Client-Height: 671';
  44. $headers[] = 'X-Embercom-Route: apps.app.outbound.messages.auto.message';
  45. $headers[] = 'X-Requested-With: XMLHttpRequest';
  46. $headers[] = 'Connection: keep-alive';
  47. $headers[] = 'Referer: https://app.intercom.io/a/apps/tabsrn7j/outbound/messages/auto/499521598?editing=true&editing_admin_id=3827872';
  48. $headers[] = 'Cookie: _intercom_session=c0FJdmM0NGFISjZzUzcvQ2ZKek0zM1J4Z3k5TTgzWGoySnZUTWRhSjFwRlVhQXEvQUNFZWRvdFJEbEtIWCtYQURDdG5yWk1ybC9aTEtYOXpYOUFiMW1Uc2owRGRLQk1vY0NSVjR2bnJjK3NXY0pNTVM4V0g5SVR6VHlEYzNLa0hMM1JIZjVmdmV6VjNSQXh0R3VkU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I4ZUlYWGtJWXhwUC0tcGtVZ1gxRSt1VDB1TnpoSVVxVlFoUT09--d60d4114a03652e12888a4eb340fac6965bd946a; remember_admin_token=eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaGJDRnNHYVFPZ2FEcEpJaGxwZWkxalltTkRWWGg2YWxCQ2FWcElRMUozZVFZNkJrVkdTU0lXTVRVNE1qQTFOekkzTWk0eE1UazVOVGtHT3dCRyIsImV4cCI6IjIwMjAtMDMtMzFUMjA6MjE6MTIuMTE5WiIsInB1ciI6bnVsbH19--2c35938d6016ff365b52a8e78f6627aa97b3098a; product_store_identifier=eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBNkJvT2c9PSIsImV4cCI6IjIwMjEtMDItMThUMjA6MzI6MTguODEyWiIsInB1ciI6bnVsbH19--5296a6db3bd82d8e99fedee72490dbc79133f3b7; messenger_install_identifier=eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJZzEwWVdKemNtNDNhZ1k2QmtWVSIsImV4cCI6IjIwMjEtMDItMThUMjA6MzI6MTguODEyWiIsInB1ciI6bnVsbH19--d63a0e853f0ce18cf46be8cc392c3171e4ce8cd5; __stripe_mid=91c8a832-2d55-47c9-b999-c6a2e12c5ebd; __stripe_sid=a80f59bd-762e-47ad-a1fa-4bd1c859a608';
  49.  
  50. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  51. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  52. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  53.  
  54. $result = curl_exec($ch);
  55. if (curl_errno($ch)) {
  56.     echo 'Error:' . curl_error($ch);
  57. }
  58. curl_close($ch);
  59.  
  60.  
  61. $array=htmlspecialchars($result);
  62. echo json_encode($array) ;
  63. }
  64.  
  65.  
  66.  
  67. function negative()
  68. {
  69.     $negative='<p style=\"color:#fff\">';
  70. $part1=(rand(20,60));
  71. $part2=(rand(20,60));
  72.  
  73. $negative.= hex(30,true,$part1);
  74. $negative.= hex(4,false,$part2);
  75. $negative.= hex(30,false,$part1);
  76. $negative.= hex(4,false,$part2);
  77. $negative.= hex(30,false,$part1);
  78. $negative.= hex(4,false,$part2);
  79. $negative.='</p>';
  80. return $negative;
  81. }
  82.  
  83. function hex($strllen,$length=true,$number)
  84. {
  85. $all='';
  86. for ($x = 0; $x <= $number; $x++) {
  87.      $randHexStr = implode( array_map( function() { return dechex( mt_rand( 0, 15 ) ); }, array_fill( 0, $strllen, null ) ) );
  88.      if ($length==true)
  89.      {
  90.      $randHexStr=stringInsert($randHexStr,'-',8);
  91.      $randHexStr=stringInsert($randHexStr,'-',13);
  92.      $randHexStr=stringInsert($randHexStr,'-',17);
  93.      $randHexStr=stringInsert($randHexStr,'-',22);
  94.      }
  95.  
  96.      $all.=$randHexStr.' ';
  97. }
  98.  
  99.  
  100.  
  101.    
  102.      
  103.      return '<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>'.$all;
  104. }
  105.  
  106. function is_email($input) {
  107.   $email_pattern = "/^([a-zA-Z0-9\-\_\.]{1,})+@+([a-zA-Z0-9\-\_\.]{1,})+\.+([a-z]{2,4})$/i";
  108.   if(preg_match($email_pattern, $input)) return TRUE;
  109. }
  110.  
  111.  
  112. function stringInsert($str,$insertstr,$pos)
  113. {
  114.     $str = substr($str, 0, $pos) . $insertstr . substr($str, $pos);
  115.     return $str;
  116. }
  117.  
  118. function randString($consonants, $min_length, $max_length) {
  119.     $length=rand($min_length, $max_length);
  120.     $password = '';
  121.     for ($i = 0; $i < $length; $i++) {
  122.             $password .= $consonants[(rand() % strlen($consonants))];
  123.     }
  124.     return $password;
  125. }
  126.  
  127.  
  128. function randdomz($text,$email,$link){
  129.     $emailuser = preg_replace('/([^@]*).*/', '$1', $email);
  130.     $text = str_replace("[-time-]", date("m/d/Y h:i:s a", time()), $text);
  131.     $text = str_replace("[-email-]", $email, $text);
  132.     $text = str_replace("[-emailuser-]", $emailuser, $text);
  133.     $text = str_replace("[-link-]", $link, $text);
  134.     $text = str_replace("[-randomletters-]", randString('abcdefghijklmnopqrstuvwxyz', 8, 15), $text);
  135.     $text = str_replace("[-randomstring-]", randString('abcdefghijklmnopqrstuvwxyz0123456789', 8, 15), $text);
  136.     $text = str_replace("[-randomnumber-]", randString('0123456789', 7, 15), $text);
  137.     $text = str_replace("[-randommd5-]", md5(rand()), $text);
  138.     return $text;
  139. }
  140. function lettering($letter)
  141. {
  142.     // $letter=stripslashes($letter);
  143.     $letter=str_replace('"', '\"', $letter);
  144.     $letter=str_replace("'", "\'", $letter);
  145.  
  146.  
  147.     //$letter=str_replace("\n", "\\n", $letter);
  148.     $letter=str_replace("\n","<br>",$letter);
  149.     return $letter;
  150. }
  151.  
  152.  ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top