Skip to content

Instantly share code, notes, and snippets.

@c0d3x27
Last active December 14, 2020 17:36
Show Gist options
  • Save c0d3x27/b23aeaa048440b40a9324f3cc91facb5 to your computer and use it in GitHub Desktop.
Save c0d3x27/b23aeaa048440b40a9324f3cc91facb5 to your computer and use it in GitHub Desktop.
Mail faker
<?php
session_start();
if ($_POST['Submit'] == 'Send'){
$to = $_POST['toemail'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$fromemail = $_POST['fromemail'];
$fromname = $_POST['fromname'];
$lt= '<';
$gt= '>';
$sp= ' ';
$from= 'From:';
$headers = $from.$fromname.$sp.$lt.$fromemail.$gt;
mail($to,$subject,$message,$headers);
header("Location: index.php?msg= Mail Sent!");
exit();
}
?>
<html>
<head>
<title>Spoof E-mail</title>
</head>
<body bgcolor="#92a8d1">
<h2 align="center">
Spoof E-mails by c0d3x27
</h2>
<p style="margin-left:15px">
<form action="index.php" method="POST">
<b>From Name:</b><br>
<input type="text" name="fromname" size="50"><br>
<br><b>From Email:</b><br>
<input type="text" name="fromemail" size="50"><br>
<br><b>To Email:</b><br>
<input type="text" name="toemail" size="50"><br>
<br><b>Subject:</b><br>
<input type="text" name="subject" size="74"><br>
<br><b>Your Message:</b><br>
<textarea name="message" rows="5" cols="50">
</textarea><br>
<input type="submit" name="Submit" value="Send">
<input type="reset" value="Reset">
</form>
</p>
<?php if (isset($_GET['msg'])) { echo "<font color=\"red\"><h3 align=\"center\"> $_GET[msg] </h3></font>"; } ?>
<h3 align="center">
WARNING: Use it at your own risk. Do not use this for Spamming!.
</h3>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment