Fix segmentaion fault in tcprules command

Changed 'tcprules' command to read input via standard input file
descriptor(STDIN_FILENO), instead of a bad descriptor. Which was
causing it to crash with a segmentation fault.

Thanks to Mr Daniel Kraemer for reporting this issue.