Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jeffchulg opened this issue Aug 12, 2021 · 4 comments
Open

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

jeffchulg opened this issue Aug 12, 2021 · 4 comments

Comments

@jeffchulg
Copy link

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.

@wargio
Copy link
Collaborator

wargio commented Aug 12, 2021

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

@jeffchulg
Copy link
Author

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

@wargio
Copy link
Collaborator

wargio commented Aug 12, 2021

@jvoisin

@jvoisin
Copy link
Contributor

jvoisin commented Aug 20, 2021

Duplicate of jvoisin/php-malware-finder#109 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants