SHARE
TWEET

Snoofing Script By Karteek

k398rm Aug 16th, 2013 444 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <body>
  3. <h1><center>Email Snoofing Trick By Karteek Munjal<h1>
  4. <div>
  5. <html>
  6. <?php
  7. //fake mail sender
  8.  
  9.  
  10. define("PASSWORD","mahnamahna");
  11.  
  12.  
  13. $validpw = false;
  14.  
  15.  
  16. if(!isset($_POST['password']) || $_POST['password'] == '')
  17. {
  18. $mail = '<div style="color:red">You need a password to send mail. Be sure to enter it.</div>';
  19. $validpw = false;
  20. } elseif($_POST['password'] != PASSWORD)
  21. {
  22. $mail = '<div style="color:red">Invalid password.</div>';
  23. $validpw = false;
  24. } else {
  25. $validpw = true;
  26. }
  27.  
  28.  
  29. if(isset($_POST['to']) && isset($_POST['from']) && isset($_POST['fromname']) && isset($_POST['replyto']) && isset($_POST['subject']) && isset($_POST['message']) && $validpw)
  30. {
  31. $headers = 'From: '.$_POST['fromname'].' <'.$_POST['from'].'>' . "\r\n" .
  32. 'Reply-To: '. $_POST['replyto'] . "\r\n";
  33.  
  34. $mail = mail($_POST['to'],$_POST['subject'],$_POST['message'],$headers);
  35.  
  36. if($mail)
  37. {
  38. $mail = '<div style="color:green">Mail sent.</div>';
  39. } else {
  40. $mail = '<div style="color:red">Error</div>';
  41. }
  42. } else {
  43. if(!isset($mail))
  44. {
  45. $mail = '<div style="color:red">Fill in all inputs</div>';
  46. }
  47. }
  48.  
  49.  
  50.  
  51. ?>
  52. <!DOCTYPE html>
  53. <html>
  54. <head>
  55. <title>Email Sender</title>
  56. </head>
  57. <body>
  58. <?php echo $mail; ?>
  59. <form action="index.php" method="post">
  60. <table border="0">
  61. <tr>
  62. <td>To: </td>
  63. <td><input type="text" name="to"></td>
  64. </tr>
  65. <tr>
  66. <td>Fake From Email: </td>
  67. <td><input type="text" name="from"></td>
  68. </tr>
  69. <tr>
  70. <td>Fake From Name: </td>
  71. <td><input type="text" name="fromname"></td>
  72. </tr>
  73. <tr>
  74. <td>Reply to: </td>
  75. <td><input type="text" name="replyto"></td>
  76. </tr>
  77. <tr>
  78. <td>Subject: </td>
  79. <td><input type="text" name="subject"></td>
  80. </tr>
  81. <tr>
  82. <td>Message: </td>
  83. <td><textarea name="message"></textarea></td>
  84. </tr>
  85. <tr>
  86. <td>Password: </td>
  87. <td><input type="password" name="password"></td>
  88. </tr>
  89. <tr>
  90. <td colspan="2">
  91. <input type="submit" value="Send Email" />
  92. </td>
  93. </tr>
  94. </table>
  95. </form>
  96. </body>
  97. </html>
RAW Paste Data
Want to get better at PHP?
Learn to code PHP in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top