Skip to Content

TryHackMe Generator: Effortless Setup for CTFs

For those who frequently tackle Capture The Flag (CTF) challenges on TryHackMe, you know the drill: before diving into the challenge, there's the routine task of setting up directories and README files.

It's necessary but can feel a bit tedious. That's where the TryHackMe Auto Generator comes into play. It's a straightforward, no-frills tool designed to make your CTF setup just a bit easier.


The Tool: Simple and Effective

The idea behind this Python script is simple: automate the creation of README files for TryHackMe CTF challenges. It's not about reinventing the wheel; it's about adding a little grease to make it spin smoother.

Whether you need a basic README or a more detailed one, this tool has got you covered with just a couple of commands.

How It Works

At its core, the script uses command-line arguments to determine what you need:
# Room details
for arg in sys.argv:
if arg =="-r":
room = thm.room_details(sys.argv[(sys.argv.index(arg) + 1)])
room_questions = thm.room_tasks(sys.argv[(sys.argv.index(arg) + 1)])
if arg =="-A":
full_readme = True

This snippet is the heart of the script. It checks for arguments -r and -A. The -r flag is used to specify the room, fetching its details and tasks. The -A flag, when used, switches the script to generate a more aggressive README, a complete document filled with predefined sections for pretty much every scan and enumeration you can think of.

Usage: Quick and Intuitive

Using the tool is as straightforward as it gets:

  1. Basic README: python -r vulnversity
  2. Advanced README: python -r vulnversity -A

That's it. The script takes care of the rest, from creating the directory to populating the README with relevant questions and sections.

Wrapping Up

The TryHackMe Auto Generator is a small contribution to the world of CTF challenges. It's a utility born out of personal need and a desire to spend more time solving puzzles and less time setting them up. For fellow CTF enthusiasts, I hope this tool adds a bit of convenience to your challenge-solving endeavors.

Remember, sometimes it's the little things that make a big difference in our day-to-day tasks. Happy hacking!


Get notified!

I promise to send you updates with the best content.
I hate writing emails as much as you hate spam.


A dead-simple React 19 "framework" implementation from scratch



Think "docker stats" but with beautiful, real-time charts into your terminal. 📊



a htmx like experience in Next.js with RSC and quite a bit of questionable code.



Supercharge Your VTEX IO Workflow with a Lightning-Fast CLI Alternative. Enhance Developer Experience and Boost Productivity.



Uma stack sob-medida escrita em Rust para os desafios da rinha e somente isso. Incluindo load balancer, servidor HTTP e banco de dados.



Expose specific colors from your Tailwind CSS theme as CSS variables

CC BY-NC 4.0©rafaelrcamargo.