fail2ban/fail2ban — pull request #806 by weberhofer (2014-09-08 08:31:37+00:00)
Title: Fixed encoding for pure-ftpd messages

pure-ftpd messages are not encoded in UTF8. To have those messages available in fail2ban I have converted them to unicode. I've used the following commands to convert the messages to UTF8 accessing the pure-ftpd sources:

grep MSG_AUTH_FAILED_LOG pure-ftpd-1.0.36/src/messages_[defhint]* | grep -Po '".*?"' | recode latin1..utf-8 | tr -d '"' > messages
grep MSG_AUTH_FAILED_LOG pure-ftpd-1.0.36/src/messages_[pr][to]* | grep -Po '".*?"' | recode latin1..utf-8 | tr -d '"' >> messages
grep MSG_AUTH_FAILED_LOG pure-ftpd-1.0.36/src/messages_[cps][slkv]* | grep -Po '".*?"' | recode latin2..utf-8 | tr -d '"' >> messages
grep MSG_AUTH_FAILED_LOG pure-ftpd-1.0.36/src/messages_ru* | grep -Po '".*?"' | recode KOI8-R..utf-8 | tr -d '"' >> messages
grep MSG_AUTH_FAILED_LOG pure-ftpd-1.0.36/src/messages_[kz]* | grep -Po '".*?"' | tr -d '"' | recode big5..utf-8 >> messages