Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.73 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.73 KB

HTB Active Machines Threads Automater

This is a bot to get the current active HTB machines and make a forum channel with threads for easy access and communication between peers. This was made for the University CTF team I help administrate MQCybersec.

image

.env Setup

Firstly, rename the .env.template to .env, here is a table for the key and value pairs that are expected.

Key Name Value Type Value Options Optional? Default Value Purpose
DISCORD_TOKEN String - No - The token for your Discord Bot.
DISCORD_GUILD_ID String - No - The ID for the Discord Server your bot is in.
HTB_API_TOKEN String - No - The HTB API Token generated here.

How to get a HTB API Token

Go to this url when logged in. You should have a button to Create App Token, do so then set the value of the token to the generated token.

Using the bot

This bot was designed on Python 3.10.9 but <3.7 should function perfectly fine.

Firstly install the requirements:

python3 -m pip install -r requirements.txt

And then run the bot:

python3 main.py

Notes

This bot was designed with the help of HTB v4 API Documentation.

To-do

Known Bugs