Skip to main content

A htb library

Project description

unofficial Python library to interact with the Hack The Box API with the newest feature SSO login

Usage

import asyncio
from htbst import HTBClient, HTBLabs

async def main():
    client = HTBClient('elliotandmrrobot@ro.ru', 'my_secure_password')
    sso = await client.run()

asyncio.run(main())

Usage for getting user progress

import asyncio
from htbst import HTBClient, HTBLabs

async def main():
    client = HTBClient('elliotandmrrobot@ro.ru', 'my_secure_password')
    sso = await client.run()
    labs = HTBLabs(sso_code=sso)
    print(labs.get_user_progress())

asyncio.run(main())

Current Features

HTBst provides several features to interact with the Hack The Box API:

Authentication

  • Email and Password Authentication: Authenticate users using their Hack The Box email and password to obtain an access token for further API requests.

Labs Interaction

  • Retrieve User Progress: Get detailed information about the user's progress in various labs, including machine completions, track progress, and more.

  • Get User Summary: Fetch a summary of the user's profile, including system owns, user owns, rank, points, and more.

  • Get User Rank Information: Retrieve detailed information about the user's rank, including current rank, next rank, and season ranking.

Academy Interaction

[ coming soon ]

CTF Interaction

[ coming soon ]

Project details


Release history Release notifications | RSS feed

This version

0.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

htbst_replican-0.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file htbst_replican-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for htbst_replican-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 33389978f0ccd4d878401337d206dff13df7cc0a4b4ffd285647f2bdec999d6e
MD5 25db06d1578d9963a5e4b74cf3f3b825
BLAKE2b-256 28a1fb68278eb3aa625fd39c16c293657b16f138414a2d2f4e362c59217fe3c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page