Skip to content

thisago/iecook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iecook

Cook all your browser cookies!

About - Why - How - Usage - License

Warning This is a dangerous way to get cookies, any program listening in port 5566 can request the cookies sent by extension too.
So don't forget to disable the extension after use!

About

Have you ever needed to get httpOnly cookies to use in your application? No? Doesn't matter, this library gives you this power!

It gets all cookies from all Firefox containers too! :D

Why?

This is needed to interface with authentication in some websites.

Currently, you can see this library used in thisago/clibard

How?

It will start an HTTP server that waits the extension requests the website which you want the cookies and send to server the wanted cookies.

When the server receives the cookies, it closes itself and return the cookie for you!

Setup

Tou need to install the client extension: In Firefox

Note Firefox automatically deletes on close. More secure

Warning The client extension doesn't works when privacy.firstparty.isolate is enabled at about:config at Firefox.

  1. Go to about:debugging#/runtime/this-firefox
  2. Click in "Load Temporary Add-on..."
  3. Select the file: client/extension/manifest.json

In Chrome

  1. Go to chrome://extensions
  2. Activate "Developer mode"
  3. Click "Load unpacked"
  4. Select client/extension dir

Note Don't forget to keep your browser open! :)

Usage

The usage is pretty simple

let cooked = iecook "https://google.com"

It returns to you a seq[IeCook]

License

This library is FOSS, licensed over MIT license!