Skip to main content

A lightweight, ONNX-powered session handshake utility for VTOP VIT Bhopal.

Project description

VTOP Session Handshake Utility

A lightweight, high-reliability automation utility for bypassing CAPTCHA-protected authentication on the VTOP portal.

Technical Overview

This utility performs an automated "handshake" with the VTOP VIT Bhopal (https://vtop.vitbhopal.ac.in/vtop/) server to acquire an authenticated session.

[!NOTE] This utility is designed and tested exclusively for the Student Login portal.

  • Model and inference engine require only ~40-60MB of RAM, making it ideal for low-cost VPS and server-side deployment.
  • 5-stage retry loop. On any failure, a hard reset is performed—clearing cookies, rotating User-Agents, and re-fetching the login page.
  • Typical handshake takes 2.5 to 4 seconds depending on network latency.
  • Designed as a library-first utility with a custom exception hierarchy for robust programmatic error handling.
  • Since the ONNX model runs locally, the project has zero external API dependencies and requires no API keys.

Installation

  1. Install Python 3.12+.
  2. Install the package via pip:
    pip install vtop-auth-lite
    

Integration

CLI Usage

You can run the handshake via the global vtop-auth command:

vtop-auth <USERNAME> <PASSWORD>

(Alternatively, you can run as a module: python -m vtop_auth_lite <USERNAME> <PASSWORD>)

Programmatic Usage

from vtop_auth_lite.session import VTOPSessionManager
from vtop_auth_lite.auth import VTOPAuth

session = VTOPSessionManager()
auth = VTOPAuth(session)
if auth.login("username", "password"):
    # session is now authenticated
    res = session.fetch("GET", "/vtop/content")

Output:

  • Success: Prints the 64-character CSRF Token.
  • Failure: Prints a specific error code (e.g., AuthenticationFailedError) and exits with code 1.

Errors & Troubleshooting

Error Cause Solution
AuthenticationFailedError Invalid credentials. Verify your VTOP username and password.
CaptchaSolverError AI inference failure. Ensure model is inside vtop_auth_lite/models/.
NetworkConnectivityError VTOP is down or blocked. Check your internet; VTOP may be in maintenance.
UnexpectedError Unhandled system crash. Check handshake.log for a detailed traceback.

If you encounter a persistent breaking error, please submit an issue with the contents of handshake.log.

Repository Structure

  • vtop_auth_lite/: The core package (Auth, Session, OCR, and ONNX models).
  • pyproject.toml: Package build configuration.

Developed for research, development, and educational purposes.

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

vtop_auth_lite-0.1.2.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

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

vtop_auth_lite-0.1.2-py3-none-any.whl (5.1 MB view details)

Uploaded Python 3

File details

Details for the file vtop_auth_lite-0.1.2.tar.gz.

File metadata

  • Download URL: vtop_auth_lite-0.1.2.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vtop_auth_lite-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0bda0bcbc89bc22fe123d4bf565c51f0808ab5efbb6cabb6759e6ca18e925a7e
MD5 53e2bcafd91fe3d73f26809ea80c3441
BLAKE2b-256 d034ea976b3d783864f8174a3ad09eea3612120ef2c980ebea0e55d7cd7e0b18

See more details on using hashes here.

Provenance

The following attestation bundles were made for vtop_auth_lite-0.1.2.tar.gz:

Publisher: publish.yml on osmium1/vtop-auth-lite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vtop_auth_lite-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: vtop_auth_lite-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vtop_auth_lite-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 698250e05a2f5b67b71477e9576e5d8c805cd594f1286e9f06714abeb0c15fb5
MD5 38d28c0576f92441c481b072edd5d74b
BLAKE2b-256 3366c33da343d01facfb36fcf8148e83dd535a3a43e75c117670b7302cd96c05

See more details on using hashes here.

Provenance

The following attestation bundles were made for vtop_auth_lite-0.1.2-py3-none-any.whl:

Publisher: publish.yml on osmium1/vtop-auth-lite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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