Hack The Box

Create an App Token on your HTB Account Settings page

Notion

Database

Duplicate the template in your workspace :

https://malsius.notion.site/malsius/291c7811de294f52943c98c755209595?v=e33b1ccbf7d54b6ba3ac33fc879165d9

Your Notion DB ID will then be as follows

Integration

Go to your integrations in Notion and create a new one

Then show you API key and copy it

On your database, add a new connection for your integration

Simple usage

./htb-notion.py --htb-token HTB_APP_TOKEN --notion-token NOTION_API_KEY --notion-db NOTION_DB_ID [--debug]

GitHub Actions

Duplicate the project

On the project page, you can duplicate it as follows

Add GitHub Actions secrets

Add these 3 secrets in your GitHub settings :

  • HTB_APP_TOKEN

  • NOTION_API_KEY

  • NOTION_DB_ID

Run the workflow