php-malware-finder
php-malware-finder copied to clipboard
generate-whitelist.py - multiple issues on centos 6.10
Hi,
missing encoding :
./generate_whitelist.py test_jeff /var/www/html/test/
File "./generate_whitelist.py", line 4
SyntaxError: Non-ASCII character '\xe2' in file ./generate_whitelist.py on line 4, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
so I set #coding=UTF-8
at the beginning of the script
After that, I ran
./generate_whitelist.py test_jeff /var/www/html/test/
and got
Can't compile rules: (..)php-malware-finder-master/php-malware-finder/utils/../php.yar(377): undefined identifier "IsWhitelisted"
This isWhitelisted identifier is defined in whitelists.yar.
Could you please make code changes so that this tools works or help me make it work as you expect ?
Thanks in advance.
try with https://github.com/jvoisin/php-malware-finder from the original author
Thanks, it appears that first problem is solved, but the second is not.
@jvoisin
Duplicate of https://github.com/jvoisin/php-malware-finder/issues/109 :)