Skip to content

generate-whitelist.py - multiple issues on centos 6.10 #7

@jeffchulg

Description

@jeffchulg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions