diff options
| author | Km | 2019-08-01 12:53:26 +0200 |
|---|---|---|
| committer | jvoisin | 2019-08-01 10:53:25 +0000 |
| commit | cbea06c526cc8f2dfb024d68f90557c3c96663e9 (patch) | |
| tree | 6eacede803e1a783a827f56db7ab0f5d25ec930a | |
| parent | cef31aa5caf83080f72e5e7f85249bd6633763e1 (diff) | |
Prevent any warningerror about rules too complex
* Rules are considered reliable
* We can generate final yara file with quiet
This should close #88
| -rwxr-xr-x | php-malware-finder/utils/generate_whitelist.py | 2 |
1 files changed, 1 insertions, 1 deletions
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]): | |||
| 19 | print('%s is not a folder !' % sys.argv[2]) | 19 | print('%s is not a folder !' % sys.argv[2]) |
| 20 | sys.exit(1) | 20 | sys.exit(1) |
| 21 | 21 | ||
| 22 | rules = yara.compile(sys.path[0]+'/../php.yar', includes=True, error_on_warning=True) | 22 | rules = yara.compile(sys.path[0]+'/../php.yar', includes=True, error_on_warning=False) |
| 23 | 23 | ||
| 24 | output_list = list() | 24 | output_list = list() |
| 25 | 25 | ||
