diff --git a/scan.py b/scan.py index fd8c35a..4c1c9c8 100644 --- a/scan.py +++ b/scan.py @@ -6,7 +6,6 @@ # # To Do: # - Organize -# - Translate # - Add more patterns - work in progress # - remove false positives - work in progress @@ -210,8 +209,8 @@ scoring = { 'LONG_LINE_EARLY': (8, u'Has a line of more than 1000 characters early'), 'VERY_LONG_LINE': (5, u'Has a line of more than 3000 characters'), 'VERY_LONG_LINE_EARLY': (9, u'Has a line of more than 3000 characters early'), - 'MD5_VAR': (10, u'Has une variable encodée en MD5'), - 'INCLUDE_REQUIRE': (-2, u'Has include() ou require() sans http'), + 'MD5_VAR': (10, u'Has a MD5 encoded variable'), + 'INCLUDE_REQUIRE': (-2, u'Has include() or require() without http'), 'COOKIE_FORM1': (20, u'Has form1=@$_COOKIE'), 'MAIL_X_HEADER': (5, u'Has mail.add_x_header'), 'SET_TIME_0': (5, u'Has set_time_limit(0)'), @@ -219,21 +218,21 @@ scoring = { 'SET_TIMELIMIT_0': (2, u'Has memory_limit(0)'), 'SET_IGNOREUSERABORT_0': (2, u'Has ignore_user_abort()'), 'UPLOAD_FILE': (2, u'Has move_uploaded_file()'), - 'FEW_LINES': (0, u'Has peu de lignes'), - 'EMPTY_FILE': (-100, u'Fichier vide'), - 'MANY_LINES': (-2, u'Has beaucoup de lignes'), - 'MANY_LINES2': (-5, u'Gros fichier avec de lignes'), - 'MANY_LINES3': (-10, u'Très gros fichier avec de lignes'), - 'BAD_NEWLINES': (-5, u'Ficher sur 1 ligne sans saut de ligne'), - 'NO_PHP_START': (-5, u'Ne commence pas par