Skip to content

Python script to summarize TryHackMe room task descriptions using a (local) hosted ollama instance

Notifications You must be signed in to change notification settings

januwe/thm-summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TryHackMe room description summarizer

It is very important to take notes during exercises, but can be exhausting and annoying. To be quicker at taking notes I wrote a simple script that crawls descriptions from a given TryHackMe room, which will be used to send to ollama running in the background. Ollama will output a concise summary of the descriptions using a modified prompt. I assume that you already have a instance running of ollama, otherwise go here to get started with it.

If you want to summarize a room which requires a subscription, you need to set the THM_SID to your connect_sid - Value when logged in at TryHackMe.

Installtion

  1. Clone this repo and install the python requirements
git clone https://github.com/januwe/thm-summarizer.git
cd thm-summarizer
python3 -m pip install -r requirements.txt
  1. Set environment variables in example env file and rename it
`env.example`
# TryHackMe vars
THM_SID="" # optional - only needed if you want to summarize a paid room

# Ollama vars
OLLAMA_URL="" # e.g. "http://localhost:11434"
OLLAMA_MODEL="" # e.g. "llama3.1"
mv env.example .env
  1. Run script to summarize room (e.g. rrootme)
python3 thm_summarizer.py -r "rrootme"

About

Python script to summarize TryHackMe room task descriptions using a (local) hosted ollama instance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages