changed scores
This commit is contained in:
4
scan.py
4
scan.py
@@ -198,7 +198,7 @@ scoring = {
|
|||||||
'BASE64_STRING': (50, u'base64 string found'),
|
'BASE64_STRING': (50, u'base64 string found'),
|
||||||
'CRYPT_PHP': (50, u'CryptoPHP inclusion for social.png'),
|
'CRYPT_PHP': (50, u'CryptoPHP inclusion for social.png'),
|
||||||
'PHP_SHELL': (50, u'Shell Script'),
|
'PHP_SHELL': (50, u'Shell Script'),
|
||||||
'PHP_OBFUSC_SHELL': (50, u'Obfuscated Shell Script'),
|
'PHP_OBFUSC_SHELL': (9, u'Obfuscated Shell Script'),
|
||||||
'ACCESS_DENIED': (-30, u'Early block execution'),
|
'ACCESS_DENIED': (-30, u'Early block execution'),
|
||||||
'JAVASCRIPT_HACK': (50, u'Javascript'),
|
'JAVASCRIPT_HACK': (50, u'Javascript'),
|
||||||
'HAS_EVAL': (2, u'Has eval()'),
|
'HAS_EVAL': (2, u'Has eval()'),
|
||||||
@@ -575,7 +575,7 @@ def is_hacked(filename):
|
|||||||
score.append(('MANY_LINES3', '%i lines' % line_num))
|
score.append(('MANY_LINES3', '%i lines' % line_num))
|
||||||
|
|
||||||
# Shell super bien caché, toutes les lignes ont la même longueur
|
# Shell super bien caché, toutes les lignes ont la même longueur
|
||||||
if len(first_lines) > 12 and line_num < 30 and first_lines[0] == '<?php' and \
|
if len(first_lines) > 12 and line_num < 30 and first_lines[0] == '<?php' and \
|
||||||
len(first_lines[1]) == len(first_lines[2]) == len(first_lines[3]) == len(first_lines[4]) == len(first_lines[5]) == len(first_lines[6]) == len(first_lines[7]) == len(first_lines[8]) and len(first_lines[3]) > 40 and first_lines[3][0] == ' ':
|
len(first_lines[1]) == len(first_lines[2]) == len(first_lines[3]) == len(first_lines[4]) == len(first_lines[5]) == len(first_lines[6]) == len(first_lines[7]) == len(first_lines[8]) and len(first_lines[3]) > 40 and first_lines[3][0] == ' ':
|
||||||
score.append(('PHP_OBFUSC_SHELL', ''))
|
score.append(('PHP_OBFUSC_SHELL', ''))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user