Skip to Content
Back

TryHackMe README.md 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 README.md Generator comes into play. It's a straightforward, no-frills tool designed to make your CTF setup just a bit easier.

Contents

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:

autoreadme.py
# 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 autoreadme.py -r vulnversity
  2. Advanced README: python autoreadme.py -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 README.md 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!

38
Back

Get notified!

I'll only send updates with the best content. Trust me, I hate writing emails as much as you hate spam.

r19

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

#bun#esm#react#rsc

ds

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

#cli#docker#hacktoberfest#rust#stats

htnx

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

#htmx#nextjs#react#rsc

quix

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

#performance-analysis#rust-lang#vtex#vtex-io#wip

tailwindcss-expose-colors

Expose specific colors from your Tailwind CSS theme as CSS variables

#tailwind#tailwindcss#tailwindcss-plugin

nextjs-zustand-setup-ssr

The bare minimum for a Zustand setup with server-side data and client-side hydration in Next.js

#typescript
CC BY-NC 4.0|CMRG©