Security through Induced Boredom is a personal favourite approach of mine. Not as exciting as something like The Fray, but I love making it as tedious as possible to see my secrets, so you can only get one character at a time!
Oh my...this looks fun, we can sit here for an unknown amount of time to figure out the flag or...we can find the upper bound of the index and then maybe just maybe save our sanity.
Thankfully Linux has a nifty little command we can use seq that will print a sequence of numbers. We use seq and pipe it with the netcat command provided to an outfile and we get the following.
Once you have the outfile - you have parts of the flag, personally I tossed the file into GPT and got the flag. Remember AI can be your friend if you want it to be.
No AI was harmed in the making of this post that I know of atleast 😀