L3xcode

SMTP CHECKER MASS

Sep 27th, 2016
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3. if(isset($_POST['submit']))
  4. {
  5.  
  6. // smtp list
  7. $line = $_POST['smtplist'];
  8. $details = explode("\n", $line);
  9.  
  10. foreach($details as $value) { // clean each field
  11. $detail =explode("|", $value);
  12. $smtpServer = $detail[0];
  13. $port = "25";
  14. $timeout = "30";
  15. $user = $detail[1];
  16. $pass = $detail[2];
  17. $newLine = "\r\n";
  18. $to = "spam@iln-mc.org"; // test delivering (your email)
  19. $nameto = "AlbatritSylaj"; // write something eg (TORSELLER202)
  20. $from = "st0realbo@hushmail.com";
  21. $namefrom = "torseller20321";
  22. $localhost = $detail[0];
  23. $subject = "HORUX.RU";
  24. $message = "hello my friend im from horux.ru";
  25. // MAIL FUNCTION
  26. echo $smtpServer . " | " . $user . " | " . $pass;
  27.  
  28. //Connect to the host on the specified port
  29. $smtpConnect = fsockopen($smtpServer, $port, $errno, $errstr, $timeout);
  30. $smtpResponse = fgets($smtpConnect, 515);
  31. if(empty($smtpConnect))
  32. {
  33. echo "Failed to connect: $smtpResponse";
  34. }
  35. else
  36. {
  37. echo "Connected: $smtpResponse";
  38. }
  39.  
  40. //Request Auth Login
  41. fputs($smtpConnect,"AUTH LOGIN" . $newLine);
  42. $smtpResponse = fgets($smtpConnect, 515);
  43. echo "$smtpResponse</br>";
  44.  
  45. //Send username
  46. fputs($smtpConnect, base64_encode($user) . $newLine);
  47. $smtpResponse = fgets($smtpConnect, 515);
  48. echo "$smtpResponse</br>";
  49.  
  50. //Send password
  51. fputs($smtpConnect, base64_encode($pass) . $newLine);
  52. $smtpResponse = fgets($smtpConnect, 515);
  53. echo "$smtpResponse</br>";
  54.  
  55. //Say Hello to SMTP
  56. fputs($smtpConnect, "HELO $localhost" . $newLine);
  57. $smtpResponse = fgets($smtpConnect, 515);
  58.  
  59. //Email From
  60. fputs($smtpConnect, "MAIL FROM: $from" . $newLine);
  61. $smtpResponse = fgets($smtpConnect, 515);
  62.  
  63. //Email To
  64. fputs($smtpConnect, "RCPT TO: $to" . $newLine);
  65. $smtpResponse = fgets($smtpConnect, 515);
  66.  
  67. //The Email
  68. fputs($smtpConnect, "DATA" . $newLine);
  69. $smtpResponse = fgets($smtpConnect, 515);
  70. fputs($smtpConnect, "To: $to\nFrom: $from\nSubject: $subject\n$message\n.\n");
  71. $smtpResponse = fgets($smtpConnect, 515);
  72.  
  73. // Say Bye to SMTP
  74. fputs($smtpConnect,"QUIT" . $newLine);
  75. $smtpResponse = fgets($smtpConnect, 515);
  76.  
  77. //insert var_dump here -- uncomment out the next line for debug info
  78.  
  79. }
  80. }
  81. ?>
  82.  
  83.  
  84.  
  85. <!DOCTYPE html>
  86. <html lang="en">
  87. <head>
  88.  
  89. <style type="text/css">
  90. body {
  91. font-family: 'Arial Black', sans-serif;
  92. }
  93. #content {
  94. width: 800px;
  95. margin: auto auto;
  96. }
  97. .error {
  98. font-weight: bold;
  99. color: #8A0808;
  100. }
  101. .notice {
  102. font-weight: bold;
  103. color: #D7DF01;
  104. }
  105. .success {
  106. font-weight: bold;
  107. color: #04B404;
  108. }
  109. </style>
  110.  
  111.  
  112. </head>
  113.  
  114. <body>
  115. <div id="content">
  116. <h1>SMTP Checker</h1>
  117. <p>Format mail.google.com|username|password</p>
  118. <form method="post">
  119. <table>
  120. <tr><td><textarea placeholder="" style="height: 550px; width: 800px;" name="smtplist"></textarea></td></tr>
  121. <center> <div align="left"><tr><td></td><td><input style="float: right;" name="submit" type="submit"></td></tr></div></center>
  122. </table>
  123. </form>
  124. </div>
  125. </body>
  126. </html>
Add Comment
Please, Sign In to add comment