Shell commands to echo a line at a time from a file to telnet: cat commands.txt | ( while read line; do echo $line; sleep 1; done ) | telnet <someIP> <somePort>
Note that trying to dump received bytes (telnet localhost <port> > file.out) is problematic, use netcat instead.
Page last modified on August 03, 2020, at 01:24 PM