new patterns & bugfix

This commit is contained in:
Palma Solutions LTD
2018-06-21 08:26:50 +02:00
parent b827e5cfd1
commit ab7030a744
3 changed files with 9 additions and 2 deletions

View File

@@ -502,8 +502,8 @@ def is_hacked(filename):
score.append(('SET_ERRORREPORTING_0', ''))
if 'ignore_user_abort(' in l or 'ignore_user_abort (' in l:
score.append(('SET_IGNOREUSERABORT_0', ''))
if 'memory_limit","-1"' in l or 'memory_limit",-1' in l:
score.append(('SET_MEMORYLIMIT_0', ''))
# if 'memory_limit","-1"' in l or 'memory_limit",-1' in l:
# score.append(('SET_MEMORYLIMIT_0', ''))
if ('system(' in l or 'system (' in l or 'shell_exec(' in l or 'shell_exec (' in l or 'passthru(' in l) and not 'filesystem' in l.lower():
score.append(('EXEC_SHELL', ''))
if 'PCT4BA6ODSE_' in l or 'eval($s21($s22))' in l or '$qV="stop_"' in l: