Giter VIP home page Giter VIP logo

cookiegrabber's Introduction

cookiegrabber

Simple Python3 script/CLI tool to grab and dump cookies from all browsers. Building further capabilities to make requests, sort, etc. as time goes on. This tool is focused around legal, ethical, and education penetration and security testing. Please read the disclaimer before proceeding with installation and/or usage.

Install and usage

  1. git clone https://github.com/rainmana/cookiegrabber
  2. cd cookiegrabber
  3. pip install -r requirements.txt
  4. python3 cookiegrabber.py --help for commandline-based help
  5. python3 cookiebrabber.py function --help for specific help on commandline arguments and options
  6. python3 cookiebrabber.py get-all-cookies to dump all cookies from all browsers in pretty JSON (example functionality)

Dependencies

  • beautifulsoup4==4.11.1
  • bleach==5.0.1
  • browser_cookie3==0.16.1
  • requests==2.28.1
  • rich==13.3.1
  • typer==0.7.0

Latest Update as of 1/29/2023:

  • Get human-readable text from a site of your choosing to test whether extract cookies can load site content where they're typically required
  • Implemented Mozilla Bleach to strip new-line characters and other text artifacts from JSON-formatted cookiejars to ensure readability
  • Get all cookies from all browsers for a domain of your choice
  • Added Textualize's Rich library which integrates automagically with Tiagalo's Typer for improved color-coding with Typer-provided command line arguments and output
  • Cleaned up code and added actual comments and standardized function names

TODO:

  • Add requirements.txt
  • Add installation instructions
  • Add a screenshot grabbing function
  • Allow use as a module for additional functionality
  • Add command line arguments to specify browser, domain, site/page, screenshots, etc.
  • Structure more/add features making this more pentest/security auditing focused
  • Add user-requested features and other ๐Ÿฆ„'s :)

DISCLAIMER:

This tool is provided for educational and responsible legal use only. I claim no responsbility for any end-users' usage in any way in whole or in part of usage of this tool. Using this tool without prior authorization is likely against the law in your locality/jurisdiction. It is the end-users' responsiblity to ensure they are in compliance with and adhere to any local laws regarding penetration testing, security testing, general usage, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.