Coder Social home page Coder Social logo

cybersec-scripts's Introduction

CyberSec-scripts

This repository is intended for storing Python scripts for the purpose of learning and developing new skills.

Keylogger

Project Disclaimer:

This project is undertaken solely for educational purposes, and there is no intention of engaging in any malicious activities. It is created with the sole purpose of learning and improving skills. Any use of the project for harmful or unethical actions is strictly discouraged.

Description

The keylogger works as follows: If executed, it will run until the process is killed or interrupted. It works by logging all keystrokes and captures screenshots every minute by default. The script saves the screenshots and logs in the logs and imgs directories.

Types of Logs:

There are two types of logs:

  • Raw: This type of log records all the keystrokes in the order the user inputs them.
  • Processed: This type of log only records alphanumeric characters, with the goal of storing messages in a readable format.

Credentials

If you want to try it you must implement the following script named credentials.py and place it in src folder:

def get_credentials_telegram():
    """
    Return a dictionary containing the necessary credentials for accessing the Telegram API.

    :return: A dictionary with the following keys:
             - "TOKEN": The access token for the Telegram bot.
             - "CHAT_ID": The ID of the chat to which the bot will send messages.
    :rtype: dict
    """
    return {
        "token": token,
        "chat_id": chat_id
    }

Understanding Telegram Bot Credentials

When working with Telegram bots, two key components are essential for communication: the token and the chat_id.

Token

The token serves as a unique identifier for your Telegram bot. It is provided by the BotFather, Telegram's tool for creating and managing bots. This token is crucial for your Python script to authenticate and interact with the Telegram API, allowing your bot to send and receive messages. Ensure that you replace the placeholder token in the script with the actual token assigned to your bot by the BotFather.

Chat_id

The chat_id represents the unique identifier for a specific chat or conversation on Telegram. To obtain the chat_id for your Telegram bot, start a chat with the bot, send a message to trigger an update, and make a request to the Telegram Bot API using the URL https://api.telegram.org/bot{TOKEN}/getUpdates, replacing {TOKEN} with your actual bot token. Inspect the JSON response for the chat object within the message object, which contains the chat_id. Use the obtained chat_id in your Python script to ensure seamless communication with the Telegram API.

cybersec-scripts's People

Contributors

migue8gl avatar

Stargazers

Warren 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.