mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
truncateBanner sliced by byte offset, so a multibyte utf-8 rune landing across the limit was cut mid-sequence and emitted invalid utf-8. shodan banners routinely carry non-ascii bytes, so this corrupted logged and printed output. count runes instead so the cut lands on a boundary.