Skip to main content

YAC: Yes Another Checker

Project description

YAC: Yes Another Checker - main.py

Overview

The yac module of YAC (Yes Another Checker) is a command-line tool for checking the validity of login credentials across multiple websites. It supports customizable website configurations and logging capabilities, making it an efficient solution for automated credential validation.

Features

  • Perform single or multiple login checks on specified websites.
  • Support for custom payloads and headers for each website.
  • Logging of results with timestamps, including successful and failed login attempts.
  • Save results to a CSV file.
  • Command-line interface with argparse for ease of use.

Prerequisites

  • Python 3.6 or higher
  • Required Python packages:
    • requests
    • argparse
    • Any other dependencies as specified in the setup.py file

Installation

Clone the repository and install the package:

git clone -b package https://github.com/hithmast/YAC.git
cd YAC
sudo python setup.py install # or pip install . 

Or

pip install yachecker

Ensure that you have the necessary configuration file located at ~/.yac/config/websites_config.ini. The script will utilize this file to perform login checks.

Usage

Command-Line Interface

The script can be run from the command line with various options:

yac [options]

Options

  • -c, --config: Print a list of websites in the config file.
  • -s, --single: Perform a single check on the specified website number.
  • -m, --multiple: Perform multiple checks on specified website numbers (comma-separated).
  • -C, --combo: Path to a credentials file for a single check.
  • -o, --output: Specify the output file for the results of a single check.

Examples

Print Configured Websites

yac -c

Perform a Single Check

yac -s 1 -C credentials.csv -o output.csv

Perform Multiple Checks

python main.py -m 1,2,3

Logging

The script generates a log file output.log in a logs directory, creating a subdirectory based on the current date. This log file contains detailed information about the execution, including successful and failed login attempts.

Saving Results

Upon termination (either by completing the checks or by pressing Ctrl+C), the user will be prompted to save the results to a file named results.csv.

Configuration

The website configurations should be defined in the ~/.yac/config/websites_config.ini file. The configuration file should specify the login URLs, success and failure indicators, payloads, and headers for each website.

Contributing

Contributions are welcome! Please fork the repository, make your changes, and submit a pull request. Ensure that your code follows the project’s coding standards and includes relevant tests.

License

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

Author

Ali Emara
ali.emara175@gmail.com
GitHub

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

yachecker-1.0.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

yachecker-1.0.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file yachecker-1.0.2.tar.gz.

File metadata

  • Download URL: yachecker-1.0.2.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for yachecker-1.0.2.tar.gz
Algorithm Hash digest
SHA256 04ba2e04dc325029bca8e0115d268a7a113ad3b58ae1b677c8387fc551b1f028
MD5 b7d015fa2b206e0be18ff1627dd33056
BLAKE2b-256 25431061383cdd0ad51e72823fb353aa8744f40e0ed67e32a45a1b67419f6bfb

See more details on using hashes here.

File details

Details for the file yachecker-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: yachecker-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for yachecker-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fed529a444448ca40c41f0dac33a06617147f4d1008d2e46f7c37465a500ff1d
MD5 c3b390e4bc3d36d0f5cd3f3fdce33ff4
BLAKE2b-256 9a726ee0c1e553f93afa62cf83d1d8fd74c3f4ea8febb494efa001335c9aed30

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