Writing a program on C, using libnet and libpcap to impersonate an RSH client and inject my own command on the server machine, running RSHD.
As I understood, the command should be in the 'payload' of the ACK packet, but in the format, that RSHD will pass it to the shell.
How should I assemble the packet to achieve this?
Try to get a dump of network packets (with tcpdump, tshark, etc) from normal rsh client.