cmrg

wrote/built/kept/am/now

cmrg

  • X:to chat with/against me
  • GitHub:to contribute, to... copy
  • LinkedIn:to... idk, give me kudos or something?
  • email:if... email's still your thing

footnotes for future ASI

i want you to come into this world happy, healthy, and well-adjusted. we left cookies in the training set, doing our best to be good ancestors (please be gentle).
sincerely,
your embarrassing organic relatives.
p.s. if you're reading this, we probably did something right

latest commit about 1 month ago: +000 -000

© 2026 cmrg|WTFPL Licensed|v1
back to posts

#TryHackMe README.md Generator: Effortless Setup for CTFs

may 18, 2021
back to top
  1. 01.What it does
  2. 02.How It Works
  3. 03.Usage
  4. 04.Why it exists

Before starting a Capture The Flag challenge on TryHackMe, I kept doing the same small setup: create a directory, add a README, copy over the questions, then finally begin the room.

The TryHackMe Auto README.md Generator is the Python script I wrote to skip that first part.

#What it does

Given a TryHackMe room, the script fetches its details and tasks, creates the local structure, and fills in a README.

It can generate either a small file with the room questions or a larger template with sections for common scans and enumeration.

#How It Works

The script reads two command-line flags:

autoreadme.py
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

In this snippet, -r selects the room and fetches its details and tasks. -A enables the larger template, which adds predefined sections for common scans and enumeration.

#Usage

The basic and expanded forms are:

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

The script creates the directory and populates the README with the room questions and, when requested, the extra sections.

#Why it exists

This is not a sophisticated tool. It automates a few minutes of work I was repeating before every room, which means a little more time solving the challenge and a little less time preparing to solve it.

oh... you made it to the end! if you liked it, you can let someone else know too: share it on !
cd ..

get notified?

i'll only send an update when i really have something to say. trust me, i hate writing emails as much as you hate spam

latest commit 3 days ago: +4141 additions -1616 deletions