php-malware-finder icon indicating copy to clipboard operation
php-malware-finder copied to clipboard

generate-whitelist.py - multiple issues on centos 6.10

Open jeffchulg opened this issue 3 years ago • 4 comments

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.

jeffchulg avatar Aug 12 '21 09:08 jeffchulg

try with https://github.com/jvoisin/php-malware-finder from the original author

wargio avatar Aug 12 '21 12:08 wargio

Thanks, it appears that first problem is solved, but the second is not.

jeffchulg avatar Aug 12 '21 12:08 jeffchulg

@jvoisin

wargio avatar Aug 12 '21 15:08 wargio

Duplicate of https://github.com/jvoisin/php-malware-finder/issues/109 :)

jvoisin avatar Aug 20 '21 10:08 jvoisin