santropolroulant / smell-test

Monitor router traffic and flag weak TLS configuations
GNU General Public License v3.0
1 stars 2 forks source link

Escape raw bytes in the output #11

Closed kousu closed 6 years ago

kousu commented 6 years ago
[+] User asked for "ExoduS.DeSYnC.com." DNS responded "ns1hovercom    dnsmaster�KY��N*0  :��"

those raw bytes are dangerous to mix with terminals. They can mess up the terminal settings. We should use repr(), or maybe only print the content if we are returned an IP address.