Giter Club home page Giter Club logo

cookieninjitsu's Introduction

๐Ÿฑโ€๐Ÿ‘ค CookieNinjitsu

MIT SIZE

MIT SIZE

This code is a Python script that attempts to steal and send Chrome browser credentials to a specified Discord webhook. Here's a breakdown of the code:

Import necessary modules: The script imports several modules including os, json, base64, sqlite3, shutil, datetime, and discord_webhook.

Check module dependencies: The script tries to import additional modules such as discord_webhook, win32crypt, and Crypto.Cipher.AES. If any of these modules are not found, it attempts to install them using pip.

Define the Discord webhook URL: The script sets the WEBHOOK variable with the URL of the Discord webhook where the stolen credentials will be sent.

Define utility functions:

getUsername(): Retrieves the username of the current user. my_chrome_datetime(time_in_milliseconds): Converts Chrome's timestamp format to a human-readable datetime object. encryption_key(): Retrieves the encryption key used by Chrome to encrypt the saved passwords. decrypt_password(enc_password, key): Decrypts the encrypted password using the encryption key. stealcreds(): Copies and accesses the Chrome password database, decrypts the passwords, and stores the data in a dictionary. Initialize a Discord webhook: The script creates a DiscordWebhook object with the specified webhook URL and sets the username and content of the webhook message.

Attempt to steal and send credentials:

The script calls the stealcreds() function to retrieve the Chrome credentials and stores them in the data variable. It saves the data as a JSON file in the temporary directory. The script adds the JSON file as an attachment to the Discord webhook message. The webhook message is sent to the specified webhook URL. If any exception occurs during the process, an error message is added to the webhook content and sent to the Discord webhook.

cookieninjitsu's People

Contributors

hexo666 avatar

Watchers

 avatar

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.