By using data encryption and secure protocols. ARP poisoning. DAI. Telnet sends its packets in plain text and does not support encryption. Using the sniffer-detect script within Nmap.