Hôm nay ngồi buồn lại share bộ code Fake email viết bằng php. Bộ code này lâu rồi nhưng dùng vẫn rất OK. mọi người down về dùng thử nhé

Bắt đầu với file index.php
Tiếp tục với file sendmail.php
Cuối cùng là file Ảnh bg1.PNG

Các bạn up lên host cùng 1 thư mục nhé :)
Chúc các bạn thành công

Bắt đầu với file index.php
<?php
session_start();
if ($_POST['Submit'] == 'Send')
{
if (strcmp(md5($_POST['user_code']),$_SESSION['ckey']))
{
header("Location: sendmail.php?msg=ERROR: Invalid Verification Code");
exit();
}
$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: sendmail.php?msg= Mail Sent!");
exit();
}
?>
<html>
<head>
<title>Email Pranks</title>
<style type="text/css">
<!--
.style1 {color: #00FF00}
-->
</style>
</head>
<body bgcolor="#000000">
<h2 align="center"><blink>
<span class="style1">Fake Email by <a href="http://art-of-hacks.cyber4rt.com" class="style1">Art Of Hacks</a> </span></blink><br/>
<iframe title="" style="width: 300px; height: 20px;" class="twitter-follow-button" src="http://platform.twitter.com/widgets/follow_button.html#_=1319978796351&
align=&button=blue&id=twitter_tweet_button_0&
lang=en&link_color=&screen_name=novalbintangs&show_count=&
show_screen_name=&text_color=" frameborder="0" scrolling="no"></iframe>
</h2>
<h3 align="center" class="style1">
Please do not misuse this script. Use it only for having FUN.</h3>
<br>
<center>
<p style="margin-left:15px">
<form action="sendmail.php" method="POST">
<p><b class="style1">From Name:</b><br>
<input type="text" name="fromname" size="74">
<br>
<br>
<b class="style1">From Email:</b><br>
<input type="text" name="fromemail" size="74">
<br>
<br>
<b class="style1">To Email:</b><br>
<input type="text" name="toemail" size="74">
<br>
<span class="style1"><br>
<b>Subject:</b></span><br>
<input type="text" name="subject" size="74">
<br>
<span class="style1"><br>
<b>Your Message:</b></span><br>
<textarea name="message" rows="5" cols="74">
</textarea>
<br>
<span class="style1"><br>
<b>Verification Code:</b></span><br>
<input name="user_code" type="text" size="25">
<img src="pngimg.php" align="middle"><br>
<br>
<input type="submit" name="Submit" value="Send">
<input type="reset" value="Reset">
</p>
<marquee>
<p class="style1">We Are Anonymous | We Are Legion | We Are Art Of Hacks! </p></marquee>
</form>
</p>
</center>
<?php if (isset($_GET['msg'])) { echo "<font color=\"red\"><h3 align=\"center\"> $_GET[msg] </h3></font>"; } ?>
<h3 align="center">
Hey Jangan Gunakan Untuk Spam yaa :)
</h3>
</body>
</html>
Tiếp tục với file sendmail.php
<?php
session_start();
header ("Content-type: image/png");
$rno = rand(1000,99999);
$_SESSION['ckey'] = md5($rno);
$img_handle = imageCreateFromPNG("bg1.PNG");
$color = ImageColorAllocate ($img_handle, 0, 0, 0);
ImageString ($img_handle, 5, 20, 13, $rno, $color);
ImagePng ($img_handle);
ImageDestroy ($img_handle);
?>
Cuối cùng là file Ảnh bg1.PNG
Các bạn up lên host cùng 1 thư mục nhé :)
Chúc các bạn thành công