If you use UPDATE=yes in /etc/cron.daily/rkhunter you get coloured output in the reporting mail. Reproducible: Always Steps to Reproduce: 1. UPDATE=yes in /etc/cron.daily/rkhunter 2. Run /etc/cron.daily/rkhunter Actual Results: Checking rkhunter data files... Checking file mirrors.dat^[[34C[ No update ] Checking file programs_bad.dat^[[29C[ No update ] Checking file backdoorports.dat^[[28C[ No update ] Checking file suspscan.dat^[[33C[ No update ] Checking file i18n/cn^[[38C[ No update ] Checking file i18n/de^[[38C[ No update ] Checking file i18n/en^[[38C[ No update ] Checking file i18n/zh^[[38C[ No update ] Checking file i18n/zh.utf8^[[33C[ No update ] Expected Results: Checking rkhunter data files... Checking file mirrors.dat [ No update ] Checking file programs_bad.dat [ No update ] Checking file backdoorports.dat [ No update ] Checking file suspscan.dat [ No update ] Checking file i18n/cn [ No update ] Checking file i18n/de [ No update ] Checking file i18n/en [ No update ] Checking file i18n/zh [ No update ] Checking file i18n/zh.utf8 [ No update ] The resolution is to simply add --nocolor to the update command in the cron script. I'll add a diff for that ...
Created attachment 190407 [details, diff] Diff for no-coloured output of the update
This is fixed in 1.3.4-r3.