Bind Shell
Look at this link for some c that creates a bind shell. If anything doesn't work, you're a hacker, you have google...
https://rastating.github.io/creating-a-bind-shell-tcp-shellcode/
Implement a bind shell in c, execute it with your portknocking, and connect to it with netcat.
When you are done, submit your C.