Skip to content
mooder1Public

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htbx

A command-line interface for HackTheBox, built on top of the official HTB API v4.

Features

  • View your profile, rank, and stats
  • Browse and spawn active/retired machines
  • Submit flags for machines and challenges
  • Browse challenges by category, view details, download files, start/stop instances
  • Interactive menus with keyboard navigation

Requirements

  • Python 3.10+
  • A HackTheBox account with an API token

Installation

git clone https://github.com/mooder1/htbx.git
cd htbx
pip install -r requirements.txt

Configuration

Get your API token from https://app.hackthebox.com/account-settings under App Tokens.

On first launch, you will be prompted to enter it. The key is stored in ~/.config/htb-cli/config.json with permissions set to 600.

You can also set it via environment variable:

export HTB_API_KEY=your_token_here

Usage

python3 main.py

Navigate with arrow keys, confirm with Enter, go back with ESC.

Project structure

htbx/
├── main.py          # entry point and action handlers
├── config.py        # API key storage
├── requirements.txt
├── api/
│   ├── client.py    # authenticated HTTP session
│   ├── machines.py  # machines endpoints
│   ├── challenges.py
│   └── profile.py
└── ui/
    ├── menus.py     # interactive menus
    └── tables.py    # rich tables and panels

Author

mooder1

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages