Rating:
Write shellcode to scan in additional shellcode, use that shellcode to get a shell. Check out the writeup for a much more detailed explanation.
https://github.com/guyinatuxedo/ctf/tree/master/defconquals2019/speedrun/s6
I don't remember