http://www.perlmonks.org?node_id=986060


in reply to sending hexadecimal data via telnet

"\xff" is the Telnet IAC (Interpret As Command) character. If you want to send an actual "\xff" character as data, you need to double it; "\xff\xff" Since it seems you want two "\xff" bytes in a row as data, you need to send 4 "\xff" bytes. See RFC854 pages 13-14.

  • Comment on Re: sending hexadecimal data via telnet