Cute.

Hidden away in there is a little gem called "nc" which is an executable that allows arbitrary connection to a network socket.

The script is only really "printing" your typed commands to the socket and copying any incoming response to the tty which is why it's so short.