From cbea06c526cc8f2dfb024d68f90557c3c96663e9 Mon Sep 17 00:00:00 2001 From: Km Date: Thu, 1 Aug 2019 12:53:26 +0200 Subject: Prevent any warningerror about rules too complex * Rules are considered reliable * We can generate final yara file with quiet This should close #88--- php-malware-finder/utils/generate_whitelist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-malware-finder/utils/generate_whitelist.py b/php-malware-finder/utils/generate_whitelist.py index 792517b..9dd8818 100755 --- a/php-malware-finder/utils/generate_whitelist.py +++ b/php-malware-finder/utils/generate_whitelist.py @@ -19,7 +19,7 @@ if not os.path.isdir(sys.argv[2]): print('%s is not a folder !' % sys.argv[2]) sys.exit(1) -rules = yara.compile(sys.path[0]+'/../php.yar', includes=True, error_on_warning=True) +rules = yara.compile(sys.path[0]+'/../php.yar', includes=True, error_on_warning=False) output_list = list() -- cgit v1.3