Skip to content

Put Hack The Box machines in Notion Database with ready-made template for easier exploitation notes

License

Notifications You must be signed in to change notification settings

spllat-00/hackthebox-notion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackthebox-notion

This script allows you to pull data from HackTheBox and store it in Notion with a pre-made template.

Requirements

Installation

  1. Clone this repository:
git clone https://github.com/spllat-00/hackthebox-notion.git
  1. Install the required Python packages
pip install -r requirements.txt
  1. Setup your Notion integration and get your API credentials.

    • Visit Notion integration

      NotionIntegration-Step1

    • Add to your required workspace

    • Give the integration a name: HackTheBox-Notion (Can be anything as per user)

    • Add logo for easy access. (Logo provided in git repo)

    • Hit Submit

      NotionIntegration-Step2

    • View your Secret, by click show

      NotionIntegration-Step3

    • This is: NOTIONTOKEN in .env file

  2. Setup your Hack The Box App Token

    • Visit Hack The Box Settings

    • Click Generate Identifier

      HackTheBox-Step1

    • Give it a name: HackTheBox2Notion (Can be anything as per user)

    • Set the expire time: 1 Year

      HackTheBox-Step2

    • Copy the App Token

      HackTheBox-Step3

    • This is: HTBTOKEN in .env file

  3. Copy the template Hack The Box - Notion Template

  4. Connect the newly created notion integration to the workspace

    • Select options in top-right.

    • In Connections > Connect to, select: HackTheBox-Notion

      NotionConnections-Step1

    • Hit Confirm

      NotionConnections-Step2

  5. Find the Database ID

    • On the database of gallery, hit 6-dots

    NotionDatabaseID-Step1

    • Select Copy link

    NotionDatabaseID-Step2

  6. Create a file with name .env file with NOTIONTOKEN, HTBTOKEN and NOTIONDATABASEID values from above

Usage

Run the script

python3 HTB2Notion.py

For checking the help, use flag: -h / --help

Screenshots

  1. Running of the script for new machines

RunningScript

  1. Template

NotionMachineTemplate-Step1

NotionMachineTemplate-Step2

NotionMachineTemplate-Step3

Configuration

  • HTBTOKEN=HTB_JWT_Token
  • NOTIONTOKEN=Notion_Token
  • NOTIONDATABASEID=32-bit-ID

Contributing

Contributions are welcome! Feel free to open issues or pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Put Hack The Box machines in Notion Database with ready-made template for easier exploitation notes

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages