Skip to main content

A tool for extracting and analyzing cookies and tokens from websites

Project description

Cookie_Monster

Cookie_Monster is a Python tool designed to capture and analyze session IDs, cookies, and web tokens from websites. It scans a provided URL to extract these details and performs basic analysis to identify potential vulnerabilities or types of tokens and cookies.

Features

  • Extracts Cookies and Tokens: Retrieves cookies and tokens from HTTP headers and JavaScript embedded in the page.
  • Basic Analysis: Identifies whether extracted cookies or tokens might be session-related or authentication-related.
  • Command-Line Interface: Run the script from the command line with a single URL parameter.

Installation

  1. Ensure you have Python installed on your machine.

  2. Install the required Python packages using the following command:

    pip install -r requirements.txt
    

    Where requirements.txt should include the following:

    base65
    requests==2.28.2
    beautifulsoup4==4.12.2
    

Usage

Run the script from the command line by providing the URL you want to scan. Example usage:

python Cookie_Monster.py http://example.com

This file was created before packaging below is the commands to run as pypi:

pip install Cookie_Monster
'''

cookie-monster


### Arguments

- `<URL>`: The website URL to scan.

## Example Output

Here's an example of what the output might look like:

```plaintext
[*] Scanning website: http://example.com
[*] Cookie: session_id = abc123
Analyzing Cookie: session_id
[!] Cookie may be a session cookie.

[*] Token: auth_token = xyz789
Analyzing Token: auth_token
[!] Token may be an authentication token.

Analysis Details

  • Cookies:

    • If the cookie name contains 'session', it might be a session cookie.
    • If the cookie name contains 'token', it might be a token.
  • Tokens:

    • If the token name contains 'session', it might be a session token.
    • If the token name contains 'auth', it might be an authentication token.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

Built by DeadmanXXXII.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

C00ki3_M0nster-0.1.tar.gz (290.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

C00ki3_M0nster-0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file C00ki3_M0nster-0.1.tar.gz.

File metadata

  • Download URL: C00ki3_M0nster-0.1.tar.gz
  • Upload date:
  • Size: 290.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for C00ki3_M0nster-0.1.tar.gz
Algorithm Hash digest
SHA256 d74fd7252165d576caa171b723d296c740955df0bb87de4e3b549cca348cc602
MD5 cfe032a546b2380f91a4de6fcebcd02f
BLAKE2b-256 ab68a11161eabe54a917c92c9b91a09255471d51b1af6d7348f98c17032a99bb

See more details on using hashes here.

File details

Details for the file C00ki3_M0nster-0.1-py3-none-any.whl.

File metadata

  • Download URL: C00ki3_M0nster-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for C00ki3_M0nster-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c5a979b198dbb4301260a9c5f731f5f04156fbcaba4007a50bc21595e68e83e
MD5 24f73708c4aa28ee2b4ba53d692b1273
BLAKE2b-256 61d08a25536e696691a67a90bf3cd0529437e972683e61bb67f9aee09e19bd75

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page