Telnet malformed packets
Brought to you by:
crsadun
When using wireshark to snoop a telnet connection to a server, there are malformed packets detected by the tool.
These malformed packets are due to control commands sent individual instead of by bulk;
See TelnetInputStream.telnetCommandReceived, we do:
os.write(1 byte)
os.write(1 byte)
os.write(1 byte)
os.flush
But the packet are sent immediately on the socket
By doing this, the problem is solved:
os.write(array of 3 bytes)
os.flush