jpsenior / threataggregator

Aggregates security threats from a number of online sources, and outputs to Syslog CEF, Snort Signatures, Iptables rules, hosts.deny, etc.
MIT License
79 stars 27 forks source link

Python 2.7 compatibility issue: str.encode() with udp stream #11

Closed jpsenior closed 8 years ago

jpsenior commented 8 years ago

Python 2.7 compatibility issue: str.encode() with udp stream may fail to encode non-ascii characters when writing a udp stream packet.

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 244: ordinal not in range(128)

jpsenior commented 8 years ago

Fixed in https://github.com/jpsenior/threataggregator/commit/93fe0cf7018766b82f69e5d39251db37d9d5e4c0