How to unsupress local echo

后端 未结 4 782
春和景丽
春和景丽 2021-01-04 23:43

I am trying to suppress the local echo of a password in a telnet session by sending 0xFF 0xFD 0x2D (IAC DO SUPPRESS_LOCAL_ECHO). This works fine.

My trouble is en

4条回答
  •  孤街浪徒
    2021-01-05 00:20

    Wrong sequence above. According to some document i found, my sequence should be wrong (WILL/WONT flipped). However it worked with Putty and MS Telnet - strange.

    Please try this:

    // Supress Echo on client:
    out.write(0xFF);    // IAC
    out.write(0xFB);    // WILL
    out.write(0x01);    // ECHO
    
    // Enable again with:
    out.write(0xFF);    // IAC
    out.write(0xFC);    // WONT
    out.write(0x01);    // ECHO
    

提交回复
热议问题