Because CTF write-ups are highly dependent on the specific vulnerability being tested, I can provide a more detailed guide if you share: The of the challenge (Web, Pwn, Crypto, etc.).
It is strongly recommended to third-party "generator" sites like PwnHack.com for the following reasons: Pwnhack. Com Cw3