PyHackTheBox is an unofficial Python library to interact with the Hack The Box API.
$ pip install pyhackthebox
from hackthebox import HTBClient
# Create an API connection
client = HTBClient(email="[email protected]", password="S3cr3tP455w0rd!")
# Print the User associated with the client
print(client.user)
The documentation is available here.
- Logging into the API (and automatically refreshing access tokens)
- Challenges, Machines, Fortresses and Endgames
- Getting details
- Viewing authors
- Viewing first bloods
- Submitting flags
- Searching Users, Challenges, Machines and Teams
- Spawning and stopping Challenge instances
- Retrieving user activity
- Viewing Hall(s) of Fame (Top 100, VIP, Team and University Leaderboards)