[Guide] Chocolate Chip, Extra Rich: How to Cookie Grab
First off, thank you to Inq for giving me a couple accounts to cookie grab.
Secondly, thank you to Kyo for his expertise; most of what I've learned is from him. The rest, I learned along the way. Now, onto the guide.
Thirdly, yes. You really are looking at a cookie grabbing guide.
Cross-site scripting (XSS) is possible when a site has insecure coding. When websites allow us to interact with them (e.g. search box, comment boxes, etc) and don't keep it secure, they render themselves vulnerable to code injection.
Basic knowledge of HTML
A website host (nearlyfreespeech, tech.coop, netfirms, etc)
Writing the script
People use PHP to retrieve the cookies and record it to a text file. A PHP script begins with <?php and ends with ?>.
Sending anyone the link to your website with the script in it (1) snags their cookies (2) records in a log (3) redirects them to whatever link specified.
Finding an exploit
(Note: The demonstrated exploit has been patched.)
Take for example the below and its corresponding result:
Bingo, a ‘1’ pops up.
Now try <script>alert(document.cookie)</script>
Now you should have a popup that shows you your cookies. The highlighted portion is the neologin, which is the only information we need.
You don’t actually write the data to the server unless you inject a script that modifies the page on the server’s end. The only thing you change is how the dynamic page acts on your end. As a result when you send someone else the page, you have to send him or her the link with the injection already in that page.
Using this script will grab someone else’s cookies and log it on your site.
Unfortunately, document.cookie is blocked on Neopets. There are/have been ways around this and alternatives (not listed).
Using the Cookies
Now that you’ve got their cookies recorded, you need to use them. This is done by replacing your Neopets cookie with ttheir cookie. Fortunately, we have addons to make it easy for us to do that.
FIREFOX: Add 'n' Edit Cookies (Click)
Chrome: Edit This Cookie (Click)
How Did People Place Cookie Grabbers Onsite?
Above, we discussed CGing that involved having someone click on a link that took them to an offsite page to snag their cookies. But how did people CG in the last petpage scare? This was mostly due to an error on TNT's part; you were able to link offsite by manipulating the battledome stats. This, of course, has since been patched due to rampant abuse.
In a similar fashion...
Getting into CSS a bit...
Of note, there have been rumors that someone is working on a cookie grabber where simply clicking on a thread in the BD Chat/Pound Chat/Trade Chat gets you CG'd... cough. But alas, it's simply a rumor.
Finally, I won't help you cookie grab others or write a cookie grabber for you. You can use Google if you want to learn more. Suggestions for improvement are happily taken. Did I make any mistakes? Correct me.
And since you were so patient and hardworking...
Last edited by Leet; 01-14-2012 at 05:24 AM.
The Following 19 Users Say Thank You to Leet For This Useful Post:
Emiley (01-13-2012), fairydust201 (10-13-2012),hectorvazc (01-13-2012),hiddenwaybelow (01-13-2012),jackingskibf (02-20-2012), Kad (01-13-2012), kooldude888 (01-17-2012),Lindsay (11-10-2014), Mango (01-13-2012), Mike (01-13-2012), Monark (02-17-2012),n00ne (02-16-2012),Platinum (11-30-2014),Reemer (01-13-2012),Slasher (02-16-2012),Valent (07-12-2014),Venus (01-13-2012),Yue (01-17-2012)
- Rep Power
Just thought I'd give this a bump (:
Should have had a look at the screenshot before I started going for the shell lol. Shocked there has been so little interest in this thread. Very well explained and very helpful, thanks
I, too, am surprised
i use net2ftp .
do i just make a new file
& add that code in ????
Originally Posted by fairydust201
^Like in that kind of file, right? Then yeah.
i had it but i just cant get the cookies to show up i have to look for that on foxfire ;;
im glad you put this out tho ive been looking for a cookie grabber for a
while if you dont mine can you pm me on this @Leet =)
Why would I PM you? If I'm the one helping you, shouldn't it be your responsibility to PM me? If this sounds quite rude, it's because I feel that it's also quite rude to ask someone to PM you when you could easily PM them yourself. It's a matter of etiquette.
Either way, I'm happy to answer questions but I'm not willing to build a cookie grabber with you.
*_ Relax um ;; the cookie grabber download Dose not Work with firefox 10 =]
so you might wanna put that out there but
i will pm you if thats what you want no hard feeling =)
Nm : lol i gotta down grade for foxfire -_- found the problem @Leet