Package: cookiescope
cookiescopeIntroductionCookiescope is a command line tool to query browser cookies.SeeTODO.mdfor hints about missing features and future enhancements.Setup (using a virtual environment)SeeDEVELOPMENT.mdfor an alternative to Pip-installing
Cookiescope. It offers the option to easily run from a source code environment.On Linux and MacOS the following command sequence creates a virtual environment
and runs Cookiescope, to display help in this case.The--system-site-packagesoption is important for Linux. It allows the
virtual environment to inherit access to system-installed packages likegi.python3-mvenvvenv--system-site-packagessourcevenv/bin/activate

pip3installcookiescopehash-r

cookiescope-hThis is the equivalent command sequence for Windows.py-mvenvvenvvenv\Scripts\Activate.ps1pipinstallcookiescopecookiescope-hSee the Usage section for other useful Cookiescope commands.Usage examplesThe examples below assume Cookiescope is available through the system path. If
not, see the section above for how to run it from a local source repository.Get helpCookiescope supports the-h/--helpoptions for command line help.cookiescope-hDisplay all browser cookiesChoose the command example below based on the desired target browser.cookiescopechrome

cookiescopeedge

cookiescopefirefox

cookiescopesafariDisplay browser cookies for a domain containing specific value dataNote that searches are always partial. In the example below, any cookies with a
domain containing "paypal" and a value containing "me@example.com" will be
displayed.cookiescopechromedomain=paypalvalue=me@example.comDisplay browser cookies in Netscape cookie jar format, e.g. for use withcurlThe-jor--jaroption selects the cookie jar output format, which can be
useful for testing withcurl.cookiescopechrome-jBuilding Cookiescope packagesIn a Cookiescope source environment the following command builds packages in thedistsubdirectory, e.g. for uploading to PyPI.tools/build.shNotesThis has been primarily used with MacOS Safari. But it also has been (briefly)
tested with other browsers on MacOS, Windows, and Linux.Here is what is currently supported:Safari on MacOSGoogle Chrome on MacOS and WindowsMicrosoft Edge on WindowsChromium on LinuxFirefox on MacOS, Windows, and LinuxFor any developer that wishes to extend it, the framework is designed for easy
expansion and adaptation.Contact:steve at wijjo.comCreditsBinaryCookieReaderThe Safari binary cookies parsing code was originally based on the
BinaryCookieReader project:https://github.com/ktnjared/BinaryCookieReader.gitPycookiecheatThe Linux/MacOS decryption code was based on the pycookiecheat project:https://github.com/n8henrie/pycookiecheatThe code was reorganized to better fit into the structure of Cookiescope.Pycookiecheat MIT LicenseThe pycookiecheat MIT License is copied below:The MIT License (MIT)Copyright (c) 2015 Nathan HenriePermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.