PDA

View Full Version : Cookie Grabber



techgrl1
12-09-2006, 09:17 PM
Can someone code me a cookie grabber for neopets please?

techgrl1
12-09-2006, 09:31 PM
please?

djr33
12-09-2006, 09:49 PM
Cookies are restricted from access by any other server than the one from which they were created.

For example:
a cookie from google.com is not accessible from yahoo.com

also, a cookie from forums.something.com is not accessible from something.com or pages.something.com, since the subdomains differ.

There is no way around this.

I suppose the only option would be to use ActiveX or a Java applet to actually go onto the users' computers and find the cookie files then use them, but that opens up HUGE security holes (in the sense that you can then grab ANY file on their computers) and may be blocked by some systems (especially ActiveX which is IE only), and they both require permission from the user to activate, so some users might not choose to allow it.
As for the code for each of these, it would be very complex, and neither is my area.

playpen911
05-16-2007, 09:31 PM
i want one too

djr33
05-16-2007, 11:44 PM
Did you not read the post? That's not possible.

You can go into your own cache to grab your own cookies, but there is no way to do it from a website from others' computers.

This is also of questionable legality, since you're basically stealing info from the user and from neopets about that user, which might even lead to a security hole, such as one that would give access to their accounts. I would hope that neopets has measures in place around this, but I have no idea, since I don't use their system.

For a useful bit of code, you can do
print_r($_COOKIE);That will give you all of the cookie data (in printed array form) for YOUR site. That is, as I said, all you can access.