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 . 

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.1.tar.gz (9.8 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.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yachecker-1.0.1.tar.gz
  • Upload date:
  • Size: 9.8 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.1.tar.gz
Algorithm Hash digest
SHA256 f6ebb7cc1bc1e62fb456a152ab9230c68e1663f3f86fa699b1b1a715ff999ab9
MD5 bd827bec02a3205df8972b8541a1a0f1
BLAKE2b-256 c7086ef359c80aebe3f9a6e939fcf5e6a77c11c5c6e1c5153914e62415c9b798

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yachecker-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 141bbcb4e1a52ec93c8f2cf67f6501dd16353675f727dbdc4a54418fdd7a3efd
MD5 10f38d630264d1218a4f06aa1d54609e
BLAKE2b-256 809a1063b2f68601b36fb9321b1706a721e350cf557fa93826839f0b170b9bbb

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