Menu

#6 Telnet malformed packets

open
nobody
None
5
2009-11-16
2009-11-16
Anonymous
No

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

Discussion


Log in to post a comment.