The image.php file creates and writes a json dump of the request made (where the cookie is). The stealing part is when you inject the code on random web site.
Except a browser doesn’t send cookies from one random domain to an “image” hosted on another domain, hence no “theft”. Cross origin cookie rules have been the same for eons.
Well, it worked for me. I was using Moodle in class and the teacher opened a chat so we can all discuss some project; I realized the chat accepts html and wrote this script. I hosted it on my website and it worked.
If you expect anyone to evaluate your github stuff and care about the result, then I suggest adjusting your commit dates to reflect reality. https://stackoverflow.com/q/454734/fnord explains how to.
Well, it's done. I removed the repo. I spent my entire day yesterday arguing with people if this works or don't. I found some links proving my point, but I'm not a expert on the matter, so I give up.
Here's the link about the browser sending cookies with request to external image:
The code is old, I'm not posting new things, I'm posting things I've been doing since I started college. It's been recent since I decided to put all my codes and experiments on git hub. This one in particular caused more headache then anything, so I took it down.